Last modified: 2014-07-18 21:19:33 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 T65338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63338 - proxy'd labs MediaWiki instance times out contacting itself to runjobs
proxy'd labs MediaWiki instance times out contacting itself to runjobs
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
: 62551 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-31 23:09 UTC by spage
Modified: 2014-07-18 21:19 UTC (History)
4 users (show)

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


Attachments

Description spage 2014-03-31 23:09:43 UTC
At the end of every wiki request, triggerJobs() in includes/Wiki.php uses wfParseUrl( $wgServer ) to get the host name and then makes an http API request to it to run jobs.

If you configure a MediaWiki labs instance (see https://wikitech.wikimedia.org/wiki/Help:Single_Node_MediaWiki ) and use Special:NovaProxy to make it visible at http://<instancename>.wmflabs.org , this times out because the instance can't access its proxy hostname; its runJobs log file may contain
  [runJobs] Failed to start cron API (socket error 110): Connection timed out

Erik Bernhardson reduced the timeout from 60 seconds to 0.1 seconds in Gerrit change #120958 , but it would be better if the instance was able to contact itself; on a single-node instance triggerJobs() could make the HTTP request to localhost or to $HOSTNAME.

One workaround is to modify /etc/hosts on the labs instance to add the proxy name:
    127.0.0.1 localhost instancename.wmflabs.org
Comment 1 spage 2014-04-01 01:05:41 UTC
*** Bug 62551 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Bogott 2014-07-18 21:19:33 UTC
So, I set up an instance with mediawiki named proxytest-singlenode with a proxy at proxytest-singlenode.wmflabs.org.

When logged into that instance, I can do this:

$ wget http://proxytest-singlenode.wmflabs.org

So "the instance can't access its proxy hostname" seems to not be true... does that mean that this has been fixed on the proxy, or am I misunderstanding the issue?

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


Navigation
Links