1 4 5 6 7 8 Previous Next 117 Replies Latest reply: Sep 6, 2012 5:48 PM by paulfromburwood Go to original post
  • 105. Re: For all of you having services failing to start
    Drizzt Level 1 Level 1 (5 points)

    I haven't tried ML yet.. but I don't like what you just wrote. I hope it's going to be fixed for 10.7.5 / 10.8.1!

  • 106. Re: For all of you having services failing to start
    sevkoms Level 1 Level 1 (0 points)

    That didn't work for me neither on L nor ML servers.  Only way that works for me is to manually start the postgresql process.

  • 107. Re: For all of you having services failing to start
    Drizzt Level 1 Level 1 (5 points)

    Try : sudo launchctl load -w /System/Library/LaunchDaemons/org.postgresql.postgres.plist

  • 108. Re: For all of you having services failing to start
    sevkoms Level 1 Level 1 (0 points)

    When I do sudo launchctl load -w /System/Library/LaunchDaemons/org.postgresql.postgres.plist

    I get: org.postgresql.postgres: Already loaded

     

    So if I do:

    sudo launchctl unload -w /System/Library/LaunchDaemons/org.postgresql.postgres.plist

    sudo launchctl load -w /System/Library/LaunchDaemons/org.postgresql.postgres.plist

    But no postgres process start.

     

    Profile Manager and Wiki says "Error Reading Settings" in Server.app and the log keeps looping through the messages below:

     

    7/29/12 9:02:55.607 PM com.apple.devicemanager: DEBUG: Initializing DeviceManagerDaemon with ports 3320,3321,3322,3323,3324,3325,3326,3327,3328,3329 (physmem = 16GB)

    7/29/12 9:02:55.607 PM com.apple.devicemanager: DEBUG: Making sure Rails is configured properly

    7/29/12 9:02:55.607 PM com.apple.devicemanager: DEBUG: Running rake command: /usr/bin/rake db:migrate

    7/29/12 9:02:57.354 PM com.apple.devicemanager: rake aborted!

    7/29/12 9:02:57.354 PM com.apple.devicemanager: could not connect to server: No such file or directory

    7/29/12 9:02:57.354 PM com.apple.devicemanager:           Is the server running locally and accepting

    7/29/12 9:02:57.354 PM com.apple.devicemanager:           connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

    7/29/12 9:02:57.354 PM com.apple.devicemanager: (See full trace by running task with --trace)

    7/29/12 9:02:57.361 PM com.apple.devicemanager: (in /usr/share/devicemgr/backend)

    7/29/12 9:02:57.365 PM com.apple.devicemanager: /usr/share/devicemgr/backend/devicemgrd:109:in `rake': Rake command failed with 256 (RuntimeError)

    7/29/12 9:02:57.365 PM com.apple.devicemanager:           from /usr/share/devicemgr/backend/devicemgrd:103:in `setupRails'

    7/29/12 9:02:57.365 PM com.apple.devicemanager:           from /usr/share/devicemgr/backend/devicemgrd:33:in `run'

    7/29/12 9:02:57.365 PM com.apple.devicemanager:           from /usr/share/devicemgr/backend/devicemgrd:131

    7/29/12 9:02:57.365 PM com.apple.launchd: (com.apple.devicemanager[665]) Exited with code: 1

    7/29/12 9:02:57.365 PM com.apple.launchd: (com.apple.devicemanager) Throttling respawn: Will start in 9 seconds

    7/29/12 9:03:04.318 PM com.apple.launchd: (org.postgresql.postgres[668]) Exited with code: 1

    7/29/12 9:03:04.318 PM com.apple.launchd: (org.postgresql.postgres) Throttling respawn: Will start in 10 seconds



  • 109. Re: For all of you having services failing to start
    Drizzt Level 1 Level 1 (5 points)

    This line :

    com.apple.launchd: (org.postgresql.postgres) Throttling respawn: Will start in 10 seconds

     

    Means that Postgres stops. You can have a look in /Library/Logs/PostgreSQL/PostgreSQL.log ans see why it stoped. Since you start it by yourself, could it be that you left it openned? Once launchd can start it for good, you'll be fine.

  • 110. Re: For all of you having services failing to start
    Beno 44 Level 1 Level 1 (15 points)

    Have u tried this

     

    sudo launchctl load /System/Library/LaunchDaemons/org.postgresql.postgres.plist

     

    serveradmin start postgres

  • 111. Re: For all of you having services failing to start
    Beno 44 Level 1 Level 1 (15 points)

    Sorry made a typo

     

    sudo launchctl unload /System/Library/LaunchDaemons/org.postgresql.postgres.plist

     

    serveradmin start postgres

  • 112. Re: For all of you having services failing to start
    paulfromburwood Level 1 Level 1 (90 points)

    Just to check something, is this a permanent fix for Lion Server?

     

    Will this mean no more living in fear of someone calling me and telling me that the there passwords dont work?

  • 113. Re: For all of you having services failing to start
    Drizzt Level 1 Level 1 (5 points)

    It made my server stable. I currently have 38 days of uptime and all services work as they should!

  • 114. Re: For all of you having services failing to start
    paulfromburwood Level 1 Level 1 (90 points)

    Oh - my - god. Drizzt you are a hero, truly, king of kings. I have been regretting moving to Lion server as every week something goes wrong, and I have to restart the server.

     

    Just out of interest, what exactly is that doing does postgresql have a limit of users or something?

     

    So when even I set up a server, I should just run this terminal command straight away!

     

    Has anyone submitted this to Apple? Perhaps this will happen in 10.7.5?

  • 115. Re: For all of you having services failing to start
    Drizzt Level 1 Level 1 (5 points)

    I'm just glad I could help!

    The problem and solution as been explained in this topic earlier. It is a problem with the number of openned files.

     

    I know someone at Apple knows about this. I'm waiting for 10.7.5...

  • 116. Re: For all of you having services failing to start
    paulfromburwood Level 1 Level 1 (90 points)

    Well, I had my issue again today, all of a sudden users cant log in to services. So unfortunatly, this hasn’t worked for me.

  • 117. Re: For all of you having services failing to start
    paulfromburwood Level 1 Level 1 (90 points)

    Oh for a bit more info:

     

    Out of the blue, no one can connect to the server, Mail, Calender, Address Book all spit an error, that the password is incorrcet (so it seems like the password server is falling over).

     

    I have to restart to get it back. Once restarted, Mail Address Book work great. iCal does not.

     

    So I have to open terminal and do the following:

     

    sudo serveradmin stop calendar

    sudo serveradmin settings calendar:Authentication:Wiki:URL = "http://127.0.0.1:8089/RPC2"

    sudo serveradmin start calendar

     

    Then it all comes good.

1 4 5 6 7 8 Previous Next