Invoice Ninja in docker shuts down after few hours

New install and latest release. Hers what I see in the log when IN container shuts down.

[2021-07-07T00:40:00+00:00] Execution #435 output:

[2021-07-07T00:40:00+00:00] Running scheduled command: App\Jobs\Util\SchedulerCheck

[2021-07-07 00:40:01][750] Processing: App\Jobs\Util\SchedulerCheck

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 413696 bytes) in /var/www/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 54

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/app/vendor/symfony/string/Resources/data/wcswidth_table_zero.php on line 12

2021-07-07 00:40:02,137 INFO exited: queue-worker_00 (exit status 255; not expected)

2021-07-07 00:40:03,143 INFO spawned: ‘queue-worker_00’ with pid 3160

2021-07-07 00:40:03,144 WARN received SIGQUIT indicating exit request

2021-07-07 00:40:03,145 INFO waiting for shutdown, php-fpm, queue-worker_00, queue-worker_01, scheduler to die

Processing Event: ver:3.0 server:supervisor serial:0 pool:shutdown poolserial:0 eventname:PROCESS_STATE_EXITED len:87

2021-07-07 00:40:03,148 INFO stopped: scheduler (terminated by SIGTERM)

2021-07-07 00:40:03,157 INFO stopped: queue-worker_01 (terminated by SIGTERM)

2021-07-07 00:40:06,162 INFO waiting for shutdown, php-fpm, queue-worker_00 to die

2021-07-07 00:40:09,166 INFO waiting for shutdown, php-fpm, queue-worker_00 to die

2021-07-07 00:40:12,171 INFO waiting for shutdown, php-fpm, queue-worker_00 to die

2021-07-07 00:40:13,173 WARN killing ‘queue-worker_00’ (3160) with SIGKILL

2021-07-07 00:40:13,178 INFO stopped: queue-worker_00 (terminated by SIGKILL)

[07-Jul-2021 00:40:13] NOTICE: Terminating …

[07-Jul-2021 00:40:13] NOTICE: exiting, bye-bye!

2021-07-07 00:40:13,186 INFO stopped: php-fpm (exit status 0)

2021-07-07 00:40:13,187 INFO stopped: shutdown (terminated by SIGTERM)

@david any thoughts on this?

There is a fix for this, it will be available in the next release.

Thanks for the info and for the good news.

Sorry to resurrection an old thread…but I’m getting just about identical errors in my logs. InvoiceNinja is randomly shutting down.

What is the fix?

2024-07-31 09:25:29,097 INFO exited: queue-worker_01 (exit status 0; expected)
2024-07-31 09:25:29,102 INFO spawned: 'queue-worker_01' with pid 147
2024-07-31 09:25:29,102 INFO exited: queue-worker_00 (exit status 0; expected)
2024-07-31 09:25:29,104 INFO spawned: 'queue-worker_00' with pid 148
2024-07-31 09:25:29,104 WARN received SIGQUIT indicating exit request
2024-07-31 09:25:29,104 INFO waiting for shutdown, nginx_00, php-fpm, queue-worker_00, queue-worker_01, scheduler to die
2024-07-31 09:25:29,113 WARN stopped: scheduler (terminated by SIGTERM)
2024-07-31 09:25:29,114 WARN stopped: queue-worker_01 (terminated by SIGTERM)
2024-07-31 09:25:29,114 WARN stopped: queue-worker_00 (terminated by SIGTERM)
2024-07-31 09:25:29,122 INFO stopped: php-fpm (exit status 0)
2024-07-31 09:25:29,138 INFO stopped: nginx_00 (exit status 0)
2024-07-31 09:25:29,138 WARN stopped: shutdown (terminated by SIGTERM)

I’m seeing exactly the same set of logs on my install. Driving me insane having to restart it every day!

Mine is not every day, but still happens occasionally.

Still happening with my installation too. Getting a shutdown request from Supervisor…

Had a look in the config and I’m unsure what process is stopping but then SIGQUIT is shutting everything down with the following. Commenting it out to debug for now to see if I can find the cause.

[eventlistener:shutdown]
command=shutdown.sh
events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL