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