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

Backup does not finish when scripts exits delayed #2117

Open
frosch01 opened this issue Oct 31, 2024 · 0 comments
Open

Backup does not finish when scripts exits delayed #2117

frosch01 opened this issue Oct 31, 2024 · 0 comments

Comments

@frosch01
Copy link

Description

I observe that Vorta is not finishing a backap when a Post-Backup-Script is in use that does not exit immediately but takes some processing time. The script can be really simple, e.g. using a sleep.

#!/bin/bash

echo "Now sleeping for 2 secs"
sleep 2
echo "Sleep finished"

exit 0

As the Start Backup button is pressed, a rotating progress indicator as part of the Start_Backup button is shown. It would be expected that this finished after few secs but it does not. Hitting the cancel button aborts the waiting state and the backup shows up in the Archive list, too. But it is not clear if the script ran to the end or not.

As the sleep is commented in the script, things work as expected.

I was able to reproduce the issue always.

Environment

  • OS: Ubuntu Linux 22.04 with pyenv 3.12.4
  • Vorta version: 0.9.1
  • Installed from: pip
  • Borg version: 1.4.0

Logs

2024-10-31 15:15:41,833 - vorta.borg.borg_job - INFO - Creating archive at XXXXXXXXXXX
2024-10-31 15:15:42,111 - vorta.scheduler - INFO - Setting timer for profile 1
2024-10-31 15:15:42,112 - vorta.scheduler - DEBUG - Scheduling next run for 2024-11-01 12:00:00
2024-10-31 15:15:47,567 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2024-10-31 15:15:47,567 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2024-10-31 15:21:17,450 - vorta.borg.borg_job - DEBUG - Cancel job on site default
2024-10-31 15:21:17,450 - vorta.borg.borg_job - DEBUG - Cancel job on site 1
2024-10-31 15:21:17,451 - vorta.borg.jobs_manager - INFO - Finished cancelling all jobs
@frosch01 frosch01 changed the title Backup does not finish when scripts exits with a dely Backup does not finish when scripts exits delayed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant