[11:49:59] can a phab admin please remove spam at https://phabricator.wikimedia.org/T195361#6572310 [13:26:12] [[Tech]]; Masssly; /* Expand templates */ new section; https://meta.wikimedia.org/w/index.php?diff=20575809&oldid=20569310&rcid=16505540 [16:59:21] [[Tech]]; Ammarpad; /* Expand templates */ comment; https://meta.wikimedia.org/w/index.php?diff=20576184&oldid=20575809&rcid=16506431 [20:53:33] Hello, I am having a problem running wikimedia in vagrant. Got the error "default: Error: /usr/local/bin/composer install --optimize-autoloader --prefer-dist returned 2 instead of one of [0]". [20:53:49] When I run the command manually: [20:54:00] No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file. [20:54:01] Problem 1 [20:54:02] seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. [20:57:24] It is the first time I tried to make vagrant version working. I followed: https://www.mediawiki.org/wiki/MediaWiki-Vagrant [20:58:56] I failed to find a solution by googling. Is it a known problem, any quick solutions? [21:01:09] what command did you run? [21:01:38] The error was in the output of vagrant up [21:02:32] The "vagrant up" ended with: The SSH command responded with a non-zero exit status. Vagrant [21:03:46] Then I grep'ed the output for errors and found: ==> default: Error: /usr/local/bin/composer install --optimize-autoloader --prefer-dist returned 2 instead of one of [0] [21:03:46] /usr/local/bin/composer install --optimize-autoloader --prefer-dist returned 2 instead of one of [0] [21:11:16] [[Tech]]; Masssly; /* Expand templates */ re; https://meta.wikimedia.org/w/index.php?diff=20576898&oldid=20576184&rcid=16508114 [22:47:00] I found a hack to fix the mentioned problem [22:48:41] I edited the modules/php/manifests/composer.pp, I changed the "curl https://getcomposer.org/composer.phar -o ${bin}" to "curl https://getcomposer.org/download/1.10.16/composer.phar -o ${bin}" [22:48:50] and I removed: exec { 'update_composer': [22:48:52] Class['php::package'], [22:51:06] So it installs an older version of composer and does not update it. I made the change, I run "vagrant destroy" and "vagrant up" and it finished without any error. [23:45:42] Oh [23:45:56] Is it doing that thing where it's grabbing the beta? [23:46:07] Yup [23:46:08] ffs [23:46:11] I'll fix that [23:47:05] https://getcomposer.org/composer-stable.phar is 2.0 now too [23:52:25] https://gerrit.wikimedia.org/r/636209