backup mail report says INTERRUPTED but it's not ?
-
some timeout or race condition between the end of the job and the mail generation ?
perhaps putting 10sec delay to send mail ?
-
seeing more and more of this INTERRUPTED issue in mail reports.. anyone has this also ?
-
@Pilow the run logs ( in backups ) are marked as success ?
-
@florent yes they are, I screenshoted earlier in the thread
-
Hi @pilow,
Currently, I don't know what would cause this or why this would happen more frequently.
Could you test on your own to add some delay before sending the report, to see if it's indeed a race condition?
To do that, you just need to edit the file
packages/xo-server-backup-reports/dist/index.jsby adding these two lines:const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); await delay(10000);at the beginning of the
_reportfunction, like this:async _report(runJobId, { type } = {}, force) { const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); await delay(10000); if (type === 'call') { return; }then just restart xo-server.
-
@Bastien-Nollet said in backup mail report says INTERRUPTED but it's not ?:
file packages/xo-server-backup-reports/dist/index.js by a
modification done, will give feedback
-
here is a first feedback of this annoying INTERRUPTED random issue (╯‵□′)╯︵┻━┻
Started 12/10/2025 to appear (filtered view of mail inbox on word INTERRUPTED)

All these backups are indeed SUCCESS in XOA, are present on the remotes, are restorable.
We have 14 backup reports each day. As you can see, some days no interrupted, some days multiple ones.
Backups are spanned from noon to late at night.Today (after applying your patch code) was either a good day, or patch succedeed ¯\_(ツ)_/¯

Will keep looking for rogue INTERRUPTIONs
-
@Pilow Thanks, it's promising but we'll wait for more runs on your side
If it's that, at least it's not a biggie in the end! -
I agree, let's wait for more runs.
If it's indeed a race condition, we'll still have to figure out a better way to settle this than just adding delay
-
@Bastien-Nollet new day without false INTERRUPTED

the scrutiny of backup email reports made me find a new bug in backups (not reports this time)
i'll create a new topic about the dreaded BACKUP FELL BACK TO A FULL --> can provoke it on purpose ! -
Thanks @Pilow for the tests.
We'll have to investigate this to fix it more properly than adding a ugly delay.
-
@Bastien-Nollet another good day
I think i'll swap to feedback if problem is back than problem is not here anymore


on your side to find something sexier than delay ^^' but it seems to be a race condition