Another fail with Overleaf (fail to restaure, because of jq, then fail to reinstall)

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: Yunohost 12
What app is this about: Overleaf

Describe your issue

After an upgrade of Overleaf, the app was actually removed, and I cannot restore the previous backup nor can I reinstall it.

Here is the log after trying to install: https://paste.yunohost.org/raw/egisesuzuw

Regarding the restore issue, it seems to come from this line :

Auto-load Nodejs path tweaks if this app uses the nodejs resource in the manifest

if [ -n “${nodejs_version:-}” ] && (cat “$YNH_APP_BASEDIR/manifest.toml” | toml_to_json | jq -q “.resources.nodejs” > /dev/null); then
_ynh_load_nodejs_in_path_and_other_tweaks
fi

see the log : hastebin in particular this error:

2025-03-25 12:20:46,086: WARNING - /usr/share/yunohost/helpers.v2.1.d/nodejs: line 49: toml_to_json: command not found
2025-03-25 12:20:46,087: WARNING - jq: Unknown option -q
2025-03-25 12:20:46,087: WARNING - Use jq --help for help with command-line options,
2025-03-25 12:20:46,088: WARNING - or see the jq manpage, or online docs at Redirecting to jqlang.github.io

PS I don’t have overleaf in the list of tags!!

Share relevant logs or error messages

I cannot find a package that provides toml_to_json command… any suggestion?

Regarding jq and it’s option -q… I guess I can try to remove the option for now.

Please see 👾 YunoHost 12.1 testing - #44 by tituspijean

Ah ok.

Is there a way to go back to non-testing? I don’t know why I’m still in testing actually (I mean none of my source files contain the keyword testing in it).

lejocelyn_admin@serveur:/etc/apt$ grep -nr testing /etc/apt/sources.list*
lejocelyn_admin@serveur:/etc/apt$

Even after the update, I still get this failling install process when I try to reinstall Overleaf. I’m not sure what to do:

