Skip navigation

For all of you having services failing to start

47069 Views 117 Replies Latest reply: Sep 6, 2012 5:48 PM by paulfromburwood RSS
1 2 3 ... 8 Previous Next
The Teknologist Level 1 Level 1 (15 points)
Currently Being Moderated
Jul 24, 2011 7:17 PM

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.

Screen Shot 2011-07-25 at 3.39.57 AM.PNG

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)
  • Shannon.Skinn Calculating status...

    To put this simply... i love you

  • dreness Level 1 Level 1 (30 points)

    Hi,

     

    Having "Dedicate system resources to server services" enabled is certainly not supposed to completley break postgres, and does not on any lion server systems I've used.

     

    I would encourage you to file a bug with apple so they can get more info about your configuration to find out what is wrong. http://bugreporter.apple.com. Be sure to attach a system profiler report, along with whatever logs you used to figure out why turning off this option allows postgres to start on your system.

     

    Cheers,

    -dre

  • Tim Harris Level 4 Level 4 (1,460 points)

    Can you post the extract's form the logs where Postgresql is trying to load. Personally I have not see problem you have reported. 

  • Michael C M Level 2 Level 2 (205 points)

    Ran into the same issue here - only disabling that option and restarting didn't make everything work agian. Is there a trick to getting the web services up and running again? Web service won't start.

     

    Here's the error I see in the web browser:

    Curl::Err::ConnectionFailedError in SourcesController#index

     

    Any information would be helpful. It does not appear that anything is being logged anywhere ecept to the browser, even when trying to start the web service.

     

    The only thing in logs right now is (hundreds of times): 11-08-01 8:54:27.000 AM kernel: nstat_lookup_entry failed: 2

  • Michael C M Level 2 Level 2 (205 points)

    For me it appears 'the system' is shutting down postgres.

     

    2011-08-01 09:00:39 MDT LOG:  database system was shut down at 2011-08-01 08:38:08 MDT

    2011-08-01 09:00:39 MDT LOG:  autovacuum launcher started

    2011-08-01 09:00:39 MDT LOG:  database system is ready to accept connections

    2011-08-01 09:01:08 MDT LOG:  connection received: host=[local]

    2011-08-01 09:01:08 MDT LOG:  connection authorized: user=caldav database=caldav

    2011-08-01 09:02:48 MDT LOG:  connection received: host=[local]

    2011-08-01 09:02:48 MDT LOG:  connection authorized: user=_postgres database=postgres

    2011-08-01 09:02:49 MDT FATAL:  terminating connection due to administrator command

    2011-08-01 09:02:49 MDT LOG:  received smart shutdown request

    2011-08-01 09:02:49 MDT LOG:  autovacuum launcher shutting down

    2011-08-01 09:02:49 MDT LOG:  shutting down

    2011-08-01 09:02:49 MDT LOG:  database system is shut down

  • jsherald Calculating status...

    Experiencing the same issue, however I don't have resources dedicated to the server to begin with...

  • mbookspan Calculating status...

    Well, in disabling the "Dedicate…" option, that did in fact fix our server. Can't explain why it even broke since we don't use Podcast Producer or Xgrid.

  • jsherald Level 1 Level 1 (0 points)

    I'm not using Xgrid or Podcast Producer and I'm still continuously getting "Error Reading Settings" in the Server app for both Wiki and Profile Manager services.  I disabled all services, rebooted, and restarted the services once with success.  Later that day, everything stopped working again.  Reboot won't even fix it.

     

    At this point, I spent $50 for a product that doesn't provide a single service.  Is it worth trying to fix or should I just seek a refund?

  • minilo1 Calculating status...

    I'm having huge problems with too with exactly the same symptoms/results.

     

    After a reinstalling, things work for a while and then postgres seems to fail along with most services. Have reinstalled three times and wasted huge amounts of time on this trying to manually follow up issues listed in the logs (such as the datahase not having permission to write a log, preventing it from starting)...

     

    I suspect that it might have something to do with permissions being repaired during the "daily" maintenance as running "repair permissions" seems to screw things up. e.g. reinstalling, making sure the services I need are running, then repairing permissions, followed by a reboot results in broken services.

     

    When things are mostly working after a reinstall, I cannot turn off the podcast producer via Server. Yesterday morning I did a full reinstall, didn't touch repair permissions, had everything working and then today it's back in the same screwed up state again...

     

    I've never had so much trouble with an Apple system upgrade in over 20 years and I cannot see a way out of this beyond reverting to SL. Can't understand how this sysyem can be so broken as I'm only using a the address book, calendar, web, wiki and file sharing services so my configuration is really simlple.

     

    Has anyone found a workaround for this? We're clearly not alone suffering with this...

  • Joe Pyrdek Level 1 Level 1 (135 points)
    Currently Being Moderated
    Aug 5, 2011 6:05 PM (in response to minilo1)

    Much of what you are describing (restart kills things, intermitent and assorted errors etc.) are also happening when users are trying to bind to an Active Directory service with 10.7 client.   There are a couple of threads where the AD problems are listed.  From the similarities I am wondering if there is a common denominator to both your services and my Active directorry problems.

  • minilo1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 6, 2011 3:27 AM (in response to Joe Pyrdek)

    Joe, thanks for the response. I'm currently  testing with the server itself (a mac mini) and a macbook pro on a private network, and neither are using Active Directory services, or requesting them so if the symptoms are the same then there is a chance that your problems with Active Directory might not be related to AD at all? I think the database shuts down and won't restart, possibly due to pemission problems/corruption, preventing all of the services that depend on it from operating.

  • minilo1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 6, 2011 10:01 AM (in response to minilo1)

    Appear to have found a workaround that I can live with temporarily:

     

    Manually setting permissions for /Library/Logs (using a brute force sudo chmod 777) and then rebooting appears to fix the problem to a great extent for me (at least until the daily maintenance task - or something else? - screws up the permissions again?). Haven't tried, but it's possible that rebooting is not necessary  -- sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.servermgrd.plist might be sufficient.

     

    Still some issues, but theses are not critical for me:

    - webcal via wiki not working ("Calendar service is turned off. You can turn it on using the Server app..."), but it IS on in the Server app calendar serving via  ical is working

    - still getting regular "kernel: nstat_lookup_entry failed: 2" (as others have also reported)

    - the Podcast service has a tendency to force itself on in Server app after a reboot, and the log repors throttling respawn, however those messages go away when I turn it off again.

     

    Tempted to hack the daily maintenance script to either disable repairing permissions or to add a correction for /Library/Logs...

1 2 3 ... 8 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (17)

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.