"CLSI proxy error" à la compilation d'un projet Overleaf/"CLSI proxy error" when compiling an Overleaf project

What app is this about, and its version: Overleaf, 2026.02.24~ynh1
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Old laptop or computer

Describe your issue

(English below)

Bonjour,

La dernière mise à jour d’Overleaf a cassé la compilation des projets (le message d’erreur “Une erreur s’est produite lors du rendu de ce PDF. Please try recompiling the project from scratch, and if that doesn’t help, follow our troubleshooting guide.” s’affiche à la place du projet compilé).

Dans les logs du service overleaf-web, j’ai :

{"name":"web","hostname":"","pid":3228227,"level":40,"err":{"message":"request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080","name":"FetchError","stack":"FetchError: request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080\n    at ClientRequest.<anonymous> (/var/www/overleaf/live/node_modules/node-fetch/lib/index.js:1501:11)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at Socket.socketErrorListener (node:_http_client:518:5)\n    at Socket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\nTaggedError: request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080\n    at performRequest (/var/www/overleaf/live/libraries/fetch-utils/index.js:242:18)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fetchStreamWithResponse (/var/www/overleaf/live/libraries/fetch-utils/index.js:57:20)\n    at async Object._proxyToClsiWithLimits (file:///var/www/overleaf/live/services/web/app/src/Features/Compile/CompileController.mjs:602:36)\n    at async getFileFromClsi (file:///var/www/overleaf/live/services/web/app/src/Features/Compile/CompileController.mjs:454:5)","info":{"url":"http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d","method":"GET"},"code":"ECONNREFUSED"},"projectId":"68cbbc883c1c3bba55dfdb93","url":"http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d","action":"output-file","reqAborted":false,"streamingStarted":false,"duration":1,"msg":"CLSI proxy error","time":"2026-03-08T14:37:52.999Z","v":0}

Et dans ceux du service overleaf-clsi :

