Hello all
I have a very similar issue to this thread of the same name.
My YunoHost server
Hardware: Old computer - Mac Mini circa 2014
YunoHost version: 11.1.19 (running on VM via VirtualBox)
I have access to my server :
- Through SSH
- through the webadmin (currently hanging)
- direct access via keyboard / screen (currently hanging)
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : maybe?
According to this post, setting up Yunohost behind a Fritzbox can be painful.
Description of my issue
What you are trying to achieve
Just as @beelm wrote in his thread of the same name (see above), the YunoHost command seems to have gotten stuck.
I want to get my yunohost command unstuck by finding the currently running process that is not ending. Thanks to @beelm and @aleks I have had several good leads to try (see below) but havenāt been able to resolve it yet.
Ultimately I want to use my yunohost web admin panel as normal - currently it hangs whenever I try to do anything.
The context
Several things happened yesterday in my install/config trial and error before yunohost admin locked up. I include them all below in case anything jumps out for folks reading (or struggling with their own setup).
IPv6 troubleshooting: Changed settings in router (Fritzbox)
Settings I changed include:
- Editing DynDNS setup in Fritzbox (using dynv6.com) and this tip Note: I didnāt follow the part in these instructions about editing the ā/etc/network/interfacesā file in Debian/yunohost
- Temporarily moving yunohost from being an exposed host to a regular machine on the network. Result: couldnāt SSH into yunohost, so changed it back (permission denied on ports 22 and 27, and couldnāt manage to successfully open them on Fritzbox). So I changed it back to an exposed host.
- Allowing ipv6 access to yunohost exposed host behind Fritzbox (previously only IPv4 access was allowed)
- Allowing ping6 to exposed host in Fritzbox
Iāll document these separately and in more detail on @umrathās thread about Fritzbox, in case they help anyone else.
IPv6 troubleshooting: Changed settings in yunohost
I reloaded the firewall, using
sudo yunohost firewall reload
Before this, according to yunohost on the command line (could ping6 to and from yunohost), IPv6 was working on yunohost, but diagnostics run in the YH web admin was still giving an error that IPv6 was not available.
After reloading firewall, IPv6 was not working (ping6 out giving error unreachable) on command line or web admin.
First backup: A stalled backup
Yunohost hung yesterday while I was creating the first backup (better late than never ) via the command line and SSH. It hung during the process of backing up nocodb (I didnāt collect logs and donāt have the terminal window open anymore, my bad ). After about an hour of waiting and nothing happening, I got a command prompt back by pressing command + C
Finalise Vaultwarden setup: add server admin token
I had previously installed Vaultwarden, but only yesterday found the correct token, using these instructions.
Since then, any other process I have tried in yunohost via the command line or the web admin gives the error āanother process is runningā and after some time fails.
I am new to server side, and Iām aware could be an operator error issue.
What I tried
Following @aleks instructions to @beelm, I have tried the following steps to get yunohost āunstuckā.
Attempt 1
Step a: run @Aleks recommendation:
ps -ef | grep -B2 wget
Result a:
nqo 2375838 2375836 0 00:43 pts/1 00:00:00 -bash
nqo 2375889 2375838 0 00:44 pts/1 00:00:00 ps -ef
nqo 2375890 2375838 0 00:44 pts/1 00:00:00 grep -B2 wget
Step b: kill wget job ID:
kill 2375838
Result b:
Nothing obvious happens. No logs appear, process apparently isnāt stopped. Because then I triedā¦
Attempt 2
Step a: run @Aleks recommendation:
cat /var/run/moulinette_yunohost.lock
Result a:
508
Step b: Run @Aleks recommendation:
$ ps -ef | grep 508
Result b:
nqo 2375969 2375838 0 00:48 pts/1 00:00:00 grep 508
Attempt 3
Step a: run @Alekās recommendation:
sudo cat /var/log/yunohost/categories/operation/ ls -thor
Result a:
cat invalid option -- 'h'
Returned error message
Warning: Another YunoHost command is running right now, we are waiting for it to finish before running this one
Warning: Still waitingā¦
Warning: Still waitingā¦
My questions are:
Resolving immediate issue question
- Do you have another route to suggest @Aleks or others to stop the hung process?
Future best practise questions
- Could I have made trouble for my yunohost and myself by control + c out of the hung backup? In other words, does yunohost get broken/confused by cancelling out of a running process?
- If yes, what is the better way of getting a command prompt when yunohost has gone for a long walk?
- Could the backup potentially be too big and clogging up my system, and could this be contributing the error? If yes, how do I safely remove the partial backup?
Planned next steps
- Document the Fritzbox trials on @umrathās thread.
- Set up one or two remote storage devices for my yunohost. Perhaps one to hold hold backups and another to hold media+personal files+emails+messages.
Thanks for reading!
Please reply if you have hunches about how I can stop the hung yunohost process.