My YunoHost server
Hardware: Serveur KS-7 - Intel i3-2130 - 8GB DDR3 1333 MHz - 2To SATA
YunoHost version: 11.2.14.1 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Overleaf 2024.06.02~ynh1
Description of my issue
I installed Overleaf through the Yunohost applications catalogue. I added an admin user. I made a domain overleaf.my-domain.tld and set the correct DNS records.
I start Overleaf by going to overleaf.my-domain.tld. I create a New Project. This gives an error:
Something went wrong. Please try again.
but refreshing the page shows that the project was created anyway. I try to open main.tex. This opens the document editing window, but then this error appears:
Sorry, something went wrong opening this document. Please try again.
The tex code side of the screen shows “loading”, but I’m stuck there.
I run the diagnosis tool of Yunohost. The Services status check reports one problem:
Service overleaf-document-updater is auto-restart :(
I click on Details, and then on the link to the service logs in the webadmin. The section journalctl shows this pattern:
Jun 12 14:39:08 systemd[1]: overleaf-document-updater.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 14:39:08 systemd[1]: overleaf-document-updater.service: Failed with result 'exit-code'.
Jun 12 14:39:13 systemd[1]: overleaf-document-updater.service: Scheduled restart job, restart counter is at 33.
Jun 12 14:39:13 systemd[1]: Stopped overleaf document-updater.
Jun 12 14:39:13 systemd[1]: Started overleaf document-updater.
Jun 12 14:39:13 systemd[1]: overleaf-document-updater.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 14:39:13 systemd[1]: overleaf-document-updater.service: Failed with result 'exit-code'.
Jun 12 14:39:18 systemd[1]: overleaf-document-updater.service: Scheduled restart job, restart counter is at 34.
Jun 12 14:39:18 systemd[1]: Stopped overleaf document-updater.
Jun 12 14:39:18 systemd[1]: Started overleaf document-updater.
and so on, in an infinite looop: the process fails, restarts after 5 seconds fails immediately, restarts 5 seconds later, etc.
The section /var/log/overleaf/document-updater.log shows this pattern (also repeatedly):
Node.js v18.20.2
Initializing metrics
Set UV_THREADPOOL_SIZE=16
Using default settings from /var/www/overleaf/live/services/document-updater/config/settings.defaults.js
Using settings from /var/www/overleaf/settings.js
node:events:495
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use 127.0.0.1:3003
at Server.setupListenHandle [as _listen2] (node:net:1817:16)
at listenInCluster (node:net:1865:12)
at doListen (node:net:2014:7)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1844:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '127.0.0.1',
port: 3003
}
I google the error EADDRINUSE; it’s supposedly caused by multiple processes listening to port 3003. I list the processes using the port using the command line:
lsof -i :3003
This reports nothing. I also try:
ps aux | grep 3003
This reports a process, which I try to kill with
kill <PID>
but this results in
No such process
At this point I run out of ideas, thinking that I need to invoke the help of more experienced hands than my own!