Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Main Coolify Service failing to start after update #4540

Closed
JuanxCursed opened this issue Dec 11, 2024 · 1 comment
Closed

[Bug]: Main Coolify Service failing to start after update #4540

JuanxCursed opened this issue Dec 11, 2024 · 1 comment

Comments

@JuanxCursed
Copy link
Contributor

JuanxCursed commented Dec 11, 2024

Error Message and Logs

--------------------------------------------------------------------
____                             ____  _     _        _   _
/ ___|  ___ _ ____   _____ _ __  / ___|(_) __| | ___  | | | |_ __
\___ \ / _ \  __\ \ / / _ \  __| \___ \| |/ _` |/ _ \ | | | |  _ \
___) |  __/ |   \ V /  __/ |     ___) | | (_| |  __/ | |_| | |_) |
|____/ \___|_|    \_/ \___|_|    |____/|_|\__,_|\___|  \___/| .__/
                                                            |_|

Brought to you by serversideup.net
--------------------------------------------------------------------

To support Server Side Up projects visit:
https://serversideup.net/sponsor
-------------------------------------
GID/UID
-------------------------------------

User uid:    9999
User gid:    9999
-------------------------------------

🏃‍♂️ Checking for Laravel automations...
🔐 Linking the storage...
🔓 SSL_MODE has been DISABLED, setting the web server to work in HTTP only...

   ERROR  The [public/storage] link already exists.  

[11-Dec-2024 02:01:54] NOTICE: fpm is running, pid 100
[11-Dec-2024 02:01:54] NOTICE: ready to handle connections
[11-Dec-2024 02:01:54] NOTICE: systemd monitor interval set to 10000ms
NOTICE: PHP message: PHP Warning:  Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0

In PhpRedisConnector.php line 159:
                                                                               
  php_network_getaddresses: getaddrinfo for coolify-redis failed: Temporary f  
  ailure in name resolution                                                    
                                                                               

In PhpRedisConnector.php line 159:
                                                                               
  Redis::connect(): php_network_getaddresses: getaddrinfo for coolify-redis f  
  ailed: Temporary failure in name resolution                                  
                                                                               

s6-rc: warning: unable to start service db-migration: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
prog: fatal: stopping the container.
[11-Dec-2024 02:01:56] NOTICE: Terminating ...
[11-Dec-2024 02:01:56] NOTICE: exiting, bye-bye!

Steps to Reproduce

  1. Upgrade from beta 362 to 376

Example Repository URL

No response

Coolify Version

v4.0.0-beta.376

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04 (Hostinger with Coolify template)

Additional Information

No response

@JuanxCursed JuanxCursed added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Dec 11, 2024
@JuanxCursed
Copy link
Contributor Author

I was able to fix it by starting manually a few dependent container using this commands:

docker start coolify-db
docker start coolify-realtime
docker start coolify-redis

After a few seconds the main container coolify started run some migrations, take a look on the logs:

--------------------------------------------------------------------
____                             ____  _     _        _   _
/ ___|  ___ _ ____   _____ _ __  / ___|(_) __| | ___  | | | |_ __
\___ \ / _ \  __\ \ / / _ \  __| \___ \| |/ _` |/ _ \ | | | |  _ \
___) |  __/ |   \ V /  __/ |     ___) | | (_| |  __/ | |_| | |_) |
|____/ \___|_|    \_/ \___|_|    |____/|_|\__,_|\___|  \___/| .__/
                                                            |_|

Brought to you by serversideup.net
--------------------------------------------------------------------

To support Server Side Up projects visit:
https://serversideup.net/sponsor
-------------------------------------
GID/UID
-------------------------------------

User uid:    9999
User gid:    9999
-------------------------------------

🏃‍♂️ Checking for Laravel automations...
🔐 Linking the storage...
🔓 SSL_MODE has been DISABLED, setting the web server to work in HTTP only...

   INFO  Nothing to migrate.  


   ERROR  The [public/storage] link already exists.  

[11-Dec-2024 03:23:05] NOTICE: fpm is running, pid 101
[11-Dec-2024 03:23:05] NOTICE: ready to handle connections
[11-Dec-2024 03:23:05] NOTICE: systemd monitor interval set to 10000ms
NOTICE: PHP message: PHP Warning:  Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0

   INFO  Seeding database.  

