Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CloudEdwards's avatar

Forge Failed to Clone Repo

{SOLVED} I needed to resize my server from 512mb to at least 1gb. That is what Taylor Otwell told me. Of course I had all ready reset my server password in a vain attempt to fix it. Now it is all broken.

Hi, please help me. I am trying to deploy my site with Forge

I have done it successfully before, but this time it refuses to install my site.

The server status says it is good. I looked and it was down, then I hit the refresh button and it said it was connected.

I can not ssh into my server using the ip address. it returns 'Permission denied publickey'

I am not sure how to fix this, and I am in over my head with this server management stuff.

Here is the error log.

Alert Description We had trouble connecting to your server. Typically, this means there is a problem with the SSH keys on the server. Or, your server may be prompting for a password when Forge attempts to SSH in as the root user.

Error Output

Cloning into 'www.cloudedwards.com'... Loading composer repositories with package information Installing dependencies

  • Installing react/promise (v2.2.0) Loading from cache The following exception is caused by a lack of memory and not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974 Stack trace: #0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 974, Array) #1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(974): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array) #2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(784): Symfony\Component\Console\Application->getSttyColumns() #3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(745): Symfony\Component\Console\Application->getTerminalDimensions() #4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(675): Symfony\Component\Console\Application->getTerminalWidth() #5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974

Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974

ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974

Call Stack: 0.0022 223184 1. {main}() /usr/local/bin/composer:0 0.0171 403184 2. require('phar:///usr/local/bin/composer/bin/composer') /usr/local/bin/composer:25 0.0950 3482696 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43 0.0993 3797440 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:83 67.9954 144631816 5. Composer\Console\Application->renderException() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:133 67.9960 144632880 6. Symfony\Component\Console\Application->renderException() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:208 67.9973 144633328 7. Symfony\Component\Console\Application->getTerminalWidth() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:675 67.9973 144633480 8. Symfony\Component\Console\Application->getTerminalDimensions() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:745 67.9973 144633576 9. Symfony\Component\Console\Application->getSttyColumns() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:784 67.9973 144635536 10. proc_open() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974 67.9975 144636696 11. Composer\Util\ErrorHandler::handle() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974

Couldn't Clone Repository?

Please make sure the following SSH key has been added as a "deploy key" to your source control provider account:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBCAqDI7zunykRugoLN9h5g6/pyqEWT5PQ/aXXGTOjhqfYRCNKNCOE3nojXnDUofdmfz16PpM6etFPRAHDk/n+kw4tfZKuxgHZIhaEkS7id5Q9qfclzDCjnMVLQ/Zd4JtY+WK23XCR6DbbKeT22s6W416mgIs7CryCxKjVf/H7a6/PsSNNAMt4F5oBg4CUegX49aLsLeerUCNLW7BR5DnSikmCqVQdrGRVyRw8Tk5mRD3m3SMtGEndMIR+c5AJP61Hhi5OdmcRyq0rCLdy7zgZnx36GVo6aAFIHxHySlTIXXurWKFLt82xbhBoEFDqqYoCZBQ450Spbit/8xRoaO5T root@cloud-nine-productions Couldn't SSH Into Server?

Please make sure that the following SSH key is placed in both the /home/forge/.ssh/authorized_keys file and the /root/.ssh/authorized_keys file on your server.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDYABf4A1dQFvkOQH1Jcn8H1U1DO84E2TpVMTIQfZXPD6uRsc8MzflcRQ6m9OvSyLkLug1EPFLLvcC73ZGBBD5p4Hdf3INVAWQqWGEFESrlo+bL6Ssu398D+aZ8pwBXfq7YfmhnokToM5OnTj9tXbJNrg30sMZq0OgF71ojAm2x2w== phpseclib-generated-key You can test your server connection status on the Forge Dashboard, which contains a list of all of your servers. To test your server connection status, click the icon in the "Connection" column.

0 likes
0 replies

Please or to participate in this conversation.