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

            Bug ID: 69428
           Summary: Jobrunner will fail to spawn jobs on HHVM
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: Unprioritized
         Component: JobRunner
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Created attachment 16174
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=16174&action=edit
simple script that reproduces the issue in production.

When running on HHVM, the jobrunner service (configured to use fcgi I suppose)
fails to spawn curl requests with the following errors:


[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033896] [] 
Warning: fork failed - Cannot allocate memory in
/srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 933
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033897] [] 
Notice: Undefined index: 1 in
/srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 935
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033898] [] 
Notice: Undefined index: 2 in
/srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 936
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033899] [] 
Notice: Undefined index: 0 in
/srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 938
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033900] [] 
Warning: Not a valid stream resource in
/srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 938
2014-08-12T09:25:36+0000: Could not spawn process in loop 0: curl -XPOST -s -a
'http://127.0.0.1:9002/rpc/RunJobs.php?wiki=glkwiki&type=ChangeNotification&maxtime=60&maxmem=300M'

I tried various tweaks (like raising the memory limit both in the JR script and
in hhvm) but nothing seemed to work around this.

This seems to be a general problem with hhvm as configured by us btw, I wrote a
small script that just forks with proc_open a curl request for enwiki main
page, and it spawns the same error (see attachment).

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to