[x]: Running in self-hosted mode.
  Database\Seeders\OauthSettingSeeder ................................ RUNNING  
  Database\Seeders\OauthSettingSeeder ............................. 10 ms DONE  

  Database\Seeders\PopulateSshKeysDirectorySeeder .................... RUNNING  
  Database\Seeders\PopulateSshKeysDirectorySeeder ................. 33 ms DONE  

  Database\Seeders\SentinelSeeder .................................... RUNNING  
  Database\Seeders\SentinelSeeder .................................. 3 ms DONE  

[1]: Optimizing Laravel (caching config, routes, views).
[x]: Horizon is enabled. Starting.

   INFO  Horizon started successfully.  

NOTICE: PHP message: PHP Warning:  Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
[2]: Sending live signal!
[x]: Scheduler is enabled. Starting.
Cleaning up unused networks from coolify proxy
[3]: Cleanup Redis keys.
[4]: Cleanup stucked resources.
  2024-12-11 03:23:14 App\Jobs\DockerCleanupJob ...................... RUNNING
  2024-12-11 03:23:14 App\Jobs\DockerCleanupJob ................. 87.14ms FAIL
  2024-12-11 03:23:14 App\Jobs\CoolifyTask ........................... RUNNING
  2024-12-11 03:23:14 App\Jobs\CoolifyTask ..................... 488.63ms DONE
  2024-12-11 03:23:14 App\Jobs\CheckHelperImageJob ................... RUNNING
  2024-12-11 03:23:14 App\Jobs\CheckHelperImageJob ............. 239.56ms DONE
  2024-12-11 03:23:14 App\Jobs\CleanupHelperContainersJob ............ RUNNING
  2024-12-11 03:23:16 App\Jobs\CleanupHelperContainersJob ............ 1s DONE
  2024-12-11 03:24:00 Running [App\Jobs\CleanupInstanceStuffsJob]  11.00ms DONE
  2024-12-11 03:24:00 Running [App\Jobs\ServerCheckJob] .......... 3.24ms DONE
  2024-12-11 03:24:00 Running ['artisan' uploads:clear] ........ 267.74ms DONE
  ⇂ '/usr/bin/php8.2' 'artisan' uploads:clear > '/dev/null' 2>&1  

  2024-12-11 03:24:01 App\Jobs\CleanupInstanceStuffsJob .............. RUNNING
  2024-12-11 03:24:01 App\Jobs\CleanupInstanceStuffsJob ......... 37.28ms DONE
  2024-12-11 03:24:01 App\Jobs\ServerCheckJob ........................ RUNNING
  2024-12-11 03:24:02 App\Jobs\ServerCheckJob ........................ 1s DONE
  2024-12-11 03:25:00 Running ['artisan' horizon:snapshot] ..... 375.35ms DONE
  ⇂ '/usr/bin/php8.2' 'artisan' horizon:snapshot > '/dev/null' 2>&1  
  2024-12-11 03:25:00 Running [App\Jobs\ServerCheckJob] .......... 9.62ms DONE

  2024-12-11 03:25:01 App\Jobs\ServerCheckJob ........................ RUNNING
  2024-12-11 03:25:03 App\Jobs\ServerCheckJob ........................ 1s DONE
  2024-12-11 03:26:00 Running [App\Jobs\CleanupInstanceStuffsJob]  7.29ms DONE
  2024-12-11 03:26:00 Running [App\Jobs\ServerCheckJob] .......... 2.38ms DONE
  2024-12-11 03:26:00 Running ['artisan' uploads:clear] ........ 274.76ms DONE
  ⇂ '/usr/bin/php8.2' 'artisan' uploads:clear > '/dev/null' 2>&1  

  2024-12-11 03:26:01 App\Jobs\CleanupInstanceStuffsJob .............. RUNNING
  2024-12-11 03:26:01 App\Jobs\CleanupInstanceStuffsJob ......... 32.96ms DONE
  2024-12-11 03:26:01 App\Jobs\ServerCheckJob ........................ RUNNING
  2024-12-11 03:26:03 App\Jobs\ServerCheckJob ........................ 1s DONE
  2024-12-11 03:27:00 Running [App\Jobs\ServerCheckJob] .......... 9.35ms DONE

  2024-12-11 03:27:00 App\Jobs\ServerCheckJob ........................ RUNNING
  2024-12-11 03:27:02 App\Jobs\ServerCheckJob ........................ 1s DONE

@github-actions github-actions bot removed 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Dec 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant