Hier j’ai enfin pris le temps de mettre à jour mon serveur à Stretch+Yunohost 3.2 (j’étais sur Jessie+2.7). Tout s’est bien passé (bravo à tous les gens qui ont bossé sur la migration !).
Suite à cela j’avais 2 apps pouvant être mises à jour dont Piwigo, que je viens de tenter à l’instant. La mise à jour échoue car la sauvegarde pré-mise à jour échoue, apparement parce qu’il manque un fichier de config pour fail2ban. Voir ci-dessous l’erreur reportée.
Une idée de comment résoudre ça ? Merci !
Yesterday I finally took the time to upgrade my server to Stretch+Yunohost 3.2 (it was on Jessie+2.7). Everything went fine (thanks to everyone who worked on the migration!).
Following the upgrade, there were 2 apps that could be upgraded, including Piwigo. I just attempted the upgrade, but it fails because the pre-upgrade backup fails due to a missing config file for fail2ban. See below the reported error.
Anyone has a clue on how to solve this? Thanks!
2018-09-18 21:20:36,964: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps piwigo --name piwigo-pre-upgrade2
2018-09-18 21:20:43,081: WARNING - Data dir won’t be saved, because backup_core_only is set.
2018-09-18 21:20:44,287: WARNING - Source path ‘/etc/fail2ban/jail.d/piwigo.conf’ does not exist
2018-09-18 21:20:44,289: WARNING - !!
2018-09-18 21:20:44,290: WARNING - piwigo’s script has encountered an error. Its execution was cancelled.
2018-09-18 21:20:44,292: WARNING - !!
2018-09-18 21:20:44,294: WARNING -
2018-09-18 21:20:44,496: WARNING - Unable to back up the app ‘piwigo’
2018-09-18 21:20:44,497: WARNING - There is nothing to save
2018-09-18 21:20:44,658: ERROR - Unable to upgrade piwigo
I first tried the proper but riskier solution (since I had a backup already), but it was a bad idea! Even when disabling pre-upgrade backup, the upgrade failed because of the missing fail2ban files (if I understood correctly the logs). Restoring the backup also failed, because php-fpm was down (because of the failed upgrade), and so all that was left was a half-installed app…
But I was able to clean up things and restore my back-up, create manually the fail2ban files and finally upgrade the app. Phew!
I had the same problem, but none of the Q&D solution or the proper&riskier one worked, and piwigo was uninstalled. I reinstalled it. The data (photos) are expectedly still here (in /home/yunohost.app/piwigo), I also checked that the data and _upload directories in /var/www/piwigo are correctly symlinked to their counterparts in /home/yunohost.app/piwigo, but piwigo still does not show anything…
Is there any way to make piwigo aware again of the data in /home/yunohost.app/piwigo? I tried all the maintenance operations, unsuccessfully…
Thanks a log! Actually, I have used a more radical approach: I uninstalled Piwigo, deleted /home/yunohost.app/piwigo, reinstalled Piwigo, and uploaded photos again…
By the way, I did not know that the backup could focus on a selected app: thx!