-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
DietPi-Software | Mono: Current version fails on ARM #2219
Comments
|
aot: https://www.mono-project.com/docs/advanced/runtime/docs/aot/ Sounds more beneficial than leaving it off? |
Interesting:
Or, must pre-compile with
Ah ok, so AOT pre-compiles libraries/programs which takes times, however, can improve load/run performance. Regardless, lets leave this as is, Mono is delicate at the best of times. |
Ok, so can't replicate on ARMv7 ASUSTB, only difference is time of tarball
Test:
Unable to replicate this issue with fresh installations.
|
Tested on RPi3 with Radarr Without
With
Software version:
Dietpi
|
Thanks for the testing + report 👍 Ok, clearly we need to roll out
|
Latest release link for Radarr/Lidarr not functional: https://api.github.com/repos/Radarr/Radarr/releases/latest
Latest release is always at the top of https://api.github.com/repos/Jackett/Jackett/releases. So we can use that for all. |
- DietPi-Software | Mono applications (Radarr/Sonarr/Lidarr/Jackett): Rolled out "-O=-aot" (ahead of time optimzation) to all applications, which resolves a known external bug with recent Mono update. Many thanks to @Generator for testing and confirming this issue: https://github.com/Fourdee/DietPi/issues/2219#issuecomment-437594645 - DietPi-Software | Radarr/Lidarr: Resolved failed installation due to api URL change: https://github.com/Fourdee/DietPi/issues/2219#issuecomment-437683004 + RC beta up
Retest:
|
Fixed in Beta: Completed. |
@Fourdee |
I'm using 6.17.2 and all applications that use Mono are broken. |
I used the workaround proposed here (and https://github.com/Fourdee/DietPi/pull/2235/files): edited all |
+ DietPi-Software | Sonarr: Migrate to v3 + DietPi-Software | Mono: Remove obsolete "-O=-aot" from Mono calls, which was a workaround that has been fixed in the meantime: #2219 + DietPi-Software | Complement and align Arr service hardenings. PrivateTmp cannot be used, as this would break DietPi-Arr_to_RAM. + DietPi-Patches | Inform user about possible Sonarr v2 => v3 upgrade + DietPi-Arr_to_RAM | Add support for Sonarr v3 and Radarr v3 + DietPi-Arr_to_RAM | On first link to RAM, create a script in the programs data dir to update the linked database backups, as v3 do not support arguments to pass to custom scripts anymore and do not allow to start scripts from within /boot. + DietPi-Software | Sonarr: Install mediainfo, which is suggested by the package but no strict dependency. Align with Radarr and Lidarr. + DietPi-Software | Radarr: Remove Radarr v2 PID file and database backups from DietPi-Arr_to_RAM, which can be left overs + DietPi-Arr_to_RAM | Use safer approach to create database backups: The -shm and -wal files do sometimes not exist, e.g. when the connection is closed temporarily. In theory the should never exist when the program is not running, but in practice it does at least with Sonarr and Lidarr, which obviously do not close connections gracefully or use certain SQLite flags to keep those files intentionally. However, havoc can happen when those files do not exist while the database is linked to RAM or stored back to disk: In the first case, if the program then crashes, up-to-date -shm + -wal files will be mixed with a backup database file, in the second case, the -shm and -wal symlinks will stay on disk, breaking program start as the RAM dir is removed. Especially in combination with the automatic backup restoring, mixing of old and new files can happen, corrupting the database. At least when linking to RAM and for backup creation, SQLite is used now to read and store the database to the backup location, which includes -shm and -wal, so that a single consistent database file is present for the program to start with. + DietPi-Patches | Remove obsolete DietPi-Arr_to_RAM backup files, as now "sqlite3 db .save" is used to store a single db file as backup
Forum ref: https://dietpi.com/phpbb/viewtopic.php?f=11&t=5206
Related Sonarr issue: Sonarr/Sonarr#2769
Related Mono issue: mono/mono#11095
Current workaround is to add
-O=-aot
option to mono call, e.g.:/usr/bin/mono -O=-aot /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/mnt/dietpi_userdata/sonarr
The text was updated successfully, but these errors were encountered: