Apple Event: May 7th at 7 am PT

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

Wiki server gives 503 error after updating ruby and tails

Hey all.


Wiki services is broken after I updated Ruby and Rails in order to install a log reading dashboard.

Now when I start wiki services (via command line), I get Error Reading Settings, and a 503 error when I try to access the wiki via the web.

We have content in the wiki, so I'm hesitant to just blow it away.

Any ideas where to start troubleshooting this?


reddwarf:~ mikec$ ruby --version

ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

reddwarf:~ mikec$ rails --version

Rails 3.2.2

sh-3.2# ls -ld /Library/Server/Wiki/

drwxrwxr-x 4 _teamsserver _teamsserver 136 Oct 23 11:09 /Library/Server/Wiki/

sh-3.2# serveradmin status wiki

wiki:state = "STOPPED"

sh-3.2# serveradmin start wiki

wiki:state = "STARTING"

sh-3.2# serveradmin status wiki

wiki:state = "RUNNING"


from Safari:


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.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 with Suhosin-Patch Server at reddwarf.aviate.org Port 443


system.log:

Apr 16 22:46:12 reddwarf sandboxd[54373] ([54602]): ruby(54602) deny file-read-metadata /private/var/folders/zz/zyxvpxvq6csfxvn_n00000vm00006x

(many of these messages in the log)

Mac mini, Mac OS X (10.7.2)

Posted on Apr 16, 2012 11:05 PM

Reply
Question marked as Best reply

Posted on Apr 17, 2012 3:08 AM

Unfortunately you might be SOL. Updating Rails will hose your server.


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

4 replies

Apr 17, 2012 5:32 AM in response to Michael Carter

I'll add this, here's what I would do if I were you. I would dump the PostgreSQL database for the wiki and back it up, rebuild my server from from scratch and then restore the database.


To dump the database for the wiki, run this in terminal:

sudo pg_dump -U _postgres collab -c -f ~/Desktop/collab.sql


The database will be dumped to your desktop, put it in a safe place.


Rebuild your lion server, save hostname and everything. Now, restore the database:

psql -U _postgres -d collab -f ~/Desktop/collab.sql


Wiki server gives 503 error after updating ruby and tails

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