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

Wiki & Web Server 503 Service Unavailable

Just installed Lion Server, and started up Web Server and Wiki They both come back with a 503: Service Unavailable.


Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 with Suhosin-Patch Server at macbookpro17.local Port 80
I checked the error log for apache and i get this:

[Thu Jul 21 10:27:49 2011] [error] (61)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8092 (localhost) failed

[Thu Jul 21 10:27:49 2011] [error] ap_proxy_connect_backend disabling worker for (localhost)

[Thu Jul 21 10:27:49 2011] [error] (61)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8093 (localhost) failed

[Thu Jul 21 10:27:49 2011] [error] ap_proxy_connect_backend disabling worker for (localhost)




Anyone have any ideas what is wrong?

Mac OS X (10.7)

Posted on Jul 21, 2011 7:28 AM

Reply
13 replies

Feb 10, 2012 12:35 PM in response to thibFR

Google cache extract of that document:


I was pretty excited to get my hands on Mac OS X 10.7 Lion Server. So, I try to get the server working like my primary one, which uses Debian GNU/Linux 6.0, and utilize any bundled web services.

My first impression? Contradicting to Apple’s usual catch phase “Just works,” when I try the iCal Server and the Wiki Server, things (web services) just do not work at all.

However, after having googled and traced all logs for 24 hours, the root of the problem is just Ruby dependencies.

Apparently, any web services bundled with Lion Server are based on Rails 3.0.4 and/or Sinatra. For the example of activating the iCal Server and the Wiki Server, after disabling any activated services, one simply needs to do as follow.

cd /usr/share/collabd/
cd coreclient
sudo bundle update rack
cd webauthd
sudo bundle update rack

After that, it should just be working. Man… Apple… Don’t give me more work.

Sep 2, 2012 2:07 PM in response to felixk2

I ran into this same 503 error (for iCal only) using Mountain Lion Server or OS X Server as it is now being called. Stupid thing was, the cause of the error was changing the location of the server data. I thought it would ask me during installation where I want to put the data, but it doesn't. It does let you change it whenever you want after installation. However, if you go that route, apparently iCal Server will konk out. Lame. I changed the location back and it works fine now. Only problem is that location was sized specifically for the core server apps, not the data.

Jan 3, 2013 6:13 AM in response to felixk2

For some unknown reason, my WikiServer has stopped working. Restart doesn't work. The server log is quite revealing, however:


Jan 3 13:55:22 orion com.apple.launchd[1] (com.apple.collabauthd): Throttling respawn: Will start in 10 seconds

