YunoHost-Apps / fallback_ynh

Fallback package for YunoHost
GNU General Public License v3.0
15 stars 1 forks source link

can't make any app upgrade after removing fallback app #30

Closed isAAAc closed 2 years ago

isAAAc commented 2 years ago

Hello @maniackcrudelis o/

i just create a topic in the forum, i can't upgrade any app after removing fallback from the (master) server, https://forum.yunohost.org/t/cant-upgrade-apps-anymore/19728

your help should be helpfull, i think fallback isn't appropriate anymore with the "new" ynh version, something is wrong (but i don't find what/where/howto fix)

thx for your help ;)

i duplicate it here:

My YunoHost server

Hardware: VPS bought online (proxmox + vm ynh_server) YunoHost version:

root@krashboyz:~# yunohost -v
yunohost: 
  repo: stable
  version: 4.3.6.3
yunohost-admin: 
  repo: testing
  version: 4.3.4.1
moulinette: 
  repo: stable
  version: 4.3.3.1
ssowat: 
  repo: stable
  version: 4.3.3.1

I have access to my server : Through SSH : YES Through the webadmin : YES

Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : If yes, please explain: added the fallback app, then removed it few days after; i tried to reinstall fallback after the bug incomming, but it doesn't fix it. (it is not really a tweak :/ )

Description of my issue

i can't upgrade my apps anymore via cli and webadmin. command result error log
yunohost tools update -> works fine :white_check_mark:
yunohost tools upgrade system -> works fine :white_check_mark:
yunohost tools upgrade apps -> is broken :x: -> error log: https://paste.yunohost.org/raw/oterigavul
yunohost app upgrade wikijs or any other installed app -> is broken :x: -> error log: https://paste.yunohost.org/raw/ujecuwobuv

i searched a bit everywhere, tried to force to upgrade moulinette without any better result, i'm a bit locked and need your kindless help.

i don't see what i could done wrong, my server is old old old, perhaps some old stuff somewhere ?

tell me if you need any more details.

thx for your help (i understand french and english)

isAAAc

maniackcrudelis commented 2 years ago

Hello @isAAAc

At first glance the error is there:

2022-05-04 19:10:38,674: WARNING - FileNotFoundError: [Errno 2] No such file or directory: '/home/yunohost.app/fallback/fallback_backup/temp_fallback_backup/peertube_fallback_bck.tar'

So the error isn't about the upgrade itself but about the backup that precede the upgrade.

I won't have the time right now to investigate further, but I'll do it tomorrow morning.

I think that's something about a failed backup.

isAAAc commented 2 years ago

yes something is strange, when i remove fallback, the error is still alive when i want to upgrade apps, that is very strange, tell me if you want the logs in this context ;)

and thx a lot for your help and time @maniackcrudelis ;)

maniackcrudelis commented 2 years ago

Hi

Considering the way this app works, I believe this is something about an aborted process during a backup. Anyway, one way to fix that would be to have a look to the backup directory, /home/yunohost.backup/archives/, and look for a orphaned .info.json or a link to that peertube backup.

If you find some, delete them. It should fix your issue.

isAAAc commented 2 years ago
root@krashboyz:/home/yunohost.backup/archives# ls -al
total 31009028
[...]
-rw-r--r-- 1 root  root         368 Mar 23 09:34 peertube_fallback_bck.info.json
lrwxrwxrwx 1 root  root          90 Mar 23 09:34 peertube_fallback_bck.tar -> /home/yunohost.app/fallback/fallback_backup/temp_fallback_backup/peertube_fallback_bck.tar

root@krashboyz:/home/yunohost.backup/archives# ls /home/yunohost.app/fallback/fallback_backup/temp_fallback_backup/
ls: cannot access '/home/yunohost.app/fallback/fallback_backup/temp_fallback_backup/': No such file or directory

root@krashboyz:/home/yunohost.backup/archives# rm *

Everything looks ok now, I wonder why I didn't think of that :p

thx for your help @maniackcrudelis <3

i close the issue