Yunohost command not ending v3

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.37
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Hello! We are getting closer to the holidays, I hope that someone can still help me, otherwise I will wait until next year. Happy holidays anyway :wink:

I have a yunohost command that halts and needs to be manually stopped, similarly to this thread and this thread.

Context: While trying to install a second instance of the app “Reverse Proxy”, I was creating a new subdomain (with a SSL certificate) through the webadmin interface. I’ve started the command and the modal with the title “The server is processing the action…” and the pacman animation showed up.
Unfortunately it halted at “Registering account…” and after sleeping on it for a night it is still there after logging back in. Trying to run commands from the command line is of no help since they have to wait for that same command to finish.

How can I kill the command?

Relevant info

I took a look at the source code hoping to solve the issue by myself, and I’ve found that log line here. It is probably halting while making a http request, but I don’t know enough about it in order to understand what’s going wrong.

Log of the domain_add command

# tail -18 20251218-232550-domain_add-XXXXX.log

2025-12-18 23:26:14,332: INFO - Now attempting install of certificate for domain XXXXX
2025-12-18 23:26:14,343: DEBUG - Making sure tmp folders exists...
2025-12-18 23:26:14,352: DEBUG - Fetching IP from https://ipv4.yunohost.org
2025-12-18 23:26:14,452: DEBUG - IP fetched: XXXXX
2025-12-18 23:26:14,463: DEBUG - Fetching IP from https://ipv6.yunohost.org
2025-12-18 23:26:14,467: DEBUG - Could not get public IPv6 : Failed to connect to https://ipv6.yunohost.org... maybe the service is down, or you are not properly connected to the Internet in IPv4/IPv6.
2025-12-18 23:26:14,468: DEBUG - IP fetched: None
2025-12-18 23:26:14,468: DEBUG - Prepare key and certificate signing request (CSR) for XXXXX...
2025-12-18 23:26:15,600: DEBUG - Saving to /var/www/.well-known/acme-challenge-private/XXXXX.csr.
2025-12-18 23:26:15,600: DEBUG - Now using ACME Tiny to sign the certificate...
2025-12-18 23:26:15,600: INFO - Parsing account key...
2025-12-18 23:26:15,613: INFO - Parsing CSR...
2025-12-18 23:26:15,627: INFO - Found domains: XXXXX
2025-12-18 23:26:15,627: INFO - Getting directory...
2025-12-18 23:26:16,118: INFO - Directory found!
2025-12-18 23:26:16,119: INFO - Registering account...
2025-12-19 10:18:21,618: DEBUG - User logged out, but failed to properly invalidate the session : Unable to authenticate
2025-12-19 10:19:45,134: DEBUG - User logged out, but failed to properly invalidate the session : Unable to authenticate

Trying to run another command

# yunohost domain cert renew XXXXX

Warning: Another YunoHost command is running right now, we are waiting for it to finish before running this one

Checking moulinette processes

# cat /var/run/moulinette_yunohost.lock

2100164

# ps -ef | grep 2100164

root     2100164       1  0 Nov27 ?        00:00:25 python3 /usr/bin/yunohost-api
root     2100168 2100164  0 Nov27 ?        00:00:00 python3 /usr/bin/yunohost-api
root     2851202 2837530  0 11:55 pts/2    00:00:00 grep 2100164

Checking yunohost processes

# ps -ef | grep yunohost

ynh-por+ 2100157       1  0 Nov27 ?        00:00:02 python3 /usr/bin/yunohost-portal-api
root     2100164       1  0 Nov27 ?        00:00:25 python3 /usr/bin/yunohost-api
root     2100168 2100164  0 Nov27 ?        00:00:00 python3 /usr/bin/yunohost-api
root     2800280 2800080  0 06:25 ?        00:00:00 /bin/bash /etc/cron.daily/yunohost-certificate-renew
root     2800281 2800280  0 06:25 ?        00:00:20 python3 /bin/yunohost domain cert renew --email
root     2803649 2803578  0 06:39 pts/0    00:00:00 /usr/bin/dpkg --status-fd 11 --no-triggers --configure yunohost:all
root     2803650 2803649  0 06:39 pts/0    00:00:00 bash /var/lib/dpkg/info/yunohost.postinst configure 12.1.36
root     2803654 2803650  0 06:39 pts/0    00:00:21 python3 /usr/bin/yunohost app ssowatconf
root     2806621 2806620  0 07:00 ?        00:00:00 /bin/bash -c : YunoHost Automatic Diagnosis; sleep $((RANDOM%1200)); yunohost diagnosis run --email > /dev/null 2>/dev/null || echo "Running the automatic diagnosis failed miserably"
root     2808531 2806621  0 07:12 ?        00:00:15 python3 /usr/bin/yunohost diagnosis run --email
root     2851436 2837530  0 11:56 pts/2    00:00:00 grep yunohost

List recent logs

# ls -thor /var/log/yunohost/categories/operation/ | tail -10

-rw-rw-rw- 1 root  315 Dec 18 23:25 20251218-232550-domain_add-XXXXX.yml
-rw-rw-rw- 1 root 124K Dec 18 23:25 20251218-232552-regen_conf-2_categories.log
-rw-rw-rw- 1 root  358 Dec 18 23:25 20251218-232552-regen_conf-2_categories.yml
-rw-rw-rw- 1 root 128K Dec 18 23:25 20251218-232551-selfsigned_cert_install-XXXXX.log
-rw-rw-rw- 1 root  336 Dec 18 23:25 20251218-232551-selfsigned_cert_install-XXXXX.yml
-rw-rw-rw- 1 root 212K Dec 18 23:26 20251218-232557-regen_conf-6_categories.log
-rw-rw-rw- 1 root  509 Dec 18 23:26 20251218-232557-regen_conf-6_categories.yml
-rw-rw-rw- 1 root  292 Dec 18 23:26 20251218-232614-letsencrypt_cert_install-XXXXX.yml
-rw-rw-rw- 1 root 1.5K Dec 19 10:19 20251218-232614-letsencrypt_cert_install-XXXXX.log
-rw-rw-rw- 1 root 342K Dec 19 10:19 20251218-232550-domain_add-XXXXX.log

I’ve also found this this thread. The line 127.0.0.1 yourdomain.com is already present in /etc/hosts/, and the last diagnosis results don’t show any particular problem.


Thank you to anyone who can help me :slight_smile:

Share relevant logs or error messages

I cannot use the webadmin page due to the command blocking any interaction

Did you try to restart yunohost-api ?
sudo systemctl restart yunohost-api

1 Like

Hmyeah digging in it looks like there’s no “timeout” option in acme_tiny’s code to prevevent the HTTP request taking forever (which can happen if … idk for a varierity of reasons, such as internet connectivity being too slow, or somehow Let’s Encrypt server stopped responding for the request even though we were able to open the connection, whatev)

Somebody actually made a pull request to address this : added a timeout to urlopen by jvanasco · Pull Request #293 · diafygi/acme-tiny · GitHub

We can probably merge it into our “own version” of acme_tiny

As for the command still running : yes you can probably just kill it with kill -9 <PID>, or systemctl restart yunohost-api as suggested before

1 Like

Thank you very much @otm33 and @Aleks! Restarting the service solved it!
I’m new to the forum, so please let me know if I need to mark this as solved or something similar.

Otherwise, thanks again and happy holidays! :slight_smile:

Yes you can mark the thread as solved. There is a button you need to click on the reply that contain the answer.

1 Like

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