Last modified: 2014-08-03 15:22:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70499, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68499 - 403 error on PHP script
403 error on PHP script
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized blocker
: ---
Assigned To: metatron
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-24 08:05 UTC by Magnus Manske
Modified: 2014-08-03 15:22 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Magnus Manske 2014-07-24 08:05:43 UTC
I'm getting a "403 forbidden" error on

http://tools.wmflabs.org/mix-n-match/api.php

It worked fine yesterday; haven't touched it since three days ago.

Restarted webservice, no change.

This renders my tool non-functional. Please help.
Comment 1 metatron 2014-07-24 08:41:43 UTC
Your webservice has been restarted
2014-07-24 07:47:05: (server.c.1512) server stopped by UID = 51434 PID = 23122 
2014-07-24 07:47:33: (log.c.166) server started 
2014-07-24 08:02:19: (server.c.1512) server stopped by UID = 0 PID = 17456 
2014-07-24 08:02:48: (log.c.166) server started 

With restart it got the new default config, which checks for custom php-fcgi handlers in .lighttpd.conf.

But this check fails, if there's no such config-file at all.

Please create a file .lighttpd.conf and add some arbitrary comment or something useful like:

server.modules += ("mod_auth","mod_status")
status.status-url = "/mix-n-match/server-status"
status.statistics-url = "/mix-n-match/server-statistics"

Seems to be my faulft this time :/
Sry for that!
Comment 2 Gerrit Notification Bot 2014-07-24 09:58:37 UTC
Change 148977 had a related patch set uploaded by Hedonil:
webserviće: Bug: 68431, Bug: 68499 - allow setting individual tools memory limits via config files in /data/project/.system/config - create blank .lighttpd.conf, if it doesn't exist

https://gerrit.wikimedia.org/r/148977
Comment 3 Magnus Manske 2014-07-24 11:30:44 UTC
(In reply to metatron from comment #1)
> Your webservice has been restarted
> 2014-07-24 07:47:05: (server.c.1512) server stopped by UID = 51434 PID =
> 23122 
> 2014-07-24 07:47:33: (log.c.166) server started 
> 2014-07-24 08:02:19: (server.c.1512) server stopped by UID = 0 PID = 17456 
> 2014-07-24 08:02:48: (log.c.166) server started 
> 
> With restart it got the new default config, which checks for custom php-fcgi
> handlers in .lighttpd.conf.
> 
> But this check fails, if there's no such config-file at all.
> 
> Please create a file .lighttpd.conf and add some arbitrary comment or
> something useful like:
> 
> server.modules += ("mod_auth","mod_status")
> status.status-url = "/mix-n-match/server-status"
> status.statistics-url = "/mix-n-match/server-statistics"
> 
> Seems to be my faulft this time :/
> Sry for that!

Did that. Now it doesn't fail, it just "runs" forever...
Comment 4 Magnus Manske 2014-07-24 11:31:51 UTC
(In reply to Magnus Manske from comment #3)
> (In reply to metatron from comment #1)
> > Your webservice has been restarted
> > 2014-07-24 07:47:05: (server.c.1512) server stopped by UID = 51434 PID =
> > 23122 
> > 2014-07-24 07:47:33: (log.c.166) server started 
> > 2014-07-24 08:02:19: (server.c.1512) server stopped by UID = 0 PID = 17456 
> > 2014-07-24 08:02:48: (log.c.166) server started 
> > 
> > With restart it got the new default config, which checks for custom php-fcgi
> > handlers in .lighttpd.conf.
> > 
> > But this check fails, if there's no such config-file at all.
> > 
> > Please create a file .lighttpd.conf and add some arbitrary comment or
> > something useful like:
> > 
> > server.modules += ("mod_auth","mod_status")
> > status.status-url = "/mix-n-match/server-status"
> > status.statistics-url = "/mix-n-match/server-statistics"
> > 
> > Seems to be my faulft this time :/
> > Sry for that!
> 
> Did that. Now it doesn't fail, it just "runs" forever...

Not forever; after a minute or so it died with "Internal error". Worked fine yesterday, so...
Comment 5 metatron 2014-07-24 11:33:35 UTC
Yeah. Karma & Coincidence!. See labs-l: DB-upgrade in progress

my backlog right now
http://tools.wmflabs.org/newwebtest/xtools-status.html
Just terminated the service for now.
Comment 6 Magnus Manske 2014-07-24 11:45:40 UTC
Huh. Now it works. Thanks if you fixed it, otherwise - magick! ;-)
Comment 7 metatron 2014-07-24 11:55:19 UTC
Ha! magic it is ;) Yep it's better as you're getting a quick error-response and not a 100sec timeout, if you try to access affected databases.
Comment 8 Gerrit Notification Bot 2014-07-24 14:45:10 UTC
Change 149015 had a related patch set uploaded by Hedonil:
lighttpd-starter: include default php-fcgi if no .lighttpd.conf is present

https://gerrit.wikimedia.org/r/149015
Comment 9 Gerrit Notification Bot 2014-07-24 15:40:42 UTC
Change 149015 merged by coren:
lighttpd-starter: include default php-fcgi if no .lighttpd.conf is present

https://gerrit.wikimedia.org/r/149015

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links