Q: Profile Server not available
I'm having an issue with the Mac OS X Lion Server profile service. Whenever I try to open the profilemanager page, I'm getting the following error :
Profile Manager Unavailable. Please wait a moment and try again.
The Profile manager was fine before.
From /var/log/system.log, it seems there's an issue with ruby not receiving the correct permissions from sandboxd :
Aug 20 09:58:22 crearoeosx002 sandboxd[4563] ([9987]): ruby(9987) deny file-read-metadata /private/var/folders/zz/zyxvpxvq6csfxvn_n00000vm00006x
Aug 20 09:58:23 crearoeosx002 sandboxd[4563] ([9987]): ruby(9987) deny mach-lookup com.apple.distributed_notifications@1v3
Aug 20 09:58:27 crearoeosx002 sandboxd[4563] ([9987]): ruby(9987) deny file-read-data /private/etc/hosts
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/backends/tcp_server.rb:16:in `connect'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/backends/base.rb:53:in `start'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/backends/base.rb:61:in `start'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/server.rb:159:in `start'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/controllers/controller.rb:86:in `start'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/runner.rb:185:in `send'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/runner.rb:185:in `run_command'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/lib/thin/runner.rb:151:in `run!'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/ge ms/thin-1.2.8/bin/thin:6
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /usr/bin/thin:19:in `load'
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: from /usr/bin/thin:19
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: >> Using rack adapter
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: >> Thin web server (v1.2.8 codename Black Keys)
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: >> Debugging ON
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: >> Maximum connections set to 1024
Aug 20 09:58:27 crearoeosx002 com.apple.collabauthd[9987]: >> Listening on localhost:8086, CTRL+C to stop
Aug 20 09:58:27 crearoeosx002 com.apple.launchd[1] (com.apple.collabauthd[9987]): Exited with code: 1
Aug 20 09:58:27 crearoeosx002 com.apple.launchd[1] (com.apple.collabauthd): Throttling respawn: Will start in 5 seconds
-> searching around for a resolution yields a similar problem for wiki, but contrary to the resolution there, i did not touch my ruby/rack installation with newer versions.
Things I've tried sofar :
-> Rebooting the machine
-> clearing out the apache configs and reverting to the default ones
-> reinstalling my certificate
-> checking if postgres is running (it is) and repopulating the database with the scripts found in /System/Library/ServerSetup/CommonExtras/PostgreSQLExtras/
All resolutions found in similar issue threads, which all seem a little strange to me.
-> It seems the problem originates from ruby not getting the right permissions from sandboxd. When looking in /usr/share/sandbox, I see no entries for ruby nor any ruby related content in the files which are present.
-> does anyone know how to create a .sb file which would grant ruby access to said resources?
Thank you for your time.
Server, Mac OS X (10.7.5)
Posted on Aug 20, 2013 1:13 AM