Open spid3r opened 1 year ago
So in general raspiBackup is now a lot more strict when it comes to run on specific OS versions.
This option was added because I got mad because people which don't run Raspberry HW and RaspbianOS created issues in github even raspiBackup is supported only for RaspberryHW and RaspbianOS. See here for the details.
What i don't understand is why this issue has not been reported before by anyone else since v0.6.7 has been released May 11, 2022.
Looks like you are the first one who uses Loxberry on non Raspberry HW or on another OS than RaspbianOS :wink:
Because I know raspiBackup successfully runs also on other HW and SW I added an error message which mentions this option and allows to disable the check. But then it's on their own risk.
- Shouldn't any other OS than Raspberry PI OS be supported also by loxberry backup? I think that would be a bad decision.
loxberryBackup uses raspiBackup and thus fails if raspiBackup fails. As I wrote above other OS can run raspiBackup. You're the first one who faces this issue and it seems to me Loxberry is mostly used on Raspberries with Raspbian. So it's up to Christian whether he want's to add a checkbox or just document your workaround. I think it's quite easy to add `--unsupportedEnvironment' in the Perl script and no checkbox is required.
Hey Framps,
thanks for your fast feedback! Also big thanks to you for the raspiBackup tool! Jup I agree to everything you say and if i was the maintainer i would also restrict the supported HW / OS to not get flodded with these millions of possible combinations😉
I think might be useful to add an option to the loxberry plugin or just add the parameter statically.
I thought my HW/OS combination is not that exotic but might be the case 😆
ARM / Raspberry Pi 3 Model B Rev 1.2 (aarch64)
DietPi v8.15.2
Maybe more people will get the problem in the future as well since with Loxberry 3 the OS is based on "Diet Pi": https://wiki.loxberry.de/installation_von_loxberry/die_installation_von_loxberry/start#image_vorbereitung
Forgot to attach the healthcheck file that is now added here. healthcheck.txt
or just add the parameter statically.
I don't like this approach because then the user of LoxberryBackup will not get notified that the backup may fail or even create inconsistent backups because he doesn't run raspiBackup on a supported - and more important - tested environment :cry:
Maybe more people will get the problem in the future as well since with Loxberry 3 the OS is based on "Diet Pi":
That's new for me. Then it makes sense to add a checkbox.
agree again 😉 adding a parameter (not set as default) would be the best option inluding mentioning the background in the docu. So people are aware that they do the backup on non tested/supported HW/OS combination if they opt-in for it. @christianTF what do you think?
@framps just noticed that you also are part of the loxforum 🤣 I guess you run an older version of Loxberry then
No. I don't use Loxberry. But I registered in the forum to be able to support LoxberryBackup/raspiBackup 😃
Hi Christian,
first of all thank you very much for this amazing plugin! Insane what the lox community achieves with loxberry 😎
Problem
Now to my problem. I do get the following error in the log when i try running a backup:
I am running a Raspberry pi 3 B (see also attached healthcheck) with DietPi v8.15.2.
Cause
After doing some research arround the --unsupportedEnvironment option mentioned in the log seems like raspiBackup introduced this new parameter with v0.6.7 (https://github.com/framps/raspiBackup/releases/tag/v0.6.7 https://github.com/framps/raspiBackup/issues/435).
So in general raspiBackup is now a lot more strict when it comes to run on specific OS versions. What i don't understand is why this issue has not been reported before by anyone else since v0.6.7 has been released May 11, 2022. Anyways i managed to fix it locally on my loxberry:
My Fix
To bypass the issue i changed the line calling raspiBackup.sh in runbackup.pl and added the --unsupportedEnvironment parameter. https://github.com/christianTF/LoxBerry-Plugin-LoxberryBackup/blob/333fd3182d54d54ac55ff78e7faf0bc8614da32a/bin/runbackup.pl#L114
and i can confirm that after this change the backup can run successfully:
The backup also seems to have been created successfully on the usb stick
Next Steps
So the question now arises how we can enhance loxberry backup to support OS <> Raspberry PI OS.
--unsupportedEnvironment
statically in the raspiBackup.sh call how i did it? I can also create a fork and PR if you like.--unsupportedEnvironment
parameter is added.Thanks in advance and have a great day!
greetings from Ludwigshafen :-)
Kind regards Thorsten