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

            Bug ID: 68489
           Summary: When using hhvm, CurlHttpRequest::execute times out
           Product: MediaWiki-Vagrant
           Version: unspecified
          Hardware: Macintosh
                OS: Mac OS X 10.9
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Bug noted on Mac OS X 10.9.3, using Vagrant 1.6.3 and Virtualbox 4.3.12. As per
the standard vagrantfile, it was using a static IP and nfs.

Many things in MediaWiki require it to make calls to external APIs. It seems
that when hhvm is on, CurlHttpRequest::execute always times out. I noticed this
with uploads particularly. 

Enabling the zend role fixed the problem, so it seems to be specific to hhvm.


Problems that I noticed:

* when using instantCommons, uploads always time out. The reason is because
MediaWiki is checking to see if the upload is already on Commons, and the
request times out.

* when using UploadWizard (or other upload-by-url pages) to get files from
Flickr, the request always times out, because Flickr API requests are timing
out.


To see this behavior:

$ vagrant enable-role hhvm

$ vagrant enable-role uploadwizard

If change 148505 (https://gerrit.wikimedia.org/r/#/c/148505/) hasn't landed
yet, make sure to add the following to your LocalSettings, to allow the kinds
of uploads I mentioned.

    $wgInstantCommons = true;
    $wgAllowCopyUploads = true;
    $wgGroupPermissions["*"]["upload_by_url"] = true;

Then, you can try using UploadWizard to:

- Upload any image file
- Upload any file from an appropriately licensed Flickr URL
(https://www.flickr.com/photos/brevity/10423091326/ is fine; if you need more
use the advanced search to find CC-BY and CC-BY-SA files).

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

Reply via email to