13 Replies Latest reply: Jan 6, 2013 9:50 AM by ctrl_alt_suppr
felixk2 Level 1 Level 1 (0 points)

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)
  • 1. Re: Wiki & Web Server 503 Service Unavailable
    Lightivity Level 1 Level 1 (0 points)

    This solution helped me when I hade the same exact problem after a Time Machine-restore; something with access rights:

     

    http://support.apple.com/kb/TS2915

     

    /Fredrik

  • 2. Re: Wiki & Web Server 503 Service Unavailable
    felixk2 Level 1 Level 1 (0 points)

    Thanks for the response. Unfortunately that didn't help.

     

    I noticed though that if I disabled the Wiki then the Web Server started working fine. Definitely something is up with the wiki.

     

    Any other ideas?

     

    Thanks

    Felix

  • 3. Re: Wiki & Web Server 503 Service Unavailable
    Peter Nicholls Level 1 Level 1 (0 points)

    i have now got the server working if wiki is on or off. but the wiki, and for that matter, ical etc, will not work. I don't even know where to begin on this. I wish i'd stuck with 10.6 and webmin to be honest!

  • 4. Re: Wiki & Web Server 503 Service Unavailable
    shiroyuki Level 1 Level 1 (0 points)

    It might be Ruby-dependency problem. Please use your Console.app to see system.log. If it happens, please read my finding at http://shiroyuki.com/journal/2011/07/problem-solution-http-503-after-activating- any-web-services-on-mac-os-x-10-7-lion-server/.

  • 5. Re: Wiki & Web Server 503 Service Unavailable
    Mikel King Level 1 Level 1 (0 points)

    Thanks I did find this useful as it helped solve the problem.

     

    Cheers,

    Mikel King

    http://jafdip.com

  • 6. Re: Wiki & Web Server 503 Service Unavailable
    thibFR Level 1 Level 1 (0 points)

    I am running in the exact same issue, but your website seems to be offline. Could you forward me your post.

    Thanks

  • 7. Re: Wiki & Web Server 503 Service Unavailable
    wayne58 Level 1 Level 1 (0 points)

    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.

  • 8. Re: Wiki & Web Server 503 Service Unavailable
    thibFR Level 1 Level 1 (0 points)

    That makes a lot of sense. I spoted that in my system log yesterday:

     

    2/9/12 5:38:42.301 PM com.apple.myapp1:  [31mCould not find rake-0.9.2.2 in any of the sources [0m

    2/9/12 5:38:42.305 PM com.apple.launchd: (com.apple.boomerang1[12500]) Exited with code: 7

    I'll try your fix and let you know

  • 9. Re: Wiki & Web Server 503 Service Unavailable
    niocosys Level 1 Level 1 (0 points)

    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.

  • 10. Re: Wiki & Web Server 503 Service Unavailable
    Ashdonian Level 1 Level 1 (0 points)

    On my Server 2.2 seed 3 OS 10.8.2 there is no /usr/share/collabd/

  • 11. Re: Wiki & Web Server 503 Service Unavailable
    SwissDude Level 1 Level 1 (10 points)

    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.

  • 12. Re: Wiki & Web Server 503 Service Unavailable
    ctrl_alt_suppr Level 1 Level 1 (0 points)

    I got the wiki server back, yet the /auth/login_form page still returns 503! Any idea on what's going on there?

  • 13. Re: Wiki & Web Server 503 Service Unavailable
    ctrl_alt_suppr Level 1 Level 1 (0 points)

    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