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

mstnorris's avatar

Stuck on Deploying

I pushed minimal changes to my GitHub repo and I have push to deploy turned on using Forge. It is stuck on "Deploying" and has been for about 20 minutes.

Any suggestions?

Update

Over an hour later an it is still "Deploying"

0 likes
8 replies
mstnorris's avatar
From github.com:username/project_name
 * branch            master     -> FETCH_HEAD
   b73a20b..429ecdd  master     -> origin/master
Updating b73a20b..429ecdd
Fast-forward
 composer.json |   2 +-
 composer.lock | 245 +++++++++++++++++++++++++++++-----------------------------
 2 files changed, 124 insertions(+), 123 deletions(-)
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Updating symfony/var-dumper (2.7.x-dev 4b0c3c2 => 2.6.x-dev c3d5a36)
    Checking out c3d5a36c3e3298bd8b070488fba5537174647353

  - Updating symfony/translation (2.7.x-dev b956e91 => 2.6.x-dev f289cdf)
    Checking out f289cdf8179d32058c1e1cbac723106a5ff6fa39

  - Updating symfony/security-core (2.7.x-dev abe4db6 => 2.6.x-dev 4603bcc)
    Checking out 4603bcc66e20e23f018c67f7f9f3f8146a100c11

  - Updating symfony/routing (2.7.x-dev 0c68965 => 2.6.x-dev bda1c3c)
    Checking out bda1c3c67f2a33bbeabb1d321feaf626a0ca5698

  - Updating symfony/process (2.7.x-dev f3ab493 => 2.6.x-dev ecfc23e)
    Checking out ecfc23e89d9967999fa5f60a1e9af7384396e9ae

  - Updating symfony/http-foundation (2.7.x-dev ee7cee8 => 2.6.x-dev 8fa63d6)
    Checking out 8fa63d614d56ccfe033e30411d90913cfc483ff6

  - Updating symfony/debug (2.7.x-dev 39a94be => 2.6.x-dev 150c800)
    Checking out 150c80059c3ccf68f96a4fceb513eb6b41f23300

  - Updating symfony/http-kernel (2.7.x-dev 37c51b8 => 2.6.x-dev 0bd05cc)
    Checking out 0bd05cc9b935174724c1d9e10ea1cc4541ce01b0

  - Updating symfony/finder (2.7.x-dev 0c737de => 2.6.x-dev 1651333)
    Checking out 16513333bca64186c01609961a2bb1b95b5e1355

  - Updating symfony/console (2.7.x-dev 9f041fb => 2.6.x-dev e44154b)
    Checking out e44154bfe3e41e8267d7a3794cd9da9a51cfac34

  - Updating laravel/framework (dev-master b0ab0a2 => 5.0.x-dev bb313e0)
    Checking out bb313e0ae07e23bf6a677015942f6584963b9014

Generating autoload files
PHP Deprecated:  The Symfony\Component\HttpKernel\Debug\ErrorHandler class is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Debug\ErrorHandler class instead. in /home/forge/project_name.com/storage/framework/compiled.php on line 5998
PHP Stack trace:
PHP   1. {main}() /home/forge/project_name.com/artisan:0
PHP   2. require() /home/forge/project_name.com/artisan:16
PHP   3. require() /home/forge/project_name.com/bootstrap/autoload.php:34
PHP   4. trigger_error() /home/forge/project_name.com/storage/framework/compiled.php:5998

Deprecated: The Symfony\Component\HttpKernel\Debug\ErrorHandler class is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Debug\ErrorHandler class instead. in /home/forge/project_name.com/storage/framework/compiled.php on line 5998

Call Stack:
    0.0002     220872   1. {main}() /home/forge/project_name.com/artisan:0
    0.0003     223512   2. require('/home/forge/project_name.com/bootstrap/autoload.php') /home/forge/project_name.com/artisan:16
    0.0542    7016416   3. require('/home/forge/project_name.com/storage/framework/compiled.php') /home/forge/project_name.com/bootstrap/autoload.php:34
    0.0547    7172704   4. trigger_error() /home/forge/project_name.com/storage/framework/compiled.php:5998

Generating optimized class loader
Compiling common classes
Compiling views
exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)' in /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47
Stack trace:
#0 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(47): PDO->__construct('mysql:host=loca...', 'forge', '', Array)
#1 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(20): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#2 /home/forge/project_name.com/storage/framework/compiled.php(10570): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#3 /home/forge/project_name.com/storage/framework/compiled.php(10566): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array)
#4 /home/forge/project_name.com/storage/framework/compiled.php(10484): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql')
#5 /home/forge/project_name.com/storage/framework/compiled.php(10439): Illuminate\Database\DatabaseManager->makeConnection('mysql')
#6 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(167): Illuminate\Database\DatabaseManager->connection(NULL)
#7 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(135): Illuminate\Database\Migrations\DatabaseMigrationRepository->getConnection()
#8 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(371): Illuminate\Database\Migrations\DatabaseMigrationRepository->repositoryExists()
#9 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(101): Illuminate\Database\Migrations\Migrator->repositoryExists()
#10 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(54): Illuminate\Database\Console\Migrations\MigrateCommand->prepareDatabase()
#11 [internal function]: Illuminate\Database\Console\Migrations\MigrateCommand->fire()
#12 /home/forge/project_name.com/storage/framework/compiled.php(922): call_user_func_array(Array, Array)
#13 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array)
#14 /home/forge/project_name.com/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(253): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /home/forge/project_name.com/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /home/forge/project_name.com/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Database\Console\Migrations\MigrateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /home/forge/project_name.com/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /home/forge/project_name.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /home/forge/project_name.com/artisan(34): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 {main}
mstnorris's avatar

I did, I have since deleted the site (many times) and pulled in via GitHub through SSH and now Deploying works but that is definitely a workaround.

mandofever's avatar

I am having the same issue. Stuck on deploying....... recent deployment logs only shows "No deployment log is available." Could this be because i disabled ssh on port 22 in ufw in favor of an alternate port?

mstnorris's avatar

@mandofever I don't know, I haven't changed anything like that. As a workaround, what I did was to delete the site in Forge, and set it up again from scratch. If I was to try to install directly from GitHub (in Forge) this wouldn't work as mentioned above. So, I manually git clone https://github.com/mstnorris/my_project.git my_domain_name.com so that it tricks Forge into thinking that it is a site. From then on out it works as it should.

I hope this is fixed soon.

mstnorris's avatar
mstnorris
OP
Best Answer
Level 55

When deploying to Laravel Forge for the first time, the directory that you've just set up when you create the site is removed so that your GitHub repository can be cloned into a new directory with the same name that you just created (hence the reason for it having to be deleted).

The reason why it failed was to do with (at least in my case) the fact that I didn't have Laravel Forge's public SSH key installed on my GitHub account. I didn't think this was necessary as I had installed the Laravel Forge Application. If anyone can advise me otherwise that would be great.

theUnforgiven's avatar

Using doing

On your Site Details > Apps tab does the trick, then just re-deploy.

Please or to participate in this conversation.