10 Replies Latest reply: Apr 7, 2008 6:57 PM by Doug Whitmore
J R3 Level 2 Level 2 (265 points)
Hello,
after enabling wikis on my site, I get the following when I try to load http://site.com/groups


Service Temporarily Unavailable

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l DAV/2 mod_jk/1.2.23 PHP/5.2.4 Server

MBP
  • 1. Re: 503 Service Temporarily Unavailable for wikis
    Barrett Hartman1 Level 2 Level 2 (175 points)
    You can try stoping and starting teams... from the command line:

    sudo serveradmin stop teams
    sudo serveradmin start teams

    Other than that I would look in /Library/Logs/wikid/ and see that the error log has to say. The 503 error usually indicates that the teams process has not started properly. Best of luck!

    - Barrett
  • 2. Re: 503 Service Temporarily Unavailable for wikis
    J R3 Level 2 Level 2 (265 points)
    Thanks.
    When I do this, I get

    Mar 25 13:44:24 ns1 sudo[349]: james : TTY=ttys000 ; PWD=/Users/james ; USER=root ; COMMAND=/usr/sbin/serveradmin stop teams

    Mar 25 13:44:33 ns1 sudo[361]: james : TTY=ttys000 ; PWD=/Users/james ; USER=root ; COMMAND=/usr/sbin/serveradmin start teams

    Mar 25 13:44:40 ns1 com.apple.wikid[363]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:44:41 ns1 com.apple.launchd[1] (com.apple.wikid[363]): Exited with exit code: 1
    Mar 25 13:44:41 ns1 com.apple.launchd[1] (com.apple.wikid): Throttling respawn: Will start in 2 seconds
    Mar 25 13:44:50 ns1 com.apple.wikid[364]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:44:51 ns1 com.apple.launchd[1] (com.apple.wikid[364]): Exited with exit code: 1
    Mar 25 13:44:51 ns1 com.apple.launchd[1] (com.apple.wikid): Throttling respawn: Will start in 3 seconds
    Mar 25 13:45:01 ns1 com.apple.wikid[365]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:45:02 ns1 com.apple.launchd[1] (com.apple.wikid[365]): Exited with exit code: 1
    Mar 25 13:45:02 ns1 com.apple.launchd[1] (com.apple.wikid): Throttling respawn: Will start in 2 seconds
    Mar 25 13:45:16 ns1 com.apple.wikid[392]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:45:17 ns1 com.apple.launchd[1] (com.apple.wikid[392]): Exited with exit code: 1
    Mar 25 13:45:24 ns1 com.apple.wikid[421]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:45:25 ns1 com.apple.launchd[1] (com.apple.wikid[421]): Exited with exit code: 1
    Mar 25 13:45:25 ns1 com.apple.launchd[1] (com.apple.wikid): Throttling respawn: Will start in 3 seconds
    Mar 25 13:45:35 ns1 com.apple.wikid[422]: Removing stale pidfile /var/run/wikid.pid
    Mar 25 13:45:36 ns1 com.apple.launchd[1] (com.apple.wikid[422]): Exited with exit code: 1
  • 3. Re: 503 Service Temporarily Unavailable for wikis
    Barrett Hartman1 Level 2 Level 2 (175 points)
    Does the error log contain anything else? If not check the system log as well. I am betting that there is a permissions issue somewhere and the wikid process it having an issue reading/writing to a file or directory.

    - Barrett
  • 4. Re: 503 Service Temporarily Unavailable for wikis
    J R3 Level 2 Level 2 (265 points)
    here we go:

    [-] Unable to write to our repository path: /Library/WebServer/Documents/basement

    sorry, the 1st post was from the system log, not the wikid log.

    I am already using a folder called "basement" on my server for a site. Does the wiki feature need a folder called basement?

    I chmoded it to 777, and now I get a wiki page, though it is quite plain, text only.
  • 5. Re: 503 Service Temporarily Unavailable for wikis
    J R3 Level 2 Level 2 (265 points)
    all the images seem to be missing actually
    there is no /Collaboration directory that exists either.
  • 6. Re: 503 Service Temporarily Unavailable for wikis
    Doug Whitmore Level 2 Level 2 (235 points)
    The line "[-] Unable to write to our repository path: /Library/WebServer/Documents/basement" tells me that you've changed the collaboration root directory in Server Admin away from /Library/Collaboration to /Library/WebServer/Documents/basement.

    I'm also pretty sure that the permissions are wrong on that particular directory. I'm guessing that you probably don't want the collaboration directory pointing at your web server root. I'd suggest changing it back using Server Admin to /Library/Collaboration, and ensuring that the collaboration root and all of its subdirectories and files are owned by _teamsserver (user id 94).

    As for why it is plain... I can only guess that the css files are not getting loaded correctly. It seems that your install is somehow hosed.
  • 7. Re: 503 Service Temporarily Unavailable for wikis
    rkovelman Level 2 Level 2 (320 points)
    Yes I had the same issue today. It will need to have _teamsserver and that goes for doing a podcast server as well. It seems all WWW hosted pages needs to have _teamsserver as a WRE user, otherwise it will not work
  • 8. Re: 503 Service Temporarily Unavailable for wikis
    brianmhunt Level 1 Level 1 (0 points)
    I'm having a similar error --- however, my Wiki Error Log reports the following:

    2008-04-07 11:16:34-0400 [-] Starting factory <twisted.web.server.Site instance at 0x2d9ec10>
    2008-04-07 11:16:34-0400 [-] twisted.web2.channel.http.HTTPFactory starting on 8087
    2008-04-07 11:16:34-0400 [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x2d9ef08>
    2008-04-07 11:16:34-0400 [-] Traceback (most recent call last):
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/bin/twistd", line 21, in <module>
    2008-04-07 11:16:34-0400 [-] run()
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 27, in run
    2008-04-07 11:16:34-0400 [-] app.run(runApp, ServerOptions)
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 379, in run
    2008-04-07 11:16:34-0400 [-] runApp(config)
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 23, in runApp
    2008-04-07 11:16:34-0400 [-] _SomeApplicationRunner(config).run()
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 158, in run
    2008-04-07 11:16:34-0400 [-] self.postApplication()
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistdunix.py", line 213, in postApplication
    2008-04-07 11:16:34-0400 [-] startApplication(self.config, self.application)
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistdunix.py", line 176, in startApplication
    2008-04-07 11:16:34-0400 [-] uid, gid = mktap.getid(config['uid'], config['gid'])
    2008-04-07 11:16:34-0400 [-] File "/usr/share/caldavd/lib/python/twisted/scripts/mktap.py", line 41, in getid
    2008-04-07 11:16:34-0400 [-] uid = pwd.getpwnam(uid)[2]
    2008-04-07 11:16:34-0400 [-] KeyError: 'getpwnam(): name not found: _teamsserver'

    Does anyone have any idea what this is talking about?

    Incidentally, this started happening after a cold reset because (for no apparent reason) the server locked up hard.
  • 9. Re: 503 Service Temporarily Unavailable for wikis
    rkovelman Level 2 Level 2 (320 points)
    If that happens run disk utility from the CD and run repair permissions
  • 10. Re: 503 Service Temporarily Unavailable for wikis
    Doug Whitmore Level 2 Level 2 (235 points)
    Make sure Directory Services isn't taking a dirt nap by checking the CrashReporter logs.