[SOLVED] Yunhost-api not responding after Language-tool installation failed

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.40.1
How are you able to access your server: SSH

Describe your issue

Error message when i’m trying to connect to the admin web interface.
I tried : systemctl restart yunohost-api
but nothing
The command : tail /var/log/yunohost/yunohost-api.log
give me the response below:

Share relevant logs or error messages

File “/usr/lib/python3/dist-packages/gevent/server.py”, line 288, in _tcp_listener
sock.bind(address)
File “/usr/lib/python3/dist-packages/gevent/_socketcommon.py”, line 563, in bind
return self._sock.bind(address)
^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 98] Address already in use: (‘localhost’, 6787)
2026-07-28 11:08:46,411 ERROR moulinette.api - A server is already running on that port
2026-07-28 11:12:05,287 DEBUG moulinette.api - Using actionmap /usr/share/yunohost/actionsmap.yml
2026-07-28 11:12:05,589 DEBUG moulinette.interface.api.run - starting the server instance in localhost:6787

What’s the output of lsof -i :6787

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3 [hide] root 8u IPv4 [hide] 0t0 TCP localhost:6787 (LISTEN)

Try to reboot the server sudo reboot

already tried

Can you share the diagnosis link?

And the logs of the failed installation

Where can I find the diagnosis link and the logs of the failed installation ?

Using

sudo -i
yunohost diagnosis run
yunohost diagnosis show | yunopaste

Get the list of logs

yunohost log list

Share the log

yunohost log share log_name

Shared logs via yunopaste are anonymised

The problem was resolved this morning. I had forgotten that I had been running tests on a virtual machine. The virtual machine was starting up automatically and must have caused a conflict on port 6787. I shut down the virtual machine, and now everything is working fine. Thanks for your help :smiling_face: