Last modified: 2014-09-26 18:02:01 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 T72774, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70774 - Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
Status: UNCONFIRMED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-12 17:07 UTC by Jon
Modified: 2014-09-26 18:02 UTC (History)
5 users (show)

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


Attachments

Description Jon 2014-09-12 17:07:23 UTC
review/jdlrobson/mantleview x ~/Sites/w/extensions/MobileFrontend $ vagrant provision
==> default: Running provisioner: lsb_check...
==> default: Running provisioner: puppet...
Running Puppet with site.pp...
Warning: Could not retrieve fact ipaddress
Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

FACTER_fqdn='mediawiki-vagrant.dev' FACTER_forwarded_port='8080' FACTER_shared_apt_cache='/vagrant/cache/apt/' FACTER_environment='vagrant' FACTER_port_fragment=':8080' FACTER_share_owner='502' FACTER_share_group='20' FACTER_provider_name='virtualbox' puppet apply --templatedir /vagrant/puppet/templates --verbose --config_version /vagrant/puppet/extra/config-version --fileserverconfig /vagrant/puppet/extra/fileserver.conf --logdest /vagrant/logs/puppet/puppet.20f0fbdd9.log --logdest console --write-catalog-summary --modulepath '/tmp/vagrant-puppet-1/modules-0:/etc/puppet/modules' --hiera_config=/tmp/vagrant-puppet-1/hiera.yaml --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/site.pp || [ $? -eq 2 ]

Stdout from the command:



Stderr from the command:

Warning: Could not retrieve fact ipaddress
Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
Comment 1 Bryan Davis 2014-09-12 17:10:44 UTC
(In reply to Jon from comment #0)
> Warning: Could not retrieve fact ipaddress
> Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant
> Error: Cannot allocate memory - fork(2) on node mediawiki-vagrant

Any idea what's eating all the ram in your VM? Redis full of unprocessed jobs perhaps?
Comment 2 Jon 2014-09-12 17:12:24 UTC
I'm using Flow, MobileFrontend and VisualEditor. I notice this seems to correlate when I have a Flow page with over 20 posts and I continuously keep hitting.

Nothing looked suspect. Is there any particular commands you would like me to run?
Comment 3 Bryan Davis 2014-09-12 17:28:21 UTC
(In reply to Jon from comment #2)
> Nothing looked suspect. Is there any particular commands you would like me
> to run?

# Top 20 processes by resident memory size
$ ps -e -orss=,args= | sort -b -k1,1nr | head -20

# Free/used ram
$ free -m

# Job queue status
$ mwscript showJobs.php --wiki=wiki --group
Comment 4 Bryan Davis 2014-09-26 15:33:17 UTC
Jon, poke. Any progress in reproducing and determining which application is eating your instance RAM?
Comment 5 Erik Bernhardson 2014-09-26 15:43:08 UTC
I've had this happen several times, not because of applications eating ram but because of https://bugzilla.wikimedia.org/show_bug.cgi?id=70304

I have to reload vagrant from the appropriate directory and it starts up with my configured 4G instead of 1G
Comment 6 Erik Bernhardson 2014-09-26 15:45:21 UTC
I'll also add the easiest way to trigger the error is to try and load the hhvm debugger, 

    hhvm -m debug --debug-host ::1

always fails for me with not enough memory if it booted with 1G due to reading the wrong settings.yml
Comment 7 Jon 2014-09-26 16:24:33 UTC
It hasn't happened to me in a while (maybe correlated to less Flow coding?)... soon as it does I'll be back here.
Comment 8 Dan Duvall 2014-09-26 18:02:01 UTC
I know that some of the OOM issues during provisioning were happening during Ruby gem compilation (usually ffi). It probably wasn't the root cause—more likely the compounding effect of less base VM RAM and more memory required by the base MW dependencies (HHVM)—but it's worth noting that there have been far fewer reported cases since we switched to using system packages. [1][2]

[1] https://gerrit.wikimedia.org/r/#/c/158564/
[2] https://gerrit.wikimedia.org/r/#/c/156207/

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


Navigation
Links