Hello !
I am with YunoHost 4.2.8.3 (stable).
I tried to update from Nextcloud 22.1.1~ynh1 to 22.2.0~ynh1 and it failed (log at https://paste.yunohost.org/raw/lenafoyuhu)
I see that this is linked to error in the Nextcloud backup process previous to the upgrade as I see Error: Could not open settings file, reason: Expecting value: line 1 column 1 (char 0)
Indeed I have also an error if I want to do a simple backup with sudo BACKUP_CORE_ONLY=1 yunohost backup create
To be noticed during this full backup process: Warning: /usr/share/yunohost/helpers.d/php: line 3: YNH_DEFAULT_PHP_VERSION: readonly variable
Do you know how I can investigate and make backup again with my Yunohost server?
For your information, I had an issue with normal system upgrade because of sudden full root partition.
I deleted some “fat” logs (Nextcloud and Synapse mainly), and gained around 4-5 Gb and now my root partition is fine again (yunohost system diagnosis confirms everything is fine).
In Kimsufi debian install, root partition is not that big (18Gb) so I have to be careful.
After cleaning system log, system upgrade functions normally again.
But then I had Nextcloud that remained in maintenance mode after a failed upgrade (see [Nextcloud] A cloud for personal or group use - #419 by croulibri).
I solved that issue of maintenance mode (Nextcloud is online again), but upgrade of Nextcloud is still not possible because of failed backup process.
Could it be that my now solved situation of full root partition (only root was full, /home partition have more than 200Gb free) is the root of all these problems?
Yes indeed, most likely it tried to write/update /etc/yunohost/settings.json, but because the partition was full, it couldn’t write the file, hence the empty file, which makes the code explode #ThugLife
Anyway, running echo '{}' > /etc/yunohost/settings.json should fix that issue (but in the process you lost any possible custom global setting you may have set, probably not a huge issue
Yes ! Thanks thanks thanks
Once again, you made my day, @Aleks
But for my information, what kind of custom global settings I may have lost?
I have mostly “tuned” my Yunohost server through webadmin and only the apps I installed have modified the system.
Global settings include stuff like mail relay configuration, but are only available through the command line (for now) - so most likely you didn’t tweak any of those
Great, so very likely I haven’t lost anything.
I’ll have to monitor more closely the root partition before laughing a big upgrade
I had already once this issue (logs that full my root partition) with my debian desktop, but this was some years ago.
Hopefully I am safe for some years from now