Error description
Attempting to upgrade apps from within the YunoHost admin panel leads to an error message and the apps fail to upgrade. The error message reads:
Could not complete the operation ‘Upgrade the ‘navidrome’ app’. Please provide the full log of this operation by clicking here to get help
Further details within the YunoHost error log viewer read:
Error An error occurred inside the app upgrade script
Sample logs: gitea, nextcloud, navidrome, lutim
My YunoHost server
- Hardware: Old laptop or computer
- YunoHost version: 4.0.4
- I have access to my server: Through SSH (and via direct access if needed)
- Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?: yes
- If yes, please explain: behind a Raspberry Pi reverse proxy but upgrading has previously worked while behind this proxy and I don’t think I’ve made any such changes
Steps to reproduce
- Log in to the YunoHost admin panel
- Go to System update → applications and click the “update” button next to an app. Confirm your choice.
Expected behavior
The app automatically updates.
Logs
Sample logs: gitea, nextcloud, navidrome, lutim
Extra information
The logs seem to indicate that the automatic pre-upgrade backups are not completing properly.
When I go to the “Backup” menu in the YunoHost admin panel and select “Local archives”, I get an additional internal error, which I am including here because backups seem to be the problem with the app updates:
Action
GET /backup/archives {"with_info":""}
Traceback
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 489, in process ret = self.actionsmap.process(arguments, timeout=30, route=_route) File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 588, in process return func(**arguments) File "/usr/lib/moulinette/yunohost/backup.py", line 2287, in backup_list archives = sorted(glob("%s/*.tar.gz" % ARCHIVES_PATH), key=lambda x: os.path.getctime(x)) File "/usr/lib/moulinette/yunohost/backup.py", line 2287, in archives = sorted(glob("%s/*.tar.gz" % ARCHIVES_PATH), key=lambda x: os.path.getctime(x)) File "/usr/lib/python2.7/genericpath.py", line 72, in getctime return os.stat(filename).st_ctime OSError: [Errno 2] No such file or directory: '/home/yunohost.backup/archives/20200816-211508.tar.gz'