Info: Installing overleaf…
Info: Provisioning sources…
Info: Provisioning system_user…
Info: Provisioning install_dir…
Info: Provisioning data_dir…
Info: Provisioning permissions…
Info: Synchronizing forgejo users
Info: Synchronizing forgejo users
Info: Provisioning ports…
Info: Provisioning apt…
Info: Installing MongoDB Community Edition …
Info: The service mongod has correctly executed the action restart.
Info: [++…] > Creating a MongoDB database…
Info: The service mongod has correctly executed the action stop.
Warning: (this may take some time)
Warning: The service mongod didn’t fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service mongod:
Warning: Apr 01 10:23:12 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 01 10:23:12 mongod[277302]: {“t”:{“$date”:“2025-04-01T09:23:12.920Z”},“s”:“I”, “c”:“CONTROL”, “id”:7484500, “ctx”:“main”,“msg”:“Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false”}
Warning: Apr 01 10:23:12 mongod[277302]: {“t”:{“$date”:“2025-04-01T09:23:12.921Z”},“s”:“F”, “c”:“CONTROL”, “id”:20574, “ctx”:“main”,“msg”:“Error during global initialization”,“attr”:{“error”:{“code”:38,“codeName”:“FileNotOpen”,“errmsg”:“Can’t initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log”}}}
Warning: Apr 01 10:23:12 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 01 10:23:12 systemd[1]: mongod.service: Failed with result ‘exit-code’.
Warning: Apr 06 11:52:02 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 06 11:52:02 mongod[483993]: {“t”:{“$date”:“2025-04-06T10:52:02.892Z”},“s”:“I”, “c”:“CONTROL”, “id”:7484500, “ctx”:“main”,“msg”:“Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false”}
Warning: Apr 06 11:52:02 mongod[483993]: {“t”:{“$date”:“2025-04-06T10:52:02.892Z”},“s”:“F”, “c”:“CONTROL”, “id”:20574, “ctx”:“main”,“msg”:“Error during global initialization”,“attr”:{“error”:{“code”:38,“codeName”:“FileNotOpen”,“errmsg”:“Can’t initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log”}}}
Warning: Apr 06 11:52:02 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 06 11:52:02 systemd[1]: mongod.service: Failed with result ‘exit-code’.
Warning: Apr 06 12:29:27 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 06 12:29:27 mongod[488951]: {“t”:{“$date”:“2025-04-06T11:29:27.110Z”},“s”:“I”, “c”:“CONTROL”, “id”:7484500, “ctx”:“main”,“msg”:“Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false”}
Warning: Apr 06 12:29:30 systemd[1]: Stopping mongod.service - MongoDB Database Server…
Warning: Apr 06 12:29:31 systemd[1]: mongod.service: Deactivated successfully.
Warning: Apr 06 12:29:31 systemd[1]: Stopped mongod.service - MongoDB Database Server.
Warning: Apr 06 12:29:31 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 06 12:29:31 mongod[489835]: Unrecognized option: processManagement.replSetName
Warning: Apr 06 12:29:31 mongod[489835]: try ‘/usr/bin/mongod --help’ for more information
Warning: Apr 06 12:29:31 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Warning: Apr 06 12:29:31 systemd[1]: mongod.service: Failed with result ‘exit-code’.
Warning: ===
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22320, “ctx”:“SignalHandler”,“msg”:“Shutting down journal flusher thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22321, “ctx”:“SignalHandler”,“msg”:“Finished shutting down journal flusher thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22322, “ctx”:“SignalHandler”,“msg”:“Shutting down checkpoint thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22323, “ctx”:“SignalHandler”,“msg”:“Finished shutting down checkpoint thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22261, “ctx”:“SignalHandler”,“msg”:“Timestamp monitor shutting down”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:20282, “ctx”:“SignalHandler”,“msg”:“Deregistering all the collections”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22317, “ctx”:“SignalHandler”,“msg”:“WiredTigerKVEngine shutting down”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22318, “ctx”:“SignalHandler”,“msg”:“Shutting down session sweeper thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.949+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22319, “ctx”:“SignalHandler”,“msg”:“Finished shutting down session sweeper thread”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.957+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:4795902, “ctx”:“SignalHandler”,“msg”:“Closing WiredTiger”,“attr”:{“closeConfig”:“leak_memory=true,use_timestamp=false,”}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:30.959+01:00”},“s”:“I”, “c”:“WTCHKPT”, “id”:22430, “ctx”:“SignalHandler”,“msg”:“WiredTiger message”,“attr”:{“message”:{“ts_sec”:1743938970,“ts_usec”:959835,“thread”:“488951:0x7fe8f7b056c0”,“session_name”:“close_ckpt”,“category”:“WT_VERB_CHECKPOINT_PROGRESS”,“category_id”:6,“verbose_level”:“DEBUG_1”,“verbose_level_id”:1,“msg”:“saving checkpoint snapshot min: 47, snapshot max: 47 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 1”}}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.002+01:00”},“s”:“I”, “c”:“WTRECOV”, “id”:22430, “ctx”:“SignalHandler”,“msg”:“WiredTiger message”,“attr”:{“message”:{“ts_sec”:1743938971,“ts_usec”:2906,“thread”:“488951:0x7fe8f7b056c0”,“session_name”:“WT_CONNECTION.close”,“category”:“WT_VERB_RECOVERY_PROGRESS”,“category_id”:30,“verbose_level”:“DEBUG_1”,“verbose_level_id”:1,“msg”:“shutdown checkpoint has successfully finished and ran for 44 milliseconds”}}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.003+01:00”},“s”:“I”, “c”:“WTRECOV”, “id”:22430, “ctx”:“SignalHandler”,“msg”:“WiredTiger message”,“attr”:{“message”:{“ts_sec”:1743938971,“ts_usec”:3053,“thread”:“488951:0x7fe8f7b056c0”,“session_name”:“WT_CONNECTION.close”,“category”:“WT_VERB_RECOVERY_PROGRESS”,“category_id”:30,“verbose_level”:“DEBUG_1”,“verbose_level_id”:1,“msg”:“shutdown was completed successfully and took 45ms, including 0ms for the rollback to stable, and 44ms for the checkpoint.”}}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:4795901, “ctx”:“SignalHandler”,“msg”:“WiredTiger closed”,“attr”:{“durationMillis”:60}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“STORAGE”, “id”:22279, “ctx”:“SignalHandler”,“msg”:“shutdown: removing fs lock…”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“-”, “id”:4784931, “ctx”:“SignalHandler”,“msg”:“Dropping the scope cache for shutdown”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“FTDC”, “id”:20626, “ctx”:“SignalHandler”,“msg”:“Shutting down full-time diagnostic data capture”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.019+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:20565, “ctx”:“SignalHandler”,“msg”:“Now exiting”}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.020+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:8423404, “ctx”:“SignalHandler”,“msg”:“mongod shutdown complete”,“attr”:{“Summary of time elapsed”:{“Statistics”:{“Enter terminal shutdown”:“0 ms”,“Step down the replication coordinator for shutdown”:“0 ms”,“Time spent in quiesce mode”:“0 ms”,“Shut down FLE Crud subsystem”:“0 ms”,“Shut down MirrorMaestro”:“0 ms”,“Shut down WaitForMajorityService”:“0 ms”,“Shut down the logical session cache”:“0 ms”,“Shut down the transport layer”:“1 ms”,“Shut down the global connection pool”:“0 ms”,“Shut down the flow control ticket holder”:“0 ms”,“Kill all operations for shutdown”:“0 ms”,“Shut down all tenant migration access blockers on global shutdown”:“0 ms”,“Shut down all open transactions”:“0 ms”,“Acquire the RSTL for shutdown”:“0 ms”,“Shut down the IndexBuildsCoordinator and wait for index builds to finish”:“0 ms”,“Shut down the replica set monitor”:“0 ms”,“Shut down the migration util executor”:“0 ms”,“Shut down the health log”:“0 ms”,“Shut down the TTL monitor”:“0 ms”,“Shut down expired pre-images and documents removers”:“0 ms”,“Shut down the storage engine”:“68 ms”,“Wait for the oplog cap maintainer thread to stop”:“0 ms”,“Shut down full-time data capture”:“0 ms”,“shutdownTask total elapsed time”:“72 ms”}}}}
Warning: {“t”:{“$date”:“2025-04-06T12:29:31.020+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:23138, “ctx”:“SignalHandler”,“msg”:“Shutting down”,“attr”:{“exitCode”:0}}
Warning: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Error: Unable to install overleaf: An error occurred inside the app installation script
Info: The operation ‘Install the ‘overleaf’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250406-112849-app_install-overleaf’ to get help
Warning: Here’s an extract of the logs before the crash. It might help debugging the error:
Info: WARNING - {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“-”, “id”:4784931, “ctx”:“SignalHandler”,“msg”:“Dropping the scope cache for shutdown”}
Info: WARNING - {“t”:{“$date”:“2025-04-06T12:29:31.017+01:00”},“s”:“I”, “c”:“FTDC”, “id”:20626, “ctx”:“SignalHandler”,“msg”:“Shutting down full-time diagnostic data capture”}
Info: WARNING - {“t”:{“$date”:“2025-04-06T12:29:31.019+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:20565, “ctx”:“SignalHandler”,“msg”:“Now exiting”}
Info: WARNING - {“t”:{“$date”:“2025-04-06T12:29:31.020+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:8423404, “ctx”:“SignalHandler”,“msg”:“mongod shutdown complete”,“attr”:{“Summary of time elapsed”:{“Statistics”:{“Enter terminal shutdown”:“0 ms”,“Step down the replication coordinator for shutdown”:“0 ms”,“Time spent in quiesce mode”:“0 ms”,“Shut down FLE Crud subsystem”:“0 ms”,“Shut down MirrorMaestro”:“0 ms”,“Shut down WaitForMajorityService”:“0 ms”,“Shut down the logical session cache”:“0 ms”,“Shut down the transport layer”:“1 ms”,“Shut down the global connection pool”:“0 ms”,“Shut down the flow control ticket holder”:“0 ms”,“Kill all operations for shutdown”:“0 ms”,“Shut down all tenant migration access blockers on global shutdown”:“0 ms”,“Shut down all open transactions”:“0 ms”,“Acquire the RSTL for shutdown”:“0 ms”,“Shut down the IndexBuildsCoordinator and wait for index builds to finish”:“0 ms”,“Shut down the replica set monitor”:“0 ms”,“Shut down the migration util executor”:“0 ms”,“Shut down the health log”:“0 ms”,“Shut down the TTL monitor”:“0 ms”,“Shut down expired pre-images and documents removers”:“0 ms”,“Shut down the storage engine”:“68 ms”,“Wait for the oplog cap maintainer thread to stop”:“0 ms”,“Shut down full-time data capture”:“0 ms”,“shutdownTask total elapsed time”:“72 ms”}}}}
Info: WARNING - {“t”:{“$date”:“2025-04-06T12:29:31.020+01:00”},“s”:“I”, “c”:“CONTROL”, “id”:23138, “ctx”:“SignalHandler”,“msg”:“Shutting down”,“attr”:{“exitCode”:0}}
Info: DEBUG - + ‘[’ start == reload ‘]’
Info: DEBUG - + ‘[’ start == start ‘]’
Info: DEBUG - + systemctl --quiet is-active mongod
Info: DEBUG - + _ynh_clean_check_starting
Info: DEBUG - + ‘[’ -n 489829 ‘]’
Info: DEBUG - + kill -SIGTERM 489829
Info: DEBUG - + ‘[’ -n /tmp/tmp.67oIDI5Ddr ‘]’
Info: DEBUG - + ynh_safe_rm /tmp/tmp.67oIDI5Ddr
Info: DEBUG - + local target=/tmp/tmp.67oIDI5Ddr
Info: DEBUG - + ynh_mongo_exec ‘–command=rs.initiate()’
Info: DEBUG - + database=
Info: DEBUG - + ‘[’ -n ‘’ ‘]’
Info: DEBUG - + mongosh --quiet ‘–eval=rs.initiate()’
Info: WARNING - MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure…
Info: [++++++++++…] > Removing system configurations related to overleaf…
Info: ‘/etc/nginx/conf.d/overleaf.jocelynaznar.eu.d/overleaf.conf’ wasn’t deleted because it doesn’t exist.
Info: The service mongod has correctly executed the action start.
Warning: Database overleaf not found
Info: Removing MongoDB service…
Warning: /usr/share/yunohost/helpers.v2.1.d/nodejs: line 108: N_PREFIX: readonly variable
Info: [####################] > Removal of overleaf completed
Info: Deprovisioning apt…
Info: Deprovisioning ports…
Info: Deprovisioning permissions…
Info: Deprovisioning data_dir…
Info: Deprovisioning install_dir…
Info: Deprovisioning system_user…
Info: Deprovisioning sources…
Error: The operation ‘Install the ‘overleaf’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250406-112849-app_install-overleaf’ to get help

Any suggestion to help making the restoration of Overleaf?

Please post your logs via yunopaste.
What’s your Yunohost version?

Here is the output of the restore command:

lejocelyn_admin@serveur:~$ sudo yunohost backup restore overleaf-pre-upgrade2
Info: Preparing archive for restoration…
Info: Restoring overleaf…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Info: [+++.................] > Restoring the app main directory...
Info: [###+++..............] > Restoring the data directory...
Info: Skipping /home/yunohost.app/overleaf which doesn't exists in the archive, probably because restoring from a safety-backup-before-upgrade
Info: Installing MongoDB Community Edition ...
Warning: E: No packages found
Error: Could not restore overleaf: An error occured inside the app restore script
Info: The operation 'Restore 'overleaf' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250412-085800-backup_restore_app-overleaf' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + _ynh_apt_install mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh
Info: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh
Info: DEBUG - + _ynh_wait_dpkg_free
Info: DEBUG - + return 0
Info: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh
Info: DEBUG - Reading package lists...
Info: DEBUG - Building dependency tree...
Info: DEBUG - Reading state information...
Info: DEBUG - mongodb-org is already the newest version (7.0.18).
Info: DEBUG - mongodb-org-server is already the newest version (7.0.18).
Info: DEBUG - mongodb-org-tools is already the newest version (7.0.18).
Info: DEBUG - mongodb-mongosh is already the newest version (2.5.0).
Info: DEBUG - The following package was automatically installed and is no longer required:
Info: DEBUG -   optipng
Info: DEBUG - Use 'sudo apt autoremove' to remove it.
Info: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Info: DEBUG - + (( 0 == 0 ))
Info: DEBUG - + apt-mark auto
Info: WARNING - E: No packages found
Info: DEBUG - + ynh_exit_properly
Info: Removing overleaf…
Info: [++++++++++..........] > Removing system configurations related to overleaf...
Info: '/etc/nginx/conf.d/overleaf.jocelynaznar.eu.d/overleaf.conf' wasn't deleted because it doesn't exist.
Warning: (this may take some time)
Warning: The service mongod didn't fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service mongod:
Warning: Apr 11 10:44:26 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 11 10:44:26 mongod[174472]: {"t":{"$date":"2025-04-11T09:44:26.856Z"},"s":"I",  "c":"CONTROL",  "id":7484500, "ctx":"main","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"}
Warning: Apr 11 10:44:26 mongod[174472]: {"t":{"$date":"2025-04-11T09:44:26.856Z"},"s":"F",  "c":"CONTROL",  "id":20574,   "ctx":"main","msg":"Error during global initialization","attr":{"error":{"code":38,"codeName":"FileNotOpen","errmsg":"Can't initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log"}}}
Warning: Apr 11 10:44:26 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 11 10:44:26 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Apr 12 09:07:22 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 12 09:07:22 mongod[211539]: {"t":{"$date":"2025-04-12T08:07:22.335Z"},"s":"I",  "c":"CONTROL",  "id":7484500, "ctx":"main","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"}
Warning: Apr 12 09:07:22 mongod[211539]: {"t":{"$date":"2025-04-12T08:07:22.335Z"},"s":"F",  "c":"CONTROL",  "id":20574,   "ctx":"main","msg":"Error during global initialization","attr":{"error":{"code":38,"codeName":"FileNotOpen","errmsg":"Can't initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log"}}}
Warning: Apr 12 09:07:22 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 12 09:07:22 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Apr 12 09:11:12 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 12 09:11:12 mongod[215152]: {"t":{"$date":"2025-04-12T08:11:12.410Z"},"s":"I",  "c":"CONTROL",  "id":7484500, "ctx":"main","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"}
Warning: Apr 12 09:11:12 mongod[215152]: {"t":{"$date":"2025-04-12T08:11:12.411Z"},"s":"F",  "c":"CONTROL",  "id":20574,   "ctx":"main","msg":"Error during global initialization","attr":{"error":{"code":38,"codeName":"FileNotOpen","errmsg":"Can't initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log"}}}
Warning: Apr 12 09:11:12 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 12 09:11:12 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Apr 12 09:58:28 systemd[1]: Started mongod.service - MongoDB Database Server.
Warning: Apr 12 09:58:28 mongod[219642]: {"t":{"$date":"2025-04-12T08:58:28.733Z"},"s":"I",  "c":"CONTROL",  "id":7484500, "ctx":"main","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"}
Warning: Apr 12 09:58:28 mongod[219642]: {"t":{"$date":"2025-04-12T08:58:28.734Z"},"s":"F",  "c":"CONTROL",  "id":20574,   "ctx":"main","msg":"Error during global initialization","attr":{"error":{"code":38,"codeName":"FileNotOpen","errmsg":"Can't initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongod.log"}}}
Warning: Apr 12 09:58:28 systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Warning: Apr 12 09:58:28 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Warning: /usr/share/yunohost/helpers.v2.1.d/mongodb: line 131: [: : integer expression expected
Warning: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Warning: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Info: Removing MongoDB service...
Warning: ERROR Unknown service 'mongod'
Info: '/var/lib/mongodb' wasn't deleted because it doesn't exist.
Info: '/var/log/mongodb' wasn't deleted because it doesn't exist.
Warning: /usr/share/yunohost/helpers.v2.1.d/nodejs: line 108: N_PREFIX: readonly variable
Info: [####################] > Removal of overleaf completed
Info: Deprovisioning apt...
Info: Deprovisioning ports...
Info: Deprovisioning permissions...
Info: Deprovisioning data_dir...
Info: Deprovisioning install_dir...
Info: Deprovisioning system_user...
Info: Deprovisioning sources...
Success! overleaf uninstalled
Error: The operation 'Restore 'overleaf' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250412-085800-backup_restore_app-overleaf' to get help
Error: Nothing was restored

My version is : YunoHost is 12.1.4 (testing).

I’m not sure why I was in testing before, as before trying to solve this issue, I didn’t have any testing in my source list file. I added it recently to try to fix this error though.

It’s still a YunoHost testing issue I think

and I guess I cannot go back (reverse all the packages) to Yunohost stable?

Not as I know, sorry

Well, I guess the best is to backup everything and reinstall Yunohost from scratch then and restore the backups then.

Or wait for the next testing release :wink: