I am using 2 GB ram virtual server. I did not set up a swap. I got this error in 2 different plugin installation.
# composer require saleksin/flarum-auth-google
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version v0.1.0-beta.8.0.3 for saleksin/flarum-auth-google
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing league/oauth2-google (3.0.2): Downloading (100%)
proc_open(): fork failed - Cannot allocate memory
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Installation failed, reverting ./composer.json to its original content.
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
PHP Warning: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952
Warning: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952
[ErrorException]
proc_open(): fork failed - Cannot allocate memory
require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
# php flarum info
Flarum core 0.1.0-beta.13
PHP version: 7.4.6
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imap, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
+----------------------------------+----------------+--------+
| Flarum Extensions | | |
+----------------------------------+----------------+--------+
| ID | Version | Commit |
+----------------------------------+----------------+--------+
| flarum-approval | v0.1.0-beta.13 | |
| flarum-flags | v0.1.0-beta.13 | |
| flarum-likes | v0.1.0-beta.13 | |
| flarum-lock | v0.1.0-beta.13 | |
| flarum-markdown | v0.1.0-beta.13 | |
| flarum-mentions | v0.1.0-beta.13 | |
| flarum-sticky | v0.1.0-beta.13 | |
| flarum-subscriptions | v0.1.0-beta.13 | |
| flarum-suspend | v0.1.0-beta.13 | |
| flarum-tags | v0.1.0-beta.13 | |
| flarum-emoji | v0.1.0-beta.13 | |
| flarum-lang-english | v0.1.0-beta.13 | |
| fof-terms | 0.4.2 | |
| fof-transliterator | 0.2.0 | |
| fof-pages | 0.4.0 | |
| fof-user-directory | 0.3.4 | |
| fof-merge-discussions | 0.3.3 | |
| flagrow-ads | 0.2.4 | |
| fof-best-answer | 0.1.7 | |
| fof-drafts | 0.1.5 | |
| fof-links | 0.3.0 | |
| fof-user-bio | 0.1.3 | |
| v17development-seo | 1.2 | |
| fof-follow-tags | 0.3.4 | |
| fof-socialprofile | 0.1.2 | |
| fof-subscribed | 0.2.3 | |
| fof-formatting | 0.1.4 | |
| flarum-auth-github | v0.1.0-beta.13 | |
| fof-recaptcha | 0.1.2 | |
| flarum-auth-facebook | v0.1.0-beta.13 | |
| fof-auth-discord | 0.1.3 | |
| flarum-auth-twitter | v0.1.0-beta.13 | |
| fof-polls | 0.1.2 | |
| fof-byobu | 0.5.0 | |
| flagrow-analytics | 0.8.0 | |
| fof-geoip | 0.1.7 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| fof-upload | 0.9.1 | |
| flarum-pusher | v0.1.0-beta.13 | |
| isaced-email-verification-switch | 0.1.3 | |
| fof-realtimedate | 0.1.2 | |
| tolgaaaltas-turkish | 0.13.2 | |
| tolgaaaltas-lang-turkish | 0.13.0 | |
| fof-profile-image-crop | 0.1.1 | |
| flarum-statistics | v0.1.0-beta.13 | |
| clarkwinkelmann-circle-groups | 0.2.1 | |
| therealsujitk-gifs | v1.4.8 | |
| zerosonesfun-hashtags | 2.0.1 | |
| askvortsov-moderator-warnings | v0.1.6 | |
| fof-spamblock | 0.2.2 | |
| fof-share-social | 0.1.2 | |
| nomiscz-auth-steam | v0.1.7 | |
| the-turk-password-strength | 0.1.3 | |
| therealsujitk-show-password | v1.0.3 | |
| fof-nightmode | 0.4.0 | |
| the-turk-diff | 1.0.7 | |
| askvortsov-categories | v0.2.7 | |
| bokt-redis | 0.1.0 | |
| fof-sitemap | 0.4.0 | |
| the-turk-extended-appearance | 0.1.1 | |
| reflar-webhooks | 0.2.2 | |
+----------------------------------+----------------+--------+
Base URL: https://forum.sourceturk.net
Installation path: /var/www/sourceturk/flarum
Debug mode: off