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

For all of you having services failing to start

After 48 hours of struggle with this same issue and 6 clean re-installs of Lion Server I have found the bug in Lion Server causing all ruby based collaboration services (Device Manager, Wiki, ical, some adress book features ie: major screw up in services around server admin tools and server app). The most visible one is in Profile Manager because as you all pointed out it even says sometimes "Error Reading Settings". And if you take a look at the logs its even worst...full of errors...


that's how I found out, yes reading all the logs took time:


Basically they all fail because they use Postgresql database.


At first I did 2 clean re-installs and noticed everytime, after having spent some time configuring the server (open directory/kerneros, creating accounts/mailboxes, profiles etc.). I would do a reboot and everything would break.


Now I won't go over all the diggin I did but I finally manage to understand why Postgres at some point was failing.


it seems there is a bug.


If you turn "Dedicate Resources to Server Services" in the Server.app Hardware Section (next to Push Notifications switch", postgres doesn't start and all depending services (lots) fail.


The Solution: Just turn that OFF as shown below and restart. Everything should get back in order. If you still see some "push_notify: not connected" erros in you console logs (it happened to me even thoug all servcies were restored) the solution is easy. Hit change and redo the setup with you appleid. You'll be issued new certs by Apple and everything shoudl work fine.

User uploaded file

That's all.


Hope this helps the many people that are frustrated like I was. Now that everything works, it's the perfect server for a mini Cloud. You'll love Profile Manager for provisioning payload to your devices. Elegant, efficient and simple, yet very flexible with the openDirectory backend.


Cheers everyone !


Eric


twitter: @teknologism

Mac OS X (10.7)

Posted on Jul 24, 2011 7:17 PM

Reply
119 replies

Feb 13, 2012 10:52 PM in response to Drizzt

Hello all,


after having had serious trouble with 10.7.3 on a mac min server (mid 2011),

I reinstalled and started new with everything as standard as possible.

Up to now (>5 days) everything seems to run fine, I use the following:

- DNS

- OpenDirectory


- Calendar

- Addressbook

- Wiki

- FileSharing (of course)


I don't habe "Reserve resources for Server" activated.


In my previous case I used the two drives in a raid1... perhaps this was a root cause for some problems I had.


Perhaps this helps You?


Kind regards,


Thomas

Feb 14, 2012 10:32 AM in response to ThomasSchulze

I had installed 10.7 Server with the hope of setting up a home server. For many reasons, I have downgraded to SL and dropped the idea of my own server.


Just thought you all would want to know, I think unless you are doing this for business, just stay away from Lion and its Server altogether and life will be much easier again.


I plan on testing out a Linux package to run inside a VM for my home server use and will probably never go back to a Mac server. What's the point unless you run a network with only Apple devices?

Feb 23, 2012 8:32 AM in response to The Teknologist

Something new...


I noticed in the logs devicemgr having problems writing it's pid file in /var/run/devicemgr. Thing is, the folder didn't exist. I created it with the right permissions.


drwxr-xr-x 12 _devicemgr _devicemgr 408B Feb 21 17:30 devicemgr


Than, I switched "reserve ressources" off, rebooted, stopped all services, did a "serveradmin stop" on all services to be shure (including serveradmin stop postgres), rebooted and restarted all services.


Tomorrow night/this weekend I'll be fixed on if it solved my problem.

Mar 1, 2012 10:06 PM in response to The Teknologist

Sadly amazing - this is a 'known' issue in the community for 8 months, and Apple hasn't found a fix yet. I'm disheartend. Working on a fresh install myself. I even went as far as a TimeMachine restore, from pre-install.


I was testing on my own machine before rolling out to a few clients and upselling for Apple over Linux. Not about to put my reputation on the line for this version of Server. Sorry guys - it's about as reliable as a drunk clown.


C'mon Tim - Steve would have jumped in a long time ago to get this fixed. You can do better.

Mar 21, 2012 11:26 AM in response to Drizzt

I've got things working for the time being with safe reboot, a permissions fix, & a reboot back into normal usage. Unfortunately, I can't run in safe mode for normal use because I run additional services.


It took a few goes before everything was happy. The first time made things worse; Server and Server Admin reported nothing, although ps showed services were running. That turned out to be https://discussions.apple.com/thread/3193142?start=15&tstart=0 --- the suggested fix worked. A further attempt got things back to where started. But the final go got everything working. I think you'll all understand why I'm not rebooting again, at least not until I absolutely have to.

Mar 28, 2012 8:45 AM in response to The Teknologist

I haven't been able to get serveradmin to manage postgres for a while now. What I've ended up doing is manually start the postgresql service after a reboot and that seems to allow all the services to work properly.


The command line I'm running under sudo from a shell script is:


-------------------- Start of shell script ------------------

#!/bin/bash


nohup sudo -u _postgres /usr/bin/postgres -D /var/pgsql -c "listen_addresses=*" -c "log_connections=on" -c "log_directory=/Library/Logs" -c "log_filename=PostgreSQL.log" -c "log_line_prefix=%t " -c "log_lock_waits=on" -c "log_statement=ddl" -c "logging_collector=on" -c "unix_socket_directory=/var/pgsql_socket" -c "unix_socket_group=_postgres" -c "unix_socket_permissions=0770" &

--------------------- End of shell script -------------------


The nohup line is all one line, no breaks.


Hope this helps anyone who just can't get it to start no matter what.

serveradmin stop postgres tries to stop in this case but fails and leaves things in a funky state, so you will have to manually stop/kill postgres if you need to restart it due to changing permission files, etc. internal to postgreSQL.

Apr 19, 2012 4:19 AM in response to The Teknologist

Hi guys,


I've been having this problem since I "upgraded" to Lion Server. The problem disappeared when I removed the DNSUpdate utility (dyndns lookalike), and appeared again when I reinstalled the utility to keep my dns ip address in sync.


Now, this might just be a coincidence. Does anyone having this issue also have DNSUpdate installed ?


Thanks for your input and good luck with this chaotic piece of software.


Arach

Apr 25, 2012 5:12 PM in response to TRA2010

Ok, I got my problem solved, for now.


It all started with an "innocent" Software Update in Lion Server. Everytime I do a software update with this thing I just pray nothing breaks. Sure enough, on reboot, no more screensharing option listed in mounted server in Finder. Just Connected As option.


So I fired up Screen Sharing App... got in from there thankfully. However, Screen sharing has broken on me several times. Grrrrrh.


So then I noticed that my Wiki was causing this Curl Index error as mentioned in this thread. I did the following:


1. Repaired permissions, rebooted. I actually rebooted a few times before this to no avail. After about 20 minutes (subsequent to the permissions repair and reboot), the screen share icon returned to the mounted Mac Mini on my Computer. By the way, a ton of permissions were messed up.

2. Tried a bunch of stuff mentioned in this thread to no avail.

3. Turned Wiki Services on and off in the Server App. Voila! My Server splash page came back.


About me: Mac Mini latest, Lion Server 10.7.3, Dyndns pointing to a dynamic IP.

For all of you having services failing to start

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