Error: "500" Internal Server Error after some time

My YunoHost server

VPS
YunoHost version: 4.3.6.3
yunohost-admin 4.3.4.1
I have access to my server : SSH and gui
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

If I do reboot the server I can use it normally from the gui, but after some time (could be 10 minutes, less or more) I have this error. Here I was in user section, but it does it also when I want to install an app, add a domain, etc.

Could you please help me?
Thank you

To be able to dig this issue, next time this happens, try to connect using ssh and share the output of : ps -ef | grep yunohost -C2

Thank you for your reply.

Here the response.

admin@home:~$ ps -ef | grep yunohost -C2
root       429     1  0 18:05 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug
root       574     1  0 18:05 ?        00:00:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root       575     1  0 18:05 ?        00:00:03 /usr/bin/python3 /usr/bin/yunohost-api
mdns       583     1  0 18:05 ?        00:00:01 /usr/bin/python3 /usr/bin/yunomdns
archive+   585     1  0 18:05 ?        00:00:00 bash /var/www/archivebox/start.sh
--
www-data 13654  1318  0 19:43 ?        00:00:00 nginx: worker process
root     17604     2  0 20:09 ?        00:00:00 [kworker/2:2]
root     17672  3422  0 20:10 ?        00:00:00 sudo yunohost backup create -n auto_redirect --method borg_app --apps redirect
root     17673 17672  0 20:10 ?        00:00:00 /usr/bin/python3 /usr/bin/yunohost backup create -n auto_redirect --method borg_app --apps redirect
root     17837 17673  0 20:10 ?        00:00:00 sh -c /bin/bash -x "./05-borg_app" backup /home/yunohost.backup/tmp/auto_redirect auto_redirect /home/yunohost.backup/archives 60914 '' 7>&1
root     17838 17837  0 20:10 ?        00:00:00 /bin/bash -x ./05-borg_app backup /home/yunohost.backup/tmp/auto_redirect auto_redirect /home/yunohost.backup/archives 60914
root     17843 17838  0 20:10 ?        00:00:00 /bin/bash /usr/local/bin/borg init -e repokey ssh://xxxxx@xxxxxxx.it:22/~/backup
root     17844 17843  0 20:10 ?        00:00:00 /opt/borg-env/bin/python /opt/borg-env/bin/borg init -e repokey ssh://xxxxx@xxxxxxx.it:22/~/backup
--
postgres 17876   893  0 20:12 ?        00:00:00 postgres: 11/main: discourse discourse [local] idle
admin    17890 12497  0 20:13 pts/0    00:00:00 ps -ef
admin    17891 12497  0 20:13 pts/0    00:00:00 grep yunohost -C2

Hmyeah so that’s borg taking up the lock

It looks like it’s stuck ont “borg init” … I don’t know if that’s expected, maybe that’s a bug in the borg app … I’m thinking this should only take a few minutes / seconds

1 Like

Maybe one way to unlock the situation can be to reboot the machine, and as soon as you can after the machine reboots, manually run through SSH :

sudo yunohost backup create -n auto_redirect --method borg_app --apps redirect

Maybe it’s gonna ask something in interactive mode (ideally we’d be curious to ask what to fix the issue for everybody)

1 Like

Sorry for my late reply. I tried to uninstall borg backup and now it’s working well.

When I’ll install it again I’ll update the thread.

Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.