https://bugzilla.wikimedia.org/show_bug.cgi?id=63338

            Bug ID: 63338
           Summary: proxy'd labs MediaWiki instance times out contacting
                    itself to runjobs
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: sp...@wikimedia.org
                CC: abog...@wikimedia.org, benap...@gmail.com,
                    rlan...@gmail.com
       Web browser: ---
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to