Impossible de se connecter à Overleaf / Unable to log into Overleaf

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

Describe your issue

(English below)

Bonsoir,

Je viens de mettre à jour Overleaf, mais je ne peux plus me connecter à mon compte (seul le message “Something went wrong. Please try again.” s’affiche).

Dans les logs d’“overleaf-web” je vois le message suivant :

"name":"web","hostname":"","pid":666,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":336,"req":{"method":"POST","url":"/login","remoteAddress":"","headers":{"referer":"","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0","content-length":"103"}},"res":{"statusCode":500,"headers":{"content-length":"679"}},"msg":"POST /login","time":"2026-06-28T15:33:07.554Z","v":0}

Je vous remercie d’avance pour votre aide.

English version :

Hello,

I just updated Overleaf, and I cannot log into my account anymore (I can only see the message “Something went wrong. Please try again.”).

The following error shows up in the logs of “overleaf-web” :

"name":"web","hostname":"","pid":666,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":336,"req":{"method":"POST","url":"/login","remoteAddress":"","headers":{"referer":"","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0","content-length":"103"}},"res":{"statusCode":500,"headers":{"content-length":"679"}},"msg":"POST /login","time":"2026-06-28T15:33:07.554Z","v":0}

Share relevant logs or error messages

/

To be sure, could you specify from which version you upgraded?

I upgraded from 2026.06.12~ynh1 to which I went back after encountering the error.

Thanks for the info. Do you confirm that reverting back solves the issue?

Yes.

It is always interesting to have the services logs

I have the same problem, but going back to 2026.06.12~ynh1 hasn’t solved it for me. Upgrade to 2026.06.26~ynh1 failed, restore to earlier version 2026.06.12~ynh1 failed as well at first. After rebooting the server, the restore was successful, but accessing the admin panel via overleaf.domain.tld/launchpad is impossible, and takes me to the Overleaf login screen, where I get the error ‘Something went wrong. Please try again.’

I pasted them in my first post. I didn’t see anything interesting in the other services’ logs.

Please make a new thread and share your logs (at least overleaf-web at first) :slight_smile:

This is the overleaf web.log:

