Backup process hangs after a couple of tries due to docker fifo issue #51
Comments
Thanks for this one. delete_instuck_progress.py purpose if to delete |
Title has been edited from "delete_instuck_progress.py progress just removes the in-progress file, and does not kill the process itself." to "Backup process hangs after a couple of tries due to docker fifo buffer issue". Here in Dockerfilebus, We use this fifo to transit log messages out of the container there are multiple issues with the similar symptoms of using fifo: |
|
issue disappeared
|
It would be also possible to configure cron for more frequent backups (every other hour or even every one hour) for both instances. |
yes, lets do this in another issue. |
issue still disappeared, closing this. |
When Backup process starts, It creates a file named in-progress (with the assumption of preventing other backup processes to start), but when it is not responsive anymore (stucked for some reason), the backup does not finish, the process is still in the process list, and the in-progress is still there till the next day, which /delete-instuck-backups/delete_instuck_progress.py will take care of it and delete the in-progress file (only after one day).
The issue is that it will not take care of the running (stucked) process.
On the other hand, /start_backup.sh only checks for the pid existence in process list
pidof -o $$ -x "$0" >/dev/null 2>&1 && exit 1
in this case no other backup will be executed, till someone, manually kills the old stucked process or restart the docker machine.
The text was updated successfully, but these errors were encountered: