You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Error reading settings on Server app

I've just updated my Snow Leopard (non-server) install to Lion Server, and now when I try to go into the server app's "web" configuration section, I just get "error reading settings". I assume that this is because I'd manually edited my httpd.conf to allow PHP access (as well as PHP mySQL support) in my old Snow Leopard client install. Is there a way to get back to a defaul Lion web server configuration (other than a full re-install)?

MacBook Pro, Mac OS X (10.7), Server

Posted on Jul 20, 2011 8:58 AM

Reply
56 replies

Mar 1, 2012 10:39 PM in response to Alexander Weiss

You are a life saver! I had this issue and vaguely remembered there was a reset command but couldn't remember it for the life of me. After seeing your reminder, I backed up my current /etc/apache2 directory, did an "apachectl stop" followed by "

sudo serveradmin command web:command=restoreFactorySettings
" and all was happy again. After I verified all was working, I then reapplied my customizations, restarted apache using serveradmin stop/start and all is once again well in the world. Thanks!

Jun 8, 2012 11:23 AM in response to Miggl

@miggl


I found this thread after suffering this effect on all but two of my services in server.app. I have only recently installed OSX Lion Server 10.7.4 (clean on a brand new MBPro) and was in my initial config phase.


During this period I decided to change the hostname to an “FQDN” to provide the full range of remote connectivity options. It didn’t happen immediately but I ended up with the dreaded “Error Reading Settings”.


While looking around I found a post by “Miggl” referring to the checkbox under Hardware/Settings/Dedicate system resources to server services. I remembered having checked this the day prior so I returned to it to do as recommended and “toggle” it.


Upon attempting this it advised me, as it had originally, that this change would require a restart to take effect. I had chosen previously to “restart later”. Having not restarted the first time I chose to do so now as I was in troubleshooting mode.


Once the computer came back up I had lost a number of insignificant customizations I had made to the UI, and I had to re-install server.app but the hostname change persisted and all the services are once again available for activation.


I read all the other fix recommendations but did nothing until I came upon this and without modding config files and suffering some of the other side effects I read about throughout this thread, I was able to achieve resolution as described.


Though my circumstances were not identical to “Miggl’s” there were associated and fixed through this investigation, so either of these situations sounds like yours, give it shot, it worked for me. Good luck and thanks to the community for “staying classy”!

Jun 8, 2012 11:44 AM in response to hiveadmin

Hi hiveadmin,


I'm glad my partial solution helped you out. I ended up with some other issues after that and ended up reinstalling from scratch. I have found that to be the only real solution thus far. I'm waiting to see if Mountain Lion Server runs smoother. Lion Server seems has that Vista after taste to it. 🙂


Good Luck!

~Mike

Jul 2, 2012 8:57 AM in response to Andy__D

I just went through the process of creating a RAID 1 using two of the drives in my Mac Pro Server and then restored the system from the last time machine back-up on my external. Now I'm trying to get profile manager back up and running but it keeps displaying ERROR READING SETTINGS no matter how many times I run the terminal command fixes listed in the replies above. Does anyone have a sure way to get this service back up and running in the Server.app program so that I can continue installing trust and remote management profiles on end-user machines?


User uploaded file

Jul 24, 2012 5:26 PM in response to Andy__D

Has anyone had this issue after installing aftermarket RAM? I upped the stock 4GB to 8GB (Crucial DDR3 PC3 10600) on my Mac Mini Server running 10.7.4 and things really haven't worked right since then. I spent several hours on the phone last week doing a reinstall and "proper" setup all on the stock RAM.


Thinking things were working well a reintalled the aftermarket 8GB. Profile manager worked for about a day and then a got the "Error Reading Setings" message. I put the stock 4GB back in and Profile Manager sprung back to life.


I'm working on returning the 8GB now...

Jan 7, 2013 6:47 AM in response to chimpster07

Chimpster07,


Saw the exact same screen following the exact same procedure (except on late 2012 Mac Mini Server, 16GB after-market RAM, 2 x 1TB 5400rpm SATA reconfigured to RAID 1). Baffled for a couple of days, but by chance noticed that in my Server | [hardware] | Overview tab, my server uptime was reporting something like "- 198,877 days." With other supporting evidence that the date may be a contributing factor (as also seen in my PostGres error log following Server.app set up) I was getting the nasty "Error: time zone displacement out of range:"


That pointed me to the fact that I purchased and installed this system in Thailand, and the default Region settings reflected the Buddhist calendar (rather than Gregorian). As the Uptime relfected, approximately 543 years in the future, not coincidentally the difference in the base year between the two calendars, it appeared that my self-signed certificate was invalid.


I tried a lot of hand-editing and selective deleting, but eventually gave way to reinstalling ML 10.8.2 from scratch and subsequently re-adding Server.app. Ran it this time with US-default settings and EVERYTHING worked perfectly. No intermittent pop-up errors indicating "Error reading settings" for Wiki.


(And just a question of curiosity - has anyone else experienced Mac mini's COMPLETE INABILITY to boot from a properly-formatted USB or DVD? And yes, it has GUID Partition, Mac OS Extended [Journaled], etc., that works on EVERY other Mac desktop/MacBook I have... Drove me absolutely bonkers that I had to repeatedly re-install ML 10.8.2 using the Internet Recovery option - and while I'm at it, Apple, do you have any plans to beef up your Software Distribution servers is S.E. Asia anytime soon??? :-)

Mar 12, 2013 9:10 PM in response to dypost20

dypost20 ...


just spent a couple hours going through a bunch of wipeDB.sh and 80-devicemgrcommon.sh commands that did not work


I stumbled across your post only after I found it. I think the version I'm running may be newer than yours? My folder paths are:


/Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonEx tras/PostgreSQLExtras $ ls -la

total 0

drwxr-xr-x 4 root wheel 136 Mar 12 20:40 .

drwxr-xr-x 35 root wheel 1190 Mar 12 20:40 ..

-rwxr-xr-x 1 root wheel 117 Mar 12 19:46 create_caldavd_db.sh

-rwxr-xr-x 1 root wheel 433 Mar 12 19:46 create_devicemgr_db.sh



I'm putting this here for others:




I ran the following:


**WARNING** this will reset your calendars, profile manager, and possibly a whole bunch of data on your server. Make sure you know what you're doing and have adequate backups.



cd /Library/Server/PostgreSQL\ For\ Server\ Services/


mv Socket SocketOLD


ln -s /private/var/pgsql_socket/ Socket


serveradmin stop postgres

serveradmin start postgres


Then


/Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonEx tras/PostgreSQLExtras/create_devicemgr_db.sh

/Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonEx tras/PostgreSQLExtras/create_caldavd_db.sh


Then


/Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonEx tras/80-devicemgrcommon.sh


Then


/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB. sh




Error reading settings on Server app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.