YunoHost-Apps / overleaf_ynh

GNU Affero General Public License v3.0
2 stars 5 forks source link

impossible to install on x86 (mongodb fails) #17

Open ndx1905-github opened 1 year ago

ndx1905-github commented 1 year ago

Describe the bug

Installation script fails

Context

Steps to reproduce

Logs

Info: Installing overleaf... Info: [+...................] > Validating installation parameters... Info: [#+..................] > Storing installation settings... Info: [##+.................] > Finding an available port... Info: [###+................] > Installing dependencies... Warning: update-language: texlive-base not installed and configured, doing nothing! Warning: Running updmap-sys. This may take some time... done. Warning: Running mktexlsr /var/lib/texmf ... done. Warning: Building format(s) --all. Warning: This may take some time... done. Info: Installing MongoDB... Info: Installing MongoDB Community Edition... Warning: (this may take some time) Warning: The service mongod didn't fully executed the action restart before the timeout. Warning: Please find here an extract of the end of the log of the service mongod: Warning: Aug 22 05:10:17 systemd[1]: Started MongoDB Database Server. Warning: Aug 22 05:10:19 mongod[2052904]: {"t":{"$date":"2023-08-22T05:10:19.074Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"} Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Failed with result 'exit-code'. Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Consumed 1.039s CPU time. Warning: Aug 22 05:40:44 systemd[1]: Started MongoDB Database Server. Warning: Aug 22 05:40:46 mongod[2064065]: {"t":{"$date":"2023-08-22T05:40:46.129Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"} Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Failed with result 'exit-code'. Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Consumed 1.114s CPU time. Warning: Aug 22 05:47:58 systemd[1]: Started MongoDB Database Server. Warning: Aug 22 05:48:02 mongod[515]: {"t":{"$date":"2023-08-22T05:48:02.971Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"} Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Failed with result 'exit-code'. Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Consumed 1.183s CPU time. Warning: Aug 22 06:04:06 systemd[1]: Started MongoDB Database Server. Warning: Aug 22 06:04:07 mongod[9006]: {"t":{"$date":"2023-08-22T06:04:07.258Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"} Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Failed with result 'exit-code'. Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Consumed 1.352s CPU time. Warning: --- Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784930, "ctx":"initandlisten","msg":"Shutting down the storage engine"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"initandlisten","msg":"Shutting down journal flusher thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"initandlisten","msg":"Finished shutting down journal flusher thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"initandlisten","msg":"Shutting down checkpoint thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"initandlisten","msg":"Finished shutting down checkpoint thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"initandlisten","msg":"Deregistering all the collections"} Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"initandlisten","msg":"WiredTigerKVEngine shutting down"} Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"initandlisten","msg":"Shutting down session sweeper thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"initandlisten","msg":"Finished shutting down session sweeper thread"} Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"initandlisten","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}} Warning: {"t":{"$date":"2023-08-22T06:04:09.093+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"initandlisten","msg":"WiredTiger closed","attr":{"durationMillis":77}} Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"initandlisten","msg":"shutdown: removing fs lock..."} Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"} Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"} Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":62}} Info: [####+...............] > Configuring system user... Info: [#####+..............] > Creating a MongoDB database... Warning: ynh_mongo_db: line 96: mongo: command not found 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 20230822-060227-app_install-overleaf' to get help Warning: Here's an extract of the logs before the crash. It might help debugging the error: Info: DEBUG - + db_pwd=** Info: DEBUG - + ynh_mongo_create_user --db_user=overleaf --db_pwd=** --db_name=overleaf Info: DEBUG - + ynh_mongo_exec --database=overleaf '--command=db.createUser( { user: "overleaf", pwd: "**", roles: [ { role: "readWrite", db: "overleaf" } ] } );' Info: DEBUG - + user= Info: DEBUG - + password= Info: DEBUG - + authenticationdatabase= Info: DEBUG - + database=overleaf Info: DEBUG - + host= Info: DEBUG - + port= Info: DEBUG - + eval=0 Info: DEBUG - + '[' -n '' ']' Info: DEBUG - + password= Info: DEBUG - + authenticationdatabase= Info: DEBUG - + '[' -n '' ']' Info: DEBUG - + '[' -n '' ']' Info: DEBUG - + '[' -n overleaf ']' Info: DEBUG - + database='use overleaf' Info: DEBUG - + mongo --quiet Info: WARNING - ynh_mongo_db: line 96: mongo: command not found Info: DEBUG - + ynh_exit_properly Warning: Removing the app after installation failure... Info: [....................] > Loading installation settings... Info: [+...................] > Stopping and removing the systemd service... Info: [#+..................] > Removing logrotate configuration... Info: [##+.................] > Removing the MongoDB database... Warning: ynh_mongo_db: line 110: mongo: command not found Warning: ynh_mongo_db: line 198: [: -lt: unary operator expected Warning: ynh_mongo_db: line 96: mongo: command not found Warning: ynh_mongo_db: line 96: mongo: command not found Info: [###+................] > Removing app main directory... Warning: ynh_secure_remove called with empty argument, ignoring. Info: [####+...............] > Removing NGINX web server configuration... Info: '/etc/nginx/conf.d/latex.ynh.fr.d/overleaf.conf' wasn't deleted because it doesn't exist. Info: [#####+..............] > Removing dependencies... Info: [######+.............] > Removing various files... Info: '/var/log/overleaf' wasn't deleted because it doesn't exist. Info: [#######+............] > Removing the dedicated system user... Info: [########+...........] > Removal of overleaf completed 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 20230822-060227-app_install-overleaf' to get help