# Switch to Composer Errors: Cannot Fork / in Process.php line 355: Unable to launch a new process

**URL:** <https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [June 21, 2022, 7:14pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530 "2022-06-21T19:14:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 21, 2022, 7:14pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/1 "2022-06-21T19:14:54Z")

</div>

**Your software**  
_My PHP version is_ : 7.4.30  
_My MySQL/MariaDB version is_ (delete as applicable): MySQL version 8.0

HI all,  
I’m trying to switch to composer on Mautic 4.3.1 as described here:

> **[How to switch to Composer](https://docs.mautic.org/en/setup/switch-to-composer)**
>
> . Up until Mautic 4, users could download Mautic as a ZIP file and install it on any PHP server. However, many users were running into installation and update errors, many of which caused considerable frustration and in some cases, significant...

yet getting the following errors when running composer using:

/usr/local/bin/php-cli-74 /usr/bin/composer create-project mautic/recommended-project:^4 mautic-new --no-interaction

Erros messages after a while, please advice. Many thanks!

Failed to extract league/flysystem-cached-adapter: (2) ‘/usr/bin/unzip’ -qq ‘/home/jm840nap/www/home/mautic-new/vendor/composer/tmp-80f8b8484ce011fc705534e32631c4a2’ -d ‘/home/jm840nap/www/home/mautic-new/vendor/composer/abe33481’

sh: 1: Cannot fork

```
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

```

0/224 [\>---------------------------] 0% Failed to extract symfony/deprecation-contracts: (2) ‘/usr/bin/unzip’ -qq ‘/home/jm840nap/www/home/mautic-new/vendor/composer/tmp-bcf7af95c2751765de59e63d1a5b0532’ -d ‘/home/jm840nap/www/home/mautic-new/vendor/composer/0eee14e7’

sh: 1: Cannot fork

```
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

```

104/224 [=============\>--------------] 46% Failed to extract voku/stop-words: (2) ‘/usr/bin/unzip’ -qq ‘/home/jm840nap/www/home/mautic-new/vendor/composer/tmp-aeda12a4073854ac6952110b1a89ae33’ -d ‘/home/jm840nap/www/home/mautic-new/vendor/composer/fed2699a’

sh: 1: Cannot fork

```
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

```

136/224 [=================\>----------] 60% Failed to extract symfony/validator: (2) ‘/usr/bin/unzip’ -qq ‘/home/jm840nap/www/home/mautic-new/vendor/composer/tmp-a23217c6e0f180d95cc8ca54d13270e0’ -d ‘/home/jm840nap/www/home/mautic-new/vendor/composer/f583a4ec’

sh: 1: Cannot fork

```
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

```

170/224 [=====================\>------] 75% Install of sensio/framework-extra-bundle failed  
Install of noxlogic/ratelimit-bundle failed  
Install of mrclay/minify failed  
Install of giggsey/libphonenumber-for-php failed  
Install of misd/phone-number-bundle failed  
Install of mautic/core-lib failed  
Install of mautic/grapes-js-builder-bundle failed  
Install of mautic/plugin-citrix failed  
Install of mautic/plugin-clearbit failed  
Install of mautic/plugin-cloudstorage failed  
Install of mautic/plugin-crm failed  
187/224 [=======================\>----] 83% Install of mautic/plugin-focus failed  
Install of mautic/plugin-fullcontact failed  
Install of mautic/plugin-gmail failed  
Install of mautic/plugin-outlook failed  
Install of mautic/plugin-social failed  
Install of mautic/plugin-tagmanager failed  
Install of mautic/plugin-zapier failed  
Install of mautic/theme-aurora failed  
Install of mautic/theme-blank failed  
Install of mautic/theme-brienz failed  
Install of mautic/theme-cards failed  
Install of mautic/theme-coffee failed  
Install of mautic/theme-confirmme failed  
Install of mautic/theme-fresh-center failed  
Install of mautic/theme-fresh-fixed failed  
Install of mautic/theme-fresh-left failed  
Install of mautic/theme-fresh-wide failed  
Install of mautic/theme-goldstar failed  
Install of mautic/theme-mauve failed  
Install of mautic/theme-nature failed  
Install of mautic/theme-neopolitan failed  
Install of mautic/theme-oxygen failed  
Install of mautic/theme-paprika failed  
Install of mautic/theme-skyline failed  
Install of mautic/theme-sparse failed  
Install of mautic/theme-sunday failed  
Install of mautic/theme-trulypersonal failed  
Install of mautic/theme-vibrant failed  
224/224 [============================] 100%  
In Process.php line 355:

Unable to launch a new process.

create-project [-s|–stability STABILITY] [–prefer-source] [–prefer-dist] [–prefer-install PREFER-INSTALL] [–repository REPOSITORY] [–repository-url REPOSITORY-URL] [–add-repository] [–dev] [–no-dev] [–no-custom-installers] [–no-scripts] [–no-progress] [–no-secure-http] [–keep-vcs] [–remove-vcs] [–no-install] [–ignore-platform-req IGNORE-PLATFORM-REQ] [–ignore-platform-reqs] [–ask] [–] [[ []]]

---

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 27, 2022, 7:57pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/2 "2022-06-27T19:57:03Z")

</div>

Anybody? I’m not sure whether I updated Mautic 4.3 to composer or it failed, according to the messages above? Many thanks.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 27, 2022, 8:16pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/3 "2022-06-27T20:16:16Z")

</div>

4.3.1 requires 7.4 … I noticed you are using 8.0.

Maybe that why you are experiencing this errors? I am not sure either

---

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 27, 2022, 9:06pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/4 "2022-06-27T21:06:15Z")

</div>

When I go to mautic/system-info, it states mysqlnd 7.4.30. As seen from the commands above, I’m invoking with [quote=“georg1, post:1, topic:24530”]  
/usr/local/bin/php-cli-74  
[/quote]  
so I suppose this should be ok?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 27, 2022, 9:08pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/5 "2022-06-27T21:08:43Z")

</div>

Never mind … my mistake … I was looking at MySQL version by accident … I need new glasses

Yeah your on php 7.4 when I looked again.

Sorry about that. Not familiar with this error …

---

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 27, 2022, 9:10pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/6 "2022-06-27T21:10:58Z")

</div>

something to do with the unzip command according to the errors?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 27, 2022, 9:15pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/7 "2022-06-27T21:15:06Z")

</div>

Did some googling on this error …

Try this command

composer clearcache

Then run installation again

---

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 28, 2022, 7:13pm UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/8 "2022-06-28T19:13:58Z")

</div>

OK, will try that and get back here very soon.

---

<div class="post-metadata">

**Author:** ![georg1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/georg1/32/6724_2.png) [@georg1](https://forum.mautic.org/u/georg1)\
**Post date:** [June 29, 2022, 11:33am UTC](https://forum.mautic.org/t/switch-to-composer-errors-cannot-fork-in-process-php-line-355-unable-to-launch-a-new-process/24530/9 "2022-06-29T11:33:04Z")

</div>

Ok, I did a clearcache which didn’t resolve it first. I deleted all folders, re-ran the installation using the **default**  **/mautic** directory as argument in the recommended-project command.  
Before that, I moved the working /mautic installation to /mautic-old (so as opposed to what the update docs say, I moved the folder before invocing the recommended-project command).
