Page MenuHomePhabricator

proxy'd labs MediaWiki instance times out contacting itself to runjobs
Closed, DeclinedPublic

Description

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 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

Version: unspecified
Severity: normal

Details

Reference
bz63338

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:02 AM
bzimport set Reference to bz63338.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 62551 has been marked as a duplicate of this bug. ***

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?

chasemp claimed this task.