Last modified: 2014-05-22 19:36:10 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 T60931, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58931 - webservice does not start
webservice does not start
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-24 10:21 UTC by seth
Modified: 2014-05-22 19:36 UTC (History)
3 users (show)

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


Attachments

Description seth 2013-12-24 10:21:05 UTC
http://tools.wmflabs.org/url-converter/index.cgi takes much time to load (several minutes) and sometimes just gives server errors.
The same problem occurs at http://tools.wmflabs.org/searchsbl/.

The problem seems to be that the webservice is not started correctly.

"webservice start" says
 Starting webservice... started.

"webservice status" then says
 Your webservice is scheduled:
  queue instance "task@tools-exec-05.pmtpa.wmflabs" dropped because it is temporarily not available

repeating "webservice status" after one minute says
 Your webservice is not running.


At #wikimedia-labs I got a hint to use
qsub -e ~/error.log -o ~/error.log -i /dev/null -q webgrid -l h_vmem=4g -b y -N "httpd-url-converter" /usr/local/bin/tool-lighttpd >/dev/null 2>&1

but that leads to (via qstat)
  1961692 0.00000 httpd-url- local-url-co qw 12/24/2013 09:56:05 1
then after some seconds to
  1961692 0.25000 httpd-url- local-url-co r 12/24/2013 09:56:16 webgrid@tools-webgrid-01.pmtpa 1
and finally the job dies.

error.log says:
  (log.c.166) server started
  (log.c.118) opening errorlog '/data/project/url-converter/access.log' failed: Permission denied
  (server.c.938) Configuration of plugins failed. Going down.

the rights for access.log are 
  -rw-r----- 1 root local-url-converter 10985 Dec 24 09:53 access.log
Comment 1 Marc A. Pelletier 2013-12-24 14:15:27 UTC
You have a leftover access.log from the default apache config.  You can fix your issue by simply doing:

rm access.log

And starting your webservice again.

This should probably be in a FAQ somewhere.
Comment 2 seth 2013-12-25 07:56:37 UTC
That's kind of strange (at least for me):

http://tools.wmflabs.org/searchsbl/ is running again, although I changed nothing. There's still no webservice running for that tool and its access.log still has the rights mentioned in my first post. But the tool works.

However I did what you said at the other tool (url-converter), although it was running now, too:
I commanded 'rm access.log' and 'webservice restart' to start the webservice. After that http://tools.wmflabs.org/url-converter/ was not reachable. But when I stopped the webservice, the tool worked again.

(Both tools are cgi-scripts written in perl, but I don't know if that's relevant for this ticket.)
Comment 3 Marc A. Pelletier 2013-12-25 14:39:45 UTC
It may be (relevant).  Lighttpd doesn't handle /cgi-bin/ by default the same way apache does; you need to ask it do to so explicitly with a configuration stanza.

Look at the last section of 

https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help/NewWeb

Where that is explained with an example.
Comment 4 seth 2013-12-28 01:04:01 UTC
ok, so if it works now (without explicit cgi-handling and without a running webservice), what does that mean? Does it mean that the tool does not use Lighttpd, but apache?

Is it ok, to let the tool run without a Lighttpd webservice?
Comment 5 Tim Landscheidt 2014-03-13 02:20:04 UTC
(In reply to seth from comment #4)
> ok, so if it works now (without explicit cgi-handling and without a running
> webservice), what does that mean? Does it mean that the tool does not use
> Lighttpd, but apache?

If there's no webservice running, the tool uses Apache.

> Is it ok, to let the tool run without a Lighttpd webservice?

That will stop working soon, as part of the move to the new data center (cf. [[wikitech:Tool Labs/Migration to eqiad]]) will be that Apache is removed completely and only lighttpd ("webservice") will be available.  So you should make sure that your tool runs with lighttpd.
Comment 6 Tim Landscheidt 2014-03-28 23:58:10 UTC
I set up searchsbl as per [[de:Benutzer Diskussion:Lustiger seth#Your searchsbl tool at Labs]].
Comment 7 seth 2014-05-22 19:36:10 UTC
it runs! ;-)

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


Navigation
Links