While making my Flarum install, I encountered an install bug which spit out the following code:
At the end -
[ErrorException]
proc_open(): fork failed - Resource temporarily unavailable
During the install (the core components that fail may vary for you) -
Installing axy/codecs-base64vlq (1.0.1): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of axy/codecs-base64vlq failed
Installing axy/sourcemap (0.1.5): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of axy/sourcemap failed
Installing components/font-awesome (5.15.3): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of components/font-awesome failed
Installing psr/http-message (1.0.1): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of psr/http-message failed
Installing dflydev/fig-cookies (v3.0.0): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of dflydev/fig-cookies failed
Installing doctrine/event-manager (1.1.1): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of doctrine/event-manager failed
Installing doctrine/deprecations (v0.5.3): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of doctrine/deprecations failed
Installing doctrine/cache (1.11.0): Extracting archive
proc_open(): fork failed - Resource temporarily unavailable
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
Install of doctrine/cache failed
Solution to issue
While talking with @askvortsov on Discord, due to this being a fresh install it was suggested that the server might be held up or some sort of OS issue, however I've installed just fine on the same server and it shouldn't be that. Cause remains unknown.
However, the solution I used was to 'update' to exactly the same version after the failed compose (no setup/install initiated).
composer update --prefer-dist --no-dev -a --with-all-dependencies
During the update no error occoured and I made sure to check the components that didn't install previously did install correctly this time:
Installing psr/http-message (1.0.1): Extracting archive
Installing dflydev/fig-cookies (v3.0.0): Extracting archive
Installing doctrine/event-manager (1.1.1): Extracting archive
Installing doctrine/deprecations (v0.5.3): Extracting archive
Installing doctrine/cache (1.11.0): Extracting archive
Installing doctrine/dbal (2.13.1): Extracting archive
Installing doctrine/inflector (2.0.3): Extracting archive
Installing doctrine/lexer (1.2.1): Extracting archive
Installing wikimedia/less.php (v3.1.0): Extracting archive
Installing tobscure/json-api (v0.3.0): Extracting archive
Installing symfony/polyfill-ctype (v1.22.1): Extracting archive
Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
Installing symfony/yaml (v5.2.5): Extracting archive
Installing symfony/translation-contracts (v2.4.0): Extracting archive
Installing symfony/polyfill-php80 (v1.22.1): Extracting archive
Installing symfony/polyfill-mbstring (v1.22.1): Extracting archive
Installing symfony/translation (v5.2.6): Extracting archive
Installing symfony/polyfill-php72 (v1.22.1): Extracting archive
Hope this helps you if you encounter this bug! 😃