mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework

Home Page:https://mojolicious.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zero downtime software upgrade failed. How to fix it?

darrenli912 opened this issue · comments

  • Mojolicious version: 9.32
  • Perl version: v5.22.1
  • Operating system: Ubuntu 16.04.1 LTS

Steps to reproduce the behavior

Recently I updated my mojolicious to 9.32.
Now I can't restart my app.

The relative logs:
hypnotoad ./my_app
[2023-06-12 03:39:17.43177] [10284] [info] Starting zero downtime software upgrade (180 seconds)
[2023-06-12 03:39:20.91999] [10284] [error] Zero downtime software upgrade failed

The app can be restarted manually by stopping and starting it.
hypnotoad -s ./my_app
[2023-06-12 03:40:08.17806] [10284] [info] Stopping worker 10285 gracefully (120 seconds)
[2023-06-12 03:40:08.17823] [10284] [info] Stopping worker 10286 gracefully (120 seconds)
[2023-06-12 03:40:08.17829] [10284] [info] Stopping worker 10287 gracefully (120 seconds)
[2023-06-12 03:40:08.17836] [10284] [info] Stopping worker 10288 gracefully (120 seconds)
[2023-06-12 03:40:09.32501] [10284] [info] Worker 10287 stopped
[2023-06-12 03:40:09.80001] [10284] [info] Worker 10288 stopped
[2023-06-12 03:40:10.08713] [10284] [info] Worker 10285 stopped
[2023-06-12 03:40:10.09962] [10284] [info] Worker 10286 stopped

hypnotoad ./my_app
[2023-06-12 03:40:17.51256] [31031] [info] Listening at "http://[::]:8484"
[2023-06-12 03:40:17.59589] [31041] [info] Manager 31041 started
[2023-06-12 03:40:17.76457] [31042] [info] Worker 31042 started
[2023-06-12 03:40:17.91652] [31043] [info] Worker 31043 started
[2023-06-12 03:40:18.00050] [31044] [info] Worker 31044 started

Expected behavior

Upgrade successfully.

Actual behavior

Upgrade failed.

It works after I reboot my server.