| Lion OS X Wiki Server and Ruby Rack Problem |
|
|
|
| Written by Josh B |
| Saturday, 05 November 2011 13:53 |
|
Here's a quick tip that will help people who have installed OS X Lion Server. Lion Server includes a Wiki Server that (in my opinion) is one of the best Wiki Server's out there. Full WYSIWYG editing and its very simple for anyone to use. The whole interface is simple and polished. The whole thing is built on Ruby, and serves as a great example of a Ruby Web App. However, sometime the Wiki Server won't start, causing problems for the Web Server. Here is one solution to this problem. If you have the Wiki Server set to "On" and you see a message like "503 - Service Not Available" when visting a website that is hosted on your Lion Server machine, take a look in /var/log/system.log. If you see: Nov 5 13:34:35 home com.apple.collabcored1[56384]: /Library/Ruby/Gems/1.8/gems/bundler-1.1. This means that the Collabcored application (ie the Apple OS X Wiki Server) is configured to use Rack 1.2.1. But it appears that Rack 1.2.3 is installed. (This is usually installed by later Web Apps that you might have installed). To solve this, try removing Rack 1.2.3: sudo gem uninstall rack -v 1.2.3 This will give: Successfully uninstalled rack-1.2.3 Then bounce the Wiki Server by turning it on and off in the Server Application. (Server.app). All should now be well...! (And yes, there should be a more elegant solution, problem by editing the Wiki Server configuration. This is something I am looking into...)
|





Comments
I've installed a rails app, a restful web service with rails 3.1 on lion osx server.
As you wrote, wiki server 3 won't start cause his gems ranting.
I need the updated gems but, wiki server continue to require other gem versions; maybe rack, maybe oldgemfile version x.x.x.
The rails system has a "bundle exec" command for gem versioning, directly integrated with Gemfile.lock but lion server automatic webapps startup system seems to ignore this.
I've modified Gemfiles of wikiserver rails apps (2, collabcored and auth'something'), updated the bundle with no result.
I'll take a look to webapp plists files /private/etc/apache2/webapps.
Do you further investigate on wikiserver configuration ?
Have some tip ?
Thanks. Quote
RSS feed for comments to this post.