{"name":"default","hostname":"cloud.crissp.be","pid":1125260,"level":50,"msg":"Failed to initialise Link Sharing token encryption. Please ensure OVERLEAF_INVITE_TOKEN_SECRET is set.","time":"2026-07-01T14:56:27.250Z","v":0}
Wed, 01 Jul 2026 15:03:27 GMT express deprecated req.acceptsLanguage: Use acceptsLanguages instead at file:/var/www/overleaf/services/web/app/src/infrastructure/Translations.mjs:128:9
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":40,"signal":"SIGTERM","msg":"graceful shutdown: started shutdown sequence","time":"2026-07-01T15:09:06.712Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":30,"stage":"optionalBeforeStoppingTraffic","msg":"graceful shutdown: run handlers","time":"2026-07-01T15:09:06.746Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":40,"msg":"graceful shutdown: closing http server","time":"2026-07-01T15:09:11.747Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":30,"stage":"requiredBeforeDrainingConnections","msg":"graceful shutdown: run handlers","time":"2026-07-01T15:09:11.748Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":30,"stage":"connectionDrainer","msg":"graceful shutdown: run handlers","time":"2026-07-01T15:09:11.748Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":30,"stage":"optionalAfterDrainingConnections","msg":"graceful shutdown: run handlers","time":"2026-07-01T15:09:11.769Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1125260,"level":30,"msg":"graceful shutdown: ready to exit","time":"2026-07-01T15:09:11.770Z","v":0}
Initializing metrics
Set UV_THREADPOOL_SIZE=16
Using default settings from /var/www/overleaf/services/web/config/settings.defaults.js
Using settings from /var/www/overleaf/settings.js
{"name":"default","hostname":"cloud.crissp.be","pid":1137404,"level":50,"msg":"Failed to initialise Link Sharing token encryption. Please ensure OVERLEAF_INVITE_TOKEN_SECRET is set.","time":"2026-07-01T15:11:55.010Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"offset":149,"msg":"slow event loop","time":"2026-07-02T01:00:30.399Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"offset":492,"msg":"slow event loop","time":"2026-07-02T06:57:51.003Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"offset":169,"msg":"slow event loop","time":"2026-07-02T07:09:30.248Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":682,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"111"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:09:30.759Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":354,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"111"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:10:16.429Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":353,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"110"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:10:35.151Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"offset":215,"msg":"slow event loop","time":"2026-07-02T07:11:31.466Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":368,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"110"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:11:39.915Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":355,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"110"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:12:07.916Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":356,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"110"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:12:12.702Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":355,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.242","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"119"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:13:17.689Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":359,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.242","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"119"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:13:29.913Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":359,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.247","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"119"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:14:11.729Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":354,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"110"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:14:25.694Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":329,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.247","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"119"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:15:10.073Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":317,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"111"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:15:13.095Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":313,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"111"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:15:49.300Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":380,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login?","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"111"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:15:55.859Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":346,"req":{"method":"POST","url":"/login","remoteAddress":"185.77.12.112","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15","content-length":"105"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:16:16.761Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":315,"req":{"method":"POST","url":"/login","remoteAddress":"62.235.252.95","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0","content-length":"113"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:17:31.170Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":362,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.242","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"133"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T07:17:40.817Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":50,"err":{"message":"bug: include db.users.analyticsId in projection","name":"Error","stack":"Error: bug: include db.users.analyticsId in projection\n    at _getIdsFromMongoUser (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:526:11)\n    at Object.recordEventForMongoUserInBackground (file:///var/www/overleaf/services/web/app/src/Features/Analytics/AnalyticsManager.mjs:116:22)\n    at _loginAsyncHandlers (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:687:13)\n    at Object._finishLoginAsync [as finishLogin] (file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:211:5)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///var/www/overleaf/services/web/app/src/Features/Authentication/AuthenticationController.mjs:150:13","info":{}},"responseTimeMs":367,"req":{"method":"POST","url":"/login","remoteAddress":"193.190.225.242","headers":{"referer":"https://overleaf.crissp.be/login","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","content-length":"133"}},"res":{"statusCode":500,"headers":{"content-length":"689"}},"msg":"POST /login","time":"2026-07-02T10:56:43.056Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"signal":"SIGTERM","msg":"graceful shutdown: started shutdown sequence","time":"2026-07-02T11:07:16.378Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":30,"stage":"optionalBeforeStoppingTraffic","msg":"graceful shutdown: run handlers","time":"2026-07-02T11:07:16.378Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":40,"msg":"graceful shutdown: closing http server","time":"2026-07-02T11:07:21.379Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":30,"stage":"requiredBeforeDrainingConnections","msg":"graceful shutdown: run handlers","time":"2026-07-02T11:07:21.379Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":30,"stage":"connectionDrainer","msg":"graceful shutdown: run handlers","time":"2026-07-02T11:07:21.380Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":30,"stage":"optionalAfterDrainingConnections","msg":"graceful shutdown: run handlers","time":"2026-07-02T11:07:21.472Z","v":0}
{"name":"web","hostname":"cloud.crissp.be","pid":1137404,"level":30,"msg":"graceful shutdown: ready to exit","time":"2026-07-02T11:07:21.472Z","v":0}
Initializing metrics
Set UV_THREADPOOL_SIZE=16
Using default settings from /var/www/overleaf/services/web/config/settings.defaults.js
Using settings from /var/www/overleaf/settings.js
{"name":"default","hostname":"cloud.crissp.be","pid":9678,"level":50,"msg":"Failed to initialise Link Sharing token encryption. Please ensure OVERLEAF_INVITE_TOKEN_SECRET is set.","time":"2026-07-02T18:06:14.823Z","v":0}
Thu, 02 Jul 2026 18:17:43 GMT express deprecated req.acceptsLanguage: Use acceptsLanguages instead at file:/var/www/overleaf/services/web/app/src/infrastructure/Translations.mjs:128:9
{"name":"web","hostname":"cloud.crissp.be","pid":9678,"level":40,"offset":305,"msg":"slow event loop","time":"2026-07-02T18:17:44.373Z","v":0}

I upgraded to the latest version again, but I get the error “Something went wrong. Please try again” when trying to log in to overleaf. Logs are here: yunopaste

Are you sure those are the latest logs?

Something like Failed to initialise Link Sharing token encryption. Please ensure OVERLEAF_INVITE_TOKEN_SECRET is set.

Should have been fixed in the meantime

Yes, but the latest token secret error was yesterday at 13:23h, that was before I re-upgraded to version 2026.06.26~ynh1. Just made checked the latest log here: yunopaste. It still shows the analytics error.

There seems to be an issue upstream. Could you try the proposed fix? I’ll try to incorporate it in the package soon

The fix suggests changing a line in server-ce/config/settings.js, but I struggle to find the equivalent of that on YNH. I did locate a file production.json in the folder /var/www/overleaf/server-ce/config, but its contents does not include the line to be changed (module.exports.projectInviteEncryptorOptions = {), so I’m a bit hesitant to start tinkering with this.

Would that be the right place to add the new lines?

Indeed it’s not the right place. The settings.js is located in /var/www/overleaf in YunoHost installations.

I’m testing the fix in the package: fix upstream by Thovi98 · Pull Request #268 · YunoHost-Apps/overleaf_ynh · GitHub

I applied the fix, restarted the service overleaf-web, but I still get “something went wrong”.

Could you share logs of all the services? (At least -web and -clsi at first)

@Tho It think this might be related to the bug with a missing analyticsId field in db for users created with “older” overleaf version :

Yeah I’ve find some of the analyticsID stuff changed in the latests commits. I’m wondering if it’s an upstream issue or if this can be fixed on packaging side?