Yes it’s new… I’ve updated the branch, could you try again? If it doesn’t work, I’ll have to find another way (like otm33 proposed before), but I’d prefer to stick as much as possible to upstream for package maintenance.
And sadly I can’t test it myself due to mongo require a processor with avx, which I don’t have.
Ok so the issue stays. As far as I can see the issue might be that the DOWNLOAD_HOST=http://127.0.0.1:8081 does not seems to be up:
sudo lsof -i :8095 -i :8080 -i :3009 -i :3100 -i :3043 -i :3054 -i :3013 -i :8081
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lk-jwt-se 736 synapse 3u IPv6 16595 0t0 TCP *:http-alt (LISTEN)
node 520292 overleaf 21u IPv4 7213887 0t0 TCP localhost:3009 (LISTEN)
node 520481 overleaf 25u IPv6 7214465 0t0 TCP *:3100 (LISTEN)
node 520863 overleaf 24u IPv4 7214653 0t0 TCP localhost:3054 (LISTEN)
node 521737 overleaf 37u IPv4 7218937 0t0 TCP localhost:8095 (LISTEN)
node 521877 overleaf 22u IPv4 7221372 0t0 TCP localhost:3013 (LISTEN)
$ sudo lsof -i :8081
The last command returns empty.
By the way I have no “clsi” entry in my settings.js file, is that expected ?
$ sudo cat /var/www/overleaf/settings.js | grep -A 20 'apis: {'
apis: {
web: {
url: 'http://127.0.0.1:8095',
user: httpAuthUser,
pass: httpAuthPass,
},
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',
user: 'staging',
pass: process.env.STAGING_PASSWORD,
requestTimeout: parseInt(
process.env.OVERLEAF_HISTORY_V1_HTTP_REQUEST_TIMEOUT || '300000', // default is 5min
10
),
},
},
notifications: undefined,
Indeed, it seems that the port is not changed here (it seems to be the only place where it is hardcoded).
It is expected, as for now it follows the upstream. But I guess I’ve to adapt it. Before that, could you try to adapt the file /var/www/overleaf/live/services/web/config/settings.defaults.js at line 245 and change 8080 by 8081 then restart overleaf services?
Sorry, I couldn’t get it working.
$ sudo cat /var/www/overleaf/live/services/web/config/settings.defaults.js | grep 8081 -B 4 -A 4
clsi: {
url: `http://${process.env.CLSI_HOST || '127.0.0.1'}:3013`,
downloadHost: process.env.CLSI_LB_IP
? `http://${process.env.CLSI_LB_IP}:80`
: `http://${process.env.DOWNLOAD_HOST || '127.0.0.1'}:8081`,
backendGroupName: undefined,
submissionBackendClass:
process.env.CLSI_SUBMISSION_BACKEND_CLASS || 'c3d',
},
$ sudo systemctl restart 'overleaf-*'
$ sudo lsof -i :8095 -i :8080 -i :3009 -i :3100 -i :3043 -i :3054 -i :3013 -i :8081
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lk-jwt-se 736 synapse 3u IPv6 16595 0t0 TCP *:http-alt (LISTEN)
node 572933 overleaf 24u IPv4 7555048 0t0 TCP localhost:3054 (LISTEN)
node 572942 overleaf 22u IPv4 7555020 0t0 TCP localhost:3013 (LISTEN)
node 572946 overleaf 25u IPv6 7564112 0t0 TCP *:3100 (LISTEN)
node 572956 overleaf 21u IPv4 7564102 0t0 TCP localhost:3009 (LISTEN)
node 573041 overleaf 38u IPv4 7564212 0t0 TCP localhost:8095 (LISTEN)
$ sudo lsof -i :8081
$ 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: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"
$ sudo cat /var/www/overleaf/settings.js | grep DOWNLOAD_HOST
$ sudo cat /var/www/overleaf/settings.js | grep 8080
$ sudo cat /var/www/overleaf/settings.js | grep 8081
$ sudo cat /var/www/overleaf/settings.js | grep -A 20 'apis: {'
apis: {
web: {
url: 'http://127.0.0.1:8095',
user: httpAuthUser,
pass: httpAuthPass,
},
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',
user: 'staging',
pass: process.env.STAGING_PASSWORD,
requestTimeout: parseInt(
process.env.OVERLEAF_HISTORY_V1_HTTP_REQUEST_TIMEOUT || '300000', // default is 5min
10
),
},
},
notifications: undefined,
I’m available for more trials if needed.
Maybe I could set you up a small instance on a VPN so you wouldn’t have to wait for me every time ?
It could be a good idea!
@Tho Do you know why clsi_perf is needed ? Is it just another instance of clsi ?
Could you take a look at / try this PR ? Based on @Tho 's one.
I got overleaf working (upgrade from version “2026.03.05~ynh1” with non working compilation).
Good question, I don’t find much info about it.
Could some of you try the testing branch:
yunohost app upgrade overleaf -u ``https://github.com/YunoHost-Apps/overleaf_ynh/tree/testing`` --debug ? I’ve made various tests and it should work great.
I removed it and it works smoothly without it.
Successfully upgraded (from fix_2) and it works.
I’ve been using it for two days, and it works great, thanks a lot. The tlmgr integration is awesome !
Latest update works for me as well.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.