{"name":"clsi","hostname":"","pid":3228164,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner undefined","time":"2026-03-08T14:37:52.484Z","v":0}

Il semblerait effectivement qu’aucune application n’écoute sur le port 8080, mais je ne comprends pas pourquoi.

Je vous remercie d’avance pour votre aide !

English version:

Hello,

The latest update of Overleaf broke projects compilation (the error message “An error has occurred when rendering this PDF. Please try recompiling the project from scratch, and if that doesn’t help, follow our troubleshooting guide.” is showing instead of the compiled project).

Here is the last line of the overleaf-web service’s logs:

{"name":"web","hostname":"","pid":3228227,"level":40,"err":{"message":"request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080","name":"FetchError","stack":"FetchError: request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080\n    at ClientRequest.<anonymous> (/var/www/overleaf/live/node_modules/node-fetch/lib/index.js:1501:11)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at Socket.socketErrorListener (node:_http_client:518:5)\n    at Socket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\nTaggedError: request to http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d failed, reason: connect ECONNREFUSED 127.0.0.1:8080\n    at performRequest (/var/www/overleaf/live/libraries/fetch-utils/index.js:242:18)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fetchStreamWithResponse (/var/www/overleaf/live/libraries/fetch-utils/index.js:57:20)\n    at async Object._proxyToClsiWithLimits (file:///var/www/overleaf/live/services/web/app/src/Features/Compile/CompileController.mjs:602:36)\n    at async getFileFromClsi (file:///var/www/overleaf/live/services/web/app/src/Features/Compile/CompileController.mjs:454:5)","info":{"url":"http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d","method":"GET"},"code":"ECONNREFUSED"},"projectId":"68cbbc883c1c3bba55dfdb93","url":"http://127.0.0.1:8080/project/68cbbc883c1c3bba55dfdb93/user/6895db6695855790b24bb53e/build/19ccde217d7-2e0fab02dab8d573/output/output.pdf?compileGroup=standard&compileBackendClass=c3d","action":"output-file","reqAborted":false,"streamingStarted":false,"duration":1,"msg":"CLSI proxy error","time":"2026-03-08T14:37:52.999Z","v":0}

Same for overleaf-clsi:

{"name":"clsi","hostname":"","pid":3228164,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner undefined","time":"2026-03-08T14:37:52.484Z","v":0}

Looks like no application is listening on port 8080, but I don’t understand why.

Thank you in advance for your help!

Share relevant logs or error messages

/

1 Like

Bonjour @antux18
Il y a eu du changement côté source:

Tu peux essayer d’ajouter cela dans la partie api de /var/www/overleaf/settings.js

  apis: {
    web: {
      url: 'http://127.0.0.1:8095',
      user: httpAuthUser,
      pass: httpAuthPass,
    },
    clsi: {
      url: 'http://127.0.0.1:3013',
      downloadHost: 'http://127.0.0.1:3013',
    },

Il faut ensuite redémarrer overleaf-web et clsi.
Cela a l’air de fonctionner mais il y aura peut-être d’autres problèmes.

Bonjour,

Merci d’y avoir jeté un œil, j’ai exactement le même problème.

J’ai essayé d’insérer les éléments proposés dans mon fichier, mais cela ne semble pas changer le problème.

$ sudo diff /var/www/overleaf/settings.js{,.bak}
280c280
<       url: 'http://127.0.0.1:8095',
---
>       url: 'http://127.0.0.1:8096',
297,300d296
<     clsi: {
<       url: 'http://127.0.0.1:3013',
<       downloadHost: 'http://127.0.0.1:3013',
<     },

Malgré un redémarrage des services overleaf-web et oberleaf-clsi j’ai toujours les logs suivants dans clsi:

{"name":"clsi","hostname":"mydomain.tld","pid":260300,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner undefined","time":"2026-03-10T17:08:59.977Z","v":0}

Bonsoir,
Est-ce que overleaf écoute sur le port 3013 ?

lsof -i :3013

Avec la modification proposée, oui :

$ sudo lsof -i :3013
COMMAND    PID     USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
node    287510 overleaf   22u  IPv4 43781211      0t0  TCP localhost:3013 (LISTEN)

(le pid est bien celui que j’observe dans les logs de clsi)

D’ailleurs, après un reboot, j’obtiens des erreurs suivantes dans les logs de overleaf-web quand je tente d’accéder à un projet :

"name": "web",
"hostname": "mydomain.tld",
"pid": 720,
"level": 50,
"err": {
    "message": "Cannot read properties of undefined (reading 'url')",
    "name": "TypeError",
    "stack": "TypeError: Cannot read properties of undefined (reading 'url')\n    at getDetails (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:88:49)\n    at Object.getCurrencyCode (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:100:23)\n    at projectListPage (file:///var/www/overleaf/live/services/web/app/src/Features/Project/ProjectListController.mjs:489:32)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
    "info": {}
},
"ip": "2a01:e0a:869:<redacted>:fb30:f70b",
"msg": "problem getting currencyCode for ip, defaulting to USD",
"time": "2026-03-10T18:27:12.696Z",
"v": 0

Bonsoir,

Merci beaucoup ! Ça fonctionne chez moi, bien que j’aie la même erreur que @pyrignis dans les logs d’overleaf-clsi.

Oui, ces erreurs étaient déjà présentes auparavant et renvoient à des fonctions sans doute non incluses dans la version packagée mais sans incidence sur le fonctionnement général.

J’ai essayé de désinstaller puis de réinstaller Overleaf.
Si j’applique la modification proposée du fichier /var/www/overleaf/settings.js, je continue d’avoir des erreurs de compilation.

Voici quelques résultats :

$ sudo lsof -i :3013
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
node    109145 overleaf   22u  IPv4 854495      0t0  TCP localhost:3013 (LISTEN)
$ sudo tail -n 1 /var/log/overleaf/web.log | jq
{
  "name": "web",
  "hostname": "mydomain.tld",
  "pid": 109278,
  "level": 50,
  "err": {
    "message": "Cannot read properties of undefined (reading 'url')",
    "name": "TypeError",
    "stack": "TypeError: Cannot read properties of undefined (reading 'url')\n    at getDetails (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:88:49)\n    at Object.getCurrencyCode (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:100:23)\n    at projectListPage (file:///var/www/overleaf/live/services/web/app/src/Features/Project/ProjectListController.mjs:489:32)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
    "info": {}
  },
  "ip": "2a01:e0a:869:<redacted>:fb30:f70b",
  "msg": "problem getting currencyCode for ip, defaulting to USD",
  "time": "2026-03-11T13:00:36.720Z",
  "v": 0
}
$ sudo cat /var/www/overleaf/settings.js | grep -A 15 'apis: {'  
apis: {
    web: {
      url: 'http://127.0.0.1:8095',
      user: httpAuthUser,
      pass: httpAuthPass,
    },
    clsi: {
      url: 'http://127.0.0.1:3013',
      downloadHost: 'http://127.0.0.1:3013',
    },
    project_history: {
      sendProjectStructureOps: true,
      url: 'http://127.0.0.1:3054',
    },
    v1_history: {
      url: process.env.V1_HISTORY_URL || 'http://127.0.0.1:3100/api',

Tu as toujours cette erreur ?

Could some of you try the following branch:

yunohost app upgrade overleaf -u ``https://github.com/YunoHost-Apps/overleaf_ynh/tree/fix`` –debug –force ?

Thanks!

Here is the logs

$ sudo yunohost log show 20260313-092859-app_upgrade-overleaf
description: Upgrade the 'overleaf' app
log_path: /var/log/yunohost/operations/20260313-092859-app_upgrade-overleaf.log
logs: 
  - 2026-03-13 09:34:53,074: DEBUG - + local log_path
  - 2026-03-13 09:34:53,075: DEBUG - + local timeout
  - 2026-03-13 09:34:53,079: DEBUG - + ynh_handle_getopts_args --service=overleaf-web --action=start --log_path=/var/log/overleaf/web.log '--wait_until=listening on' '--wait_until=Using settings from'
  - 2026-03-13 09:34:53,079: DEBUG - ++ grep xtrace
  - 2026-03-13 09:34:53,079: DEBUG - ++ set +o
  - 2026-03-13 09:34:53,080: DEBUG - + local 'xtrace_enable=set -o xtrace'
  - 2026-03-13 09:34:53,080: DEBUG - + set +o xtrace
  - 2026-03-13 09:34:53,254: DEBUG - + service=overleaf-web
  - 2026-03-13 09:34:53,254: DEBUG - + action=start
  - 2026-03-13 09:34:53,254: DEBUG - + wait_until='Using settings from'
  - 2026-03-13 09:34:53,255: DEBUG - + length=20
  - 2026-03-13 09:34:53,255: DEBUG - + log_path=/var/log/overleaf/web.log
  - 2026-03-13 09:34:53,255: DEBUG - + ynh_in_ci_tests
  - 2026-03-13 09:34:53,255: DEBUG - + '[' 0 -eq 1 ']'
  - 2026-03-13 09:34:53,255: DEBUG - + timeout=300
  - 2026-03-13 09:34:53,255: DEBUG - + '[' start == stop ']'
  - 2026-03-13 09:34:53,255: DEBUG - + [[ -n Using settings from ]]
  - 2026-03-13 09:34:53,255: DEBUG - ++ mktemp
  - 2026-03-13 09:34:53,257: DEBUG - + local templog=/tmp/tmp.41NvPYVmVf
  - 2026-03-13 09:34:53,257: DEBUG - + '[' /var/log/overleaf/web.log == systemd ']'
  - 2026-03-13 09:34:53,257: DEBUG - + local pid_tail=327629
  - 2026-03-13 09:34:53,257: DEBUG - + '[' start == reload ']'
  - 2026-03-13 09:34:53,257: DEBUG - + tail --follow=name --retry --lines=0 /var/log/overleaf/web.log
  - 2026-03-13 09:34:53,258: DEBUG - ++ date --utc --rfc-3339=seconds
  - 2026-03-13 09:34:53,259: DEBUG - ++ cut -d+ -f1
  - 2026-03-13 09:34:53,261: DEBUG - + local 'time_start=2026-03-13 09:34:53 UTC'
  - 2026-03-13 09:34:53,261: DEBUG - + systemctl start overleaf-web
  - 2026-03-13 09:34:53,299: DEBUG - + [[ -n Using settings from ]]
  - 2026-03-13 09:34:53,299: DEBUG - + set +o xtrace
  - 2026-03-13 09:34:54,304: INFO - The service overleaf-web has correctly executed the action start.
  - 2026-03-13 09:34:54,304: DEBUG - + '[' 2 -ge 3 ']'
  - 2026-03-13 09:34:54,304: DEBUG - + '[' 2 -eq 300 ']'
  - 2026-03-13 09:34:54,304: DEBUG - + _ynh_clean_check_starting
  - 2026-03-13 09:34:54,304: DEBUG - + '[' -n 327629 ']'
  - 2026-03-13 09:34:54,305: DEBUG - + kill -SIGTERM 327629
  - 2026-03-13 09:34:54,305: DEBUG - + '[' -n /tmp/tmp.41NvPYVmVf ']'
  - 2026-03-13 09:34:54,305: DEBUG - + ynh_safe_rm /tmp/tmp.41NvPYVmVf
  - 2026-03-13 09:34:54,305: DEBUG - + local target=/tmp/tmp.41NvPYVmVf
  - 2026-03-13 09:34:54,305: DEBUG - + set +o xtrace
  - 2026-03-13 09:34:54,315: DEBUG - + ynh_script_progression 'Upgrade of overleaf completed'
  - 2026-03-13 09:34:54,315: DEBUG - + set +o xtrace
  - 2026-03-13 09:34:54,317: INFO - [####################] > Upgrade of overleaf completed
  - 2026-03-13 09:34:54,317: DEBUG - + ynh_exit_properly
  - 2026-03-13 09:34:54,317: DEBUG - + local exit_code=0
  - 2026-03-13 09:34:54,318: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
  - 2026-03-13 09:34:54,318: DEBUG - + rm -rf /var/cache/yunohost/download/
  - 2026-03-13 09:34:54,319: DEBUG - + '[' 0 -eq 0 ']'
  - 2026-03-13 09:34:54,319: DEBUG - + exit 0
  - 2026-03-13 09:34:54,420: DEBUG - Checking that required services are up and running...
  - 2026-03-13 09:34:55,454: SUCCESS - overleaf upgraded
metadata: 
  ended_at: 2026-03-13 09:34:55
  env: 
    YNH_APP_ACTION: upgrade
    YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_zj9ge3e9
    YNH_APP_CURRENT_VERSION: 2026.03.05~ynh1
    YNH_APP_ID: overleaf
    YNH_APP_INSTANCE_NAME: overleaf
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_APP_MANIFEST_VERSION: 2026.03.05~ynh1
    YNH_APP_PACKAGING_FORMAT: 2.0
    YNH_APP_UPGRADE_TYPE: UPGRADE_SAME
    YNH_ARCH: amd64
    YNH_DEBIAN_VERSION: bookworm
    YNH_DEFAULT_PHP_VERSION: 8.2
    YNH_HELPERS_VERSION: 2.1
  error: None
  interface: cli
  operation: app_upgrade
  parent: None
  related_to: 
    - app
    - overleaf
  started_at: 2026-03-13 09:28:59
  started_by: arthur
  success: True
  yunohost_version: 12.1.39
metadata_path: /var/log/yunohost/operations/20260313-092859-app_upgrade-overleaf.yml
name: 20260313-092859-app_upgrade-overleaf

Mais l’erreur est toujours la même :

Ok could you share the logs of overleaf-web and overleaf-clsi?

Nothing new in overleaf-web EDIT2 see below but here is the formatted output of overleaf-clsi :

{
    "name": "clsi",
    "hostname": "mydomain.tld",
    "pid": 325887,
    "level": 40,
    "err": {
        "message": "request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011",
        "name": "FetchError",
        "stack": "FetchError: request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011\n    at ClientRequest.<anonymous> (/var/www/overleaf/live/node_modules/node-fetch/lib/index.js:1501:11)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at Socket.socketErrorListener (node:_http_client:518:5)\n    at Socket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\nTaggedError: request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011\n    at performRequest (/var/www/overleaf/live/libraries/fetch-utils/index.js:242:18)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fetchStreamWithResponse (/var/www/overleaf/live/libraries/fetch-utils/index.js:57:20)\n    at async fetchStream (/var/www/overleaf/live/libraries/fetch-utils/index.js:51:22)\n    at async pipeUrlToFile (file:///var/www/overleaf/live/services/clsi/app/js/UrlFetcher.js:61:14)\n    at async Object.pipeUrlToFileWithRetry (file:///var/www/overleaf/live/services/clsi/app/js/UrlFetcher.js:26:7)\n    at async download (file:///var/www/overleaf/live/services/clsi/app/js/UrlCache.js:118:5)\n    at async Object.downloadUrlToFile (file:///var/www/overleaf/live/services/clsi/app/js/UrlCache.js:89:7)",
        "info": {
            "url": "http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809",
            "method": "GET"
        },
        "code": "ECONNREFUSED"
    },
    "url": "http://127.0.0.1:3009/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809",
    "filePath": "/home/yunohost.app/overleaf/cache/69b15b9c45423aa9fb752d8a/-history-project-69b15b9c45423aa9fb752d8a-hash-5b889ef3cf71c83a4c027c4e4dc3d1a106b27809-1773231005154",
    "remainingAttempts": 0,
    "msg": "error downloading url",
    "time": "2026-03-13T14:45:23.750Z",
    "v": 0
}
{
    "name": "clsi",
    "hostname": "mydomain.tld",
    "pid": 325887,
    "level": 50,
    "err": {
        "message": "request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011",
        "name": "FetchError",
        "stack": "FetchError: request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011\n    at ClientRequest.<anonymous> (/var/www/overleaf/live/node_modules/node-fetch/lib/index.js:1501:11)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at Socket.socketErrorListener (node:_http_client:518:5)\n    at Socket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\nTaggedError: request to http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809 failed, reason: connect ECONNREFUSED 127.0.0.1:3011\n    at performRequest (/var/www/overleaf/live/libraries/fetch-utils/index.js:242:18)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fetchStreamWithResponse (/var/www/overleaf/live/libraries/fetch-utils/index.js:57:20)\n    at async fetchStream (/var/www/overleaf/live/libraries/fetch-utils/index.js:51:22)\n    at async pipeUrlToFile (file:///var/www/overleaf/live/services/clsi/app/js/UrlFetcher.js:61:14)\n    at async Object.pipeUrlToFileWithRetry (file:///var/www/overleaf/live/services/clsi/app/js/UrlFetcher.js:26:7)\n    at async download (file:///var/www/overleaf/live/services/clsi/app/js/UrlCache.js:118:5)\n    at async Object.downloadUrlToFile (file:///var/www/overleaf/live/services/clsi/app/js/UrlCache.js:89:7)",
        "info": {
            "url": "http://127.0.0.1:3011/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809",
            "method": "GET"
        },
        "code": "ECONNREFUSED"
    },
    "projectId": "69b15b9c45423aa9fb752d8a",
    "path": "/home/yunohost.app/overleaf/compiles/69b15b9c45423aa9fb752d8a-69b15b7a45423aa9fb752d6e/frog.jpg",
    "resourceUrl": "http://127.0.0.1:3009/history/project/69b15b9c45423aa9fb752d8a/hash/5b889ef3cf71c83a4c027c4e4dc3d1a106b27809",
    "modified": "2026-03-11T12:10:05.154Z",
    "msg": "error downloading file for resources",
    "time": "2026-03-13T14:45:23.751Z",
    "v": 0
}
{
    "name": "clsi",
    "hostname": "mydomain.tld",
    "pid": 325887,
    "level": 40,
    "msg": "timeouts and sandboxing are not enabled with CommandRunner undefined",
    "time": "2026-03-13T14:45:23.752Z",
    "v": 0
}
{
    "name": "clsi",
    "hostname": "mydomain.tld",
    "pid": 325887,
    "level": 40,
    "projectId": "69b15b9c45423aa9fb752d8a",
    "outputFiles": [
        {
            "path": "output.aux",
            "type": "aux",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.bbl",
            "type": "bbl",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.blg",
            "type": "blg",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.fdb_latexmk",
            "type": "fdb_latexmk",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.fls",
            "type": "fls",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.out",
            "type": "out",
            "build": "19ce7a8c671-7738abe88acca686"
        },
        {
            "path": "output.stdout",
            "type": "stdout",
            "build": "19ce7a8c671-7738abe88acca686"
        }
    ],
    "msg": "project failed to compile successfully, no output.pdf generated",
    "time": "2026-03-13T14:45:23.861Z",
    "v": 0
}
{
    "name": "clsi",
    "hostname": "mydomain.tld",
    "pid": 325887,
    "level": 40,
    "msg": "timeouts and sandboxing are not enabled with CommandRunner undefined",
    "time": "2026-03-13T15:58:15.084Z",
    "v": 0
}

EDIT: Except the last one, the error timestamp are more likely linked with the creation of the (test) projects. Further compilation attempts only add one line which is similar to the last one.

Reading these logs I have also inquired about port 3011 which does not seem to be open:

$ sudo lsof -i :3011
$ sudo lsof -i :3013
COMMAND    PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
node    325887 overleaf   22u  IPv4 3279546      0t0  TCP localhost:3013 (LISTEN)
$ sudo lsof -i :3009
COMMAND    PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
node    326647 overleaf   21u  IPv4 3280916      0t0  TCP localhost:3009 (LISTEN)

EDIT2: I guess I did not properly refresh my browser to gets the logs out of overleaf-web, here they are:


{
    "name": "web",
    "hostname": "mydomain.tld",
    "pid": 327635,
    "level": 50,
    "err": {
        "message": "Cannot read properties of undefined (reading 'url')",
        "name": "TypeError",
        "stack": "TypeError: Cannot read properties of undefined (reading 'url')\n    at getDetails (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:88:49)\n    at Object.getCurrencyCode (file:///var/www/overleaf/live/services/web/app/src/infrastructure/GeoIpLookup.mjs:100:23)\n    at projectListPage (file:///var/www/overleaf/live/services/web/app/src/Features/Project/ProjectListController.mjs:489:32)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
        "info": {}
    },
    "ip": "2a01:e0a:869:1b50:baf0:7e7:fb30:f70b",
    "msg": "problem getting currencyCode for ip, defaulting to USD",
    "time": "2026-03-13T16:24:13.305Z",
    "v": 0
}
{
    "name": "web",
    "hostname": "mydomain.tld",
    "pid": 327635,
    "level": 50,
    "err": {
        "message": "request to http://127.0.0.1:3101/api/projects/69b41fdce400f65c1c71c0de/latest/history failed, reason: connect ECONNREFUSED 127.0.0.1:3101",
        "name": "FetchError",
        "stack": "FetchError: request to http://127.0.0.1:3101/api/projects/69b41fdce400f65c1c71c0de/latest/history failed, reason: connect ECONNREFUSED 127.0.0.1:3101\n    at ClientRequest.<anonymous> (/var/www/overleaf/live/node_modules/node-fetch/lib/index.js:1501:11)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at Socket.socketErrorListener (node:_http_client:518:5)\n    at Socket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\nTaggedError: request to http://127.0.0.1:3101/api/projects/69b41fdce400f65c1c71c0de/latest/history failed, reason: connect ECONNREFUSED 127.0.0.1:3101\n    at performRequest (/var/www/overleaf/live/libraries/fetch-utils/index.js:242:18)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fetchJsonWithResponse (/var/www/overleaf/live/libraries/fetch-utils/index.js:30:20)\n    at async fetchJson (/var/www/overleaf/live/libraries/fetch-utils/index.js:21:20)\n    at async getLatestHistoryWithHistoryId (file:///var/www/overleaf/live/services/web/app/src/Features/History/HistoryManager.mjs:285:10)\n    at async Object.getLatestHistory (file:///var/www/overleaf/live/services/web/app/src/Features/History/HistoryManager.mjs:276:10)\n    at async getLatestHistory (file:///var/www/overleaf/live/services/web/app/src/Features/History/HistoryController.mjs:551:19)",
        "info": {
            "url": "http://127.0.0.1:3101/api/projects/69b41fdce400f65c1c71c0de/latest/history",
            "method": "GET"
        },
        "code": "ECONNREFUSED"
    },
    "responseTimeMs": 10,
    "req": {
        "method": "GET",
        "url": "/project/69b41fdce400f65c1c71c0de/latest/history",
        "remoteAddress": "2a01:e0a:869:1b50:baf0:7e7:fb30:f70b",
        "headers": {
            "referer": "https://overleaf.mydomain.tld/project/69b41fdce400f65c1c71c0de",
            "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
        }
    },
    "res": {
        "statusCode": 500,
        "headers": {
            "content-length": "693"
        }
    },
    "msg": "GET /project/69b41fdce400f65c1c71c0de/latest/history",
    "time": "2026-03-13T16:24:15.584Z",
    "v": 0
}
{
    "name": "web",
    "hostname": "mydomain.tld",
    "pid": 327635,
    "level": 40,
    "offset": 138,
    "msg": "slow event loop",
    "time": "2026-03-13T16:24:38.146Z",
    "v": 0
}

Could you share the 20 first lines of /var/www/overleaf/variables.env?

$ sudo head -n 20 /var/www/overleaf/variables.env
OVERLEAF_APP_NAME="YunoHost Overleaf Community Edition"

OVERLEAF_PORT=8095
WEB_PORT=8095

DOWNLOAD_HOST=http://127.0.0.1:8081

FILESTORE_DOMAIN_OVERRIDE=http://127.0.0.1:3011
FILESTORE_PORT=3011

V1_HISTORY_URL=http://127.0.0.1:3101/api
V1_HISTORY_PORT=3101

CLSI_PERF_HOST=http://127.0.0.1:3043
CLSI_PERF_PORT=3043

PROJECT_HISTORY_URL=http://127.0.0.1:3055
PROJECT_HISTORY_PORT=3055

OVERLEAF_CONFIG="/var/www/overleaf/settings.js"

Okay it seems ports variables I’ve added doesn’t work entirely. I’ve updated the branch, could you try again

yunohost app upgrade overleaf -u ``https://github.com/YunoHost-Apps/overleaf_ynh/tree/fix`` –debug –force ?

Sadly it doesn’t fix the issue. I have to go now so I will provide more information tomorrow.

Ok so the error looks the same:

$ sudo tail -n 3 /var/log/overleaf/web.log
Set UV_THREADPOOL_SIZE=16
Using default settings from /var/www/overleaf/live/services/web/config settings.defaults.js
Using settings from /var/www/overleaf/settings.js
$ sudo tail -n 3 /var/log/overleaf/clsi.log
{"name":"clsi","hostname":"mydomain.tld","pid":473326,"level":30,"target":"2026-03-16T12:33:25.049Z","msg":"Lifespan limited","time":"2026-03-14T14:11:26.598Z","v":0}
{"name":"clsi","hostname":"mydomain.tld","pid":473326,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner undefined","time":"2026-03-14T14:11:50.030Z","v":0}
{"name":"clsi","hostname":"mydomain.tld","pid":473326,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner undefined","time":"2026-03-14T14:11:51.453Z","v":0}
$ sudo head -n 20 /var/www/overleaf/variables.env
OVERLEAF_APP_NAME="YunoHost Overleaf Community Edition"

OVERLEAF_PORT=8095
WEB_PORT=8095

DOWNLOAD_HOST=http://127.0.0.1:8080

FILESTORE_DOMAIN_OVERRIDE=http://127.0.0.1:3009
FILESTORE_PORT=3009

V1_HISTORY_URL=http://127.0.0.1:3100/api
V1_HISTORY_PORT=3100

CLSI_PERF_HOST=http://127.0.0.1:3043
CLSI_PERF_PORT=3043

PROJECT_HISTORY_URL=http://127.0.0.1:3054
PROJECT_HISTORY_PORT=3054

OVERLEAF_CONFIG="/var/www/overleaf/settings.js"

When I check the ports used however, the 8080 is used by synapse:

$ sudo lsof -i :8095 -i :8080 -i :3009 -i :3100 -i :3043 -i :3054 -i :3013
COMMAND      PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
lk-jwt-se    736  synapse    3u  IPv6   16595      0t0  TCP *:http-alt (LISTEN)
node      471185 overleaf   21u  IPv4 6007238      0t0  TCP localhost:3009 (LISTEN)
node      471374 overleaf   25u  IPv6 6006326      0t0  TCP *:3100 (LISTEN)
node      471756 overleaf   24u  IPv4 6007524      0t0  TCP localhost:3054 (LISTEN)
node      473326 overleaf   22u  IPv4 6019972      0t0  TCP localhost:3013 (LISTEN)
node      473478 overleaf   37u  IPv4 6021641      0t0  TCP localhost:8095 (LISTEN)

Could a port conflict be the issue here ?

Indeed, I’ll check if at least this port can be updated

1 Like

Is this something new ? Overleaf was working fine in February alongside synapse.