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
Error message via cron mail after a successful backup mail #384
Comments
I check the code and frankly have no clue what's the root cause. Unfortunately there are no debug statements in this code area. I will create dedicated code for you with debug statements. Please be patient. |
Yeah I can wait :-) Best |
I created a hotfix which includes additional debug statements. Please
|
Hi framp, I ran the bugfix version within the regular backup which went well but there was no: raspiBackup.log in the directory. Then I ran a manually backup and the log was saved in my home directory. Much obliged! |
Hm ... strange 🤔 Please execute following steps with patched raspiBackup:
|
Done and attached! There was no backup saved in the backup directory, but the backup directory changed btw the access date to the backup time. I noticed this phenomenon yesterday after running the backup manually. Due to success message there was no backup saved. After deleting the time based backup with your hotfix, the manually run backup was saved. Hope these information is helpful. I zipped the verbose log btw because of unsupported file type and I attached the last raspiBackup.log in any case. With regards [raspiBackup.log](https://github.com/framps/raspiBackup/files/7481333/raspiBackup.log |
I just wanted to check the verbose log and detected it's mostly empty. Step two has to be |
Don't mention it :-) Attached! |
Thank you very much for the verbose log. I found
and at the end of the backup run
which does not match with your following statements and proves a backup was created. But later on I found
which proves the Smart Recycle deletes the directory again. Following backups exist before smart recycle starts:
Your smart recycle options are
which means to keep last 12 monthly backups and last 4 weekly backups. You actually have 10 monthly backups and 2 weekly backups (last two). Month 7 and 8 are missing. In your previous debug log I found the two missing monthly backups. Did you manually delete them? Same for 2 missing weekly backups? As far as I can see there is a misunderstanding of the backup strategy. If you have a weekly backup of current week from Monday and create another backup on one of the following days theses backups are deleted because there exists already a backup of this week (Monday). I will update the doc accordingly to make this clear. I don't know why there are only 2 weekly backups. Actually there should be 4. Did you manually cleanup some weekly backups? You wrote
|
Hi framp, "You actually have 10 monthly backups and 2 weekly backups (last two). Month 7 and 8 are missing. In your previous debug log I found the two missing monthly backups. Did you manually delete them? Same for 2 missing weekly backups?" Yes I deleted Month 7 and 8 four days ago because the backup size was 19 GB (should be 3GB) due to a wrong setting in Syncthing. The other two missing backups could be the ones with the UUID Issue and the missing boot data a few weeks ago (which I also deleted). So this problem should be fixed by itself and deleting smart recycled backups manually is not a good idea ? ;-). Thank you so much for your effort! |
You can delete backups if you want. Smart recycle will be able to handle the deletion. But the deleted backups are gone and cannot be recreated 😄 . That's why there are 10 monthly backups and 2 weekly backups in your case. Actually we have two issues here:
As far as I see #1 is fixed and #2 is a user error 😉 I suggest we keep this issue open for another week and if the message issue is gone you close the issue. Otherwise we'll continue on the message issue. |
Good evening framp, Got it! I'll give a feedback about next weeks backup. Best wishes |
This should be fixed in current code. If you execute |
Hi framp, just did it, but still no log. Best |
Please show the messages you get when you invoke raspiBackup. |
The last run was time based with no log. The manually run gave me following messages and a mostly empty log as attached: --- RBK0009I: himberrypi: raspiBackup V0.6.6.1 (91326c6) So 14. Nov 14:28:19 CET 2021 gestartet. |
I found the root cause for the mostly empty log. Please execute |
Hi framp, nope, unfortunately a time based backup didn't create a logfile. Here's the mailout though: But after a manually detailed backup a logfile was created as attached: If it's ok I'll run a backup after a deinstallation and reinstallation of raspiBackup. But I'll wait for your response :-) With my best regards |
It's an SR edge case you face. I created a fix. Please use |
I have to thank you 👍 You reported the issue and were persistent until the issue was fixed. You tested and verified the fixes. This helps me and all raspiBackup users because the logging was rewritten in release 0.6.6.1 and I'm very dependent on the logs. Otherwise I'm unable to fix any issue 😢 |
Glad to help framp! :-) |
Hi framp,
since three weeks I am getting a cron mail with errors after the succesful backup mail with following content:
/usr/local/bin/raspiBackup.sh: Line 1716: /media/usbdrive/raspibackup/himberrypi/himberrypi-tar-backup-20211031-082301/raspiBackup.log: File or Directory not found
The same for Lines 1717, 1722 and 1725. Of course there was no backup directory saved.
Before the problems occured the raspi system ran perfect and was changed only by installing Jellyfin, but a deinstallation of Jellyin brought no improvement.
I ran then a manually backup. Therefore I am able to provide you with a logfile:
raspiBackup.log
Thank you very much for looking into the issue!!!
The text was updated successfully, but these errors were encountered: