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

Jul 14, 2012 10:12 AM in response to Drizzt

Double thanks to you Drizzt! I've been terrified to restart either of my mini servers for the past year as I would never know what services would go down. Often, sharepoints would only function for local users but not all my LDAP users and the "fix" was to take all services but File Sharing down, then restart, then turn on the other services and pray I didn't need a restart after. I just finished restarting 4 times with all my services on, and my logs are now clean with stable services. Apple had me re-install the OS, re-create my 89 user directory, blow out all ACLs and re-create ... so days of work that never fixed the underlying problem. I have just finished submitting feedback to Apple on this. I'm simultaneously elated at the fix you provided, and discusted that Apple hasn't supported enterprise for over a year now in this regard. Thank you.

Jul 17, 2012 7:31 AM in response to Drizzt

Interestingly on the 2 servers I had a look at, I cannot find the launchd.conf file in this dir. Once I run your command then it appears of course.

Is this nornal that it does not exist or is there other info in the file that is now missing?


Has anyone also found if this helps to make the server app more stable?


In the past the only way to get services running again was to DISABLE "Dedicate System Resources to Server"

but I have not tried re-enabling this since applying this command. Anyone tried it?

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.