on com.apple.collabcored4[1732]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /usr/share/collabd/coreclient/config/environment.rb:11

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /usr/share/collabd/coreclient/config.ru:13

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /usr/share/collabd/coreclient/config.ru:1:in `new'

Jan 3 13:55:32 orion com.apple.collabcored4[1732]: from /usr/share/collabd/coreclient/config.ru:1

Jan 3 13:55:32 orion com.apple.launchd[1] (com.apple.collabcored4[1732]): Exited with code: 1

Jan 3 13:55:32 orion com.apple.launchd[1] (com.apple.collabcored4): Throttling respawn: Will start in 10 seconds

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:31:in `setup': You have already activated rack 1.4.1, but your Gemfile requires rack 1.2.1. Using bundle exec may solve this. (Gem::LoadError)

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:17:in `setup'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler.rb:116:in `setup'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config/boot.rb:14

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config/application.rb:12

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config/environment.rb:11

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config.ru:12

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config.ru:1:in `new'

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: from /usr/share/collabd/webauthd/config.ru:1

Jan 3 13:55:32 orion com.apple.collabauthd[1735]: >> Using rack adapter

Jan 3 13:55:32 orion com.apple.launchd[1] (com.apple.collabauthd[1735]): Exited with code: 1

Jan 3 13:55:32 orion com.apple.launchd[1] (com.apple.collabauthd): Throttling respawn: Will start in 10 seconds



The same log entry is made repeatedly, every 10 seconds or so.


So for some reason I've now suddenly got a dependency issue with Ruby. I have no idea how this occurred because I haven't installed anything other than official updates.


I've tried wayne58's suggestion to no avail.


I urgently need my Wiki back!!!


Message was edited by: SwissDude Found the solution here: http://stackoverflow.com/questions/10147606/how-to-revert-back-to-the-default-ru by-install-on-mac-osx-lion-server Weird thing is... I have no idea how rack 1.4.1 got installed and by whom. In any case, uninstalling it and reinstalling 1.2.1 solved the problem.

Jan 6, 2013 9:50 AM in response to ctrl_alt_suppr

I have the wiki home page showing up but a 503 error on the login form (I'd say that a 418 error code would be more relevant).


It's clearly ruby related, but when I tried to downgrade actionpack to 3.0.11 it only got worse, so what gems and of which version do I need to restore the service?


Thanks in advance.


Here's my gem list:


abstract (1.0.0)

actionmailer (3.2.8, 3.0.11)

actionpack (3.2.8, 3.0.11)

activemodel (3.2.8, 3.0.11)

activerecord (3.2.8)

activerecord-import (0.2.11)

activeresource (3.2.8)

activesupport (3.2.8, 3.0.11)

acts-as-taggable-on (2.3.3)

acts_as_api (0.4.1)

addressable (2.3.2)

arel (3.0.2)

asset_sync (0.5.0)

bcrypt-ruby (3.0.1)

bootstrap-sass (2.1.0.0)

builder (3.0.3, 3.0.0, 2.1.2)

bundler (1.2.1, 1.0.0)

carrierwave (0.6.2)

childprocess (0.3.5)

client_side_validations (3.1.4)

coffee-rails (3.2.2)

coffee-script (2.2.0)

coffee-script-source (1.3.3)

curb (0.7.12)

daemons (1.1.9, 1.1.0)

devise (2.1.2)

diff-lcs (1.1.3)

erubis (2.7.0, 2.6.6)

eventmachine (0.12.10)

excon (0.16.2)

execjs (1.4.0)

faraday (0.8.4)

faraday_middleware (0.8.8)

fastercsv (1.5.5)

ffi (1.1.5)

fog (1.6.0)

foreigner (1.2.1)

foreman (0.59.0)

formatador (0.2.3)

gon (4.0.0)

haml (3.1.7)

handlebars_assets (0.6.5)

hashie (1.2.0)

hike (1.2.1)

http_accept_language (1.0.2)

httpauth (0.1)

i18n (0.6.1, 0.5.0)

i18n-inflector (2.6.6)

i18n-inflector-rails (1.0.6)

jasmine (1.2.1)

jasmine-core (1.2.0)

journey (1.0.4)

jquery-rails (2.1.3)

jquery-ui-rails (2.0.1)

jruby-pageant (1.1.1)

json (1.7.5, 1.5.1)

kaminari (0.14.1)

libwebsocket (0.1.5)

mail (2.4.4, 2.2.19)

messagebus_ruby_api (1.0.3)

mime-types (1.19)

mini_magick (3.4)

mobile-fu (1.1.0)

msgpack (0.3.9apple)

multi_json (1.3.6)

multipart-post (1.1.5)

mysql2 (0.3.11)

nested_form (0.2.3)

net-scp (1.0.4)

net-ssh (2.6.0)

nokogiri (1.5.5)

oauth (0.4.6)

oauth2 (0.6.1)

omniauth (1.1.1)

omniauth-facebook (1.3.0)

omniauth-oauth (1.0.1)

omniauth-oauth2 (1.0.2)

omniauth-tumblr (1.1)

omniauth-twitter (0.0.11)

orm_adapter (0.4.0)

patron (0.4.11)

pg (0.10.1)

polyglot (0.3.3)

rack (1.2.1)

rack-cache (1.2)

rack-cors (0.2.7)

rack-google-analytics (0.11.0)

rack-mobile-detect (0.4.0)

rack-mount (0.6.14)

rack-piwik (0.1.3)

rack-pjax (0.6.0)

rack-protection (1.2.0)

rack-rewrite (1.2.1)

rack-ssl (1.3.2)

rack-test (0.6.1, 0.5.7)

rails (3.2.8)

rails_admin (0.1.1)

rails_autolink (1.0.9)

railties (3.2.8)

rake (0.9.2.2)

rdoc (3.12)

redcarpet (2.1.1)

redis (3.0.1)

redis-namespace (1.2.1)

remotipart (1.0.2)

resque (1.22.0)

resque-timeout (1.0.0)

rspec (2.11.0)

rspec-core (2.11.1)

rspec-expectations (2.11.3)

rspec-mocks (2.11.2)

ruby-hmac (0.4.0)

ruby-oembed (0.8.7)

rubygems-update (1.8.24)

rubyzip (0.9.9)

sass (3.1.19)

sass-rails (3.2.5)

selenium-webdriver (2.25.0)

simple_oauth (0.1.8)

sinatra (1.2.0)

sprockets (2.1.3)

sqlite3-ruby (1.2.4)

subexec (0.2.2)

thin (1.4.1, 1.2.8)

thor (0.16.0)

tilt (1.3.3, 1.2.2)

treetop (1.4.10)

twitter (2.0.2)

typhoeus (0.3.3)

tzinfo (0.3.33)

uglifier (1.3.0)

vegas (0.1.11)

warden (1.2.1)

will_paginate (3.0.3)


Here's my system.log:


Jan 6 18:45:03 gandalf com.apple.collabauthd[8909]: sandbox-exec: /usr/bin/thin: Operation not permitted

Jan 6 18:45:03 gandalf com.apple.launchd[1] (com.apple.collabauthd[8909]): Exited with code: 71

Jan 6 18:45:03 gandalf com.apple.launchd[1] (com.apple.collabauthd): Throttling respawn: Will start in 10 seconds


Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: /Library/Ruby/Site/1.8/rubygems/specification.rb:1637:in `raise_if_conflicts': Unable to activate actionpack-3.2.8, because rack-1.2.1 conflicts with rack (~> 1.4.0) (Gem::LoadError)

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/specification.rb:746:in `activate'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/specification.rb:780:in `activate_dependencies'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/specification.rb:766:in `each'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/specification.rb:766:in `activate_dependencies'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/specification.rb:750:in `activate'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems.rb:212:in `try_activate'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:59:in `require'

Jan 6 18:45:09 gandalf com.apple.collabd.notifications[8916]: from notifications.rb:19

Jan 6 18:45:09 gandalf com.apple.launchd[1] (com.apple.collabd.notifications[8916]): Exited with code: 1

Jan 6 18:45:09 gandalf com.apple.launchd[1] (com.apple.collabd.notifications): Throttling respawn: Will start in 10 seconds

Wiki & Web Server 503 Service Unavailable

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