Pages : 1
#1 Le 30/10/2020, à 01:01
- fredchess
lancement de mongo db impossible sur ubuntu 20.04
Salut a tous.
je suis sous ubuntu 20.04 et j'ai envie de travailler avec laravel sauf que MySQL(et mariadb) me fait donne a chaque fois des insomnies. Quand je l'installe il fonctionnait parfaitement mais a chaque fois que je redemarrais le systeme il plantait (D'ailleurs je ne sais pas exactemnt si le redemarrage d'Ubuntu avait quelque chose a y voir). Bref j'ai donc desider de travailler avec Mongodb et voir ce que ca donne; j'ai installé suivant les etapes de la doc(https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/) mais lorsque je veux le lancer, rien ne fonctionne comme prevu. Voici quelques retours que j'ai:
sudo systemctl status mongod
me donne ceci:
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset>
Active: failed (Result: exit-code) since Fri 2020-10-30 00:55:40 WAT; 5s a>
Docs: https://docs.mongodb.org/manual
Process: 895658 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=e>
Main PID: 895658 (code=exited, status=14)
oct. 30 00:55:39 fredchess systemd[1]: Started MongoDB Database Server.
oct. 30 00:55:40 fredchess systemd[1]: mongod.service: Main process exited, cod>
oct. 30 00:55:40 fredchess systemd[1]: mongod.service: Failed with result 'exit>
lines 1-10/10 (END)...skipping...
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-10-30 00:55:40 WAT; 5s ago
Docs: https://docs.mongodb.org/manual
Process: 895658 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
Main PID: 895658 (code=exited, status=14)
oct. 30 00:55:39 fredchess systemd[1]: Started MongoDB Database Server.
oct. 30 00:55:40 fredchess systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
oct. 30 00:55:40 fredchess systemd[1]: mongod.service: Failed with result 'exit-code'.
mogo
me donne ceci:
MongoDB shell version v4.4.1
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1
et
mongod
ceci:
{"t":{"$date":"2020-10-30T00:58:37.037+01:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":900633,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"fredchess"}}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.1","gitVersion":"ad91a93a5a31e175f5cbf8c69561e788bbc55ce1","openSSLVersion":"OpenSSL 1.1.1f 31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"E", "c":"NETWORK", "id":23024, "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}}
{"t":{"$date":"2020-10-30T00:58:37.087+01:00"},"s":"F", "c":"-", "id":23091, "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":40486,"file":"src/mongo/transport/transport_layer_asio.cpp","line":919}}
{"t":{"$date":"2020-10-30T00:58:37.088+01:00"},"s":"F", "c":"-", "id":23092, "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
je suis perdu depuis hier et je ne sais pas quoi faire. SVP si quelqu'un aune solution a me proposer je lui en serais tres reconnaissant.
Hors ligne
#2 Le 30/10/2020, à 12:36
- Vobul
Re : lancement de mongo db impossible sur ubuntu 20.04
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne
Pages : 1