Advertisement
kopyl

Untitled

Mar 22nd, 2021
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. root@366956-cr21510:~# systemctl restart mongodb
  2. root@366956-cr21510:~# mongo
  3. MongoDB shell version v3.6.3
  4. connecting to: mongodb://127.0.0.1:27017
  5. 2021-03-22T16:34:37.670+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
  6. 2021-03-22T16:34:37.670+0200 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
  7. connect@src/mongo/shell/mongo.js:251:13
  8. @(connect):1:6
  9. exception: connect failed
  10. root@366956-cr21510:~# sudo service mongodb status
  11. ● mongodb.service - An object/document-oriented database
  12. Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
  13. Active: failed (Result: exit-code) since Mon 2021-03-22 16:34:34 EET; 7s ago
  14. Docs: man:mongod(1)
  15. Process: 28073 ExecStart=/usr/bin/mongod --unixSocketPrefix=${SOCKETPATH} --config ${CONF} $DAEMON_OPTS (code=exited, status=1/FAILURE)
  16. Main PID: 28073 (code=exited, status=1/FAILURE)
  17.  
  18. Mar 22 16:34:34 366956-cr21510.tmweb.ru systemd[1]: Started An object/document-oriented database.
  19. Mar 22 16:34:34 366956-cr21510.tmweb.ru mongod[28073]: 2021-03-22T16:34:34.584+0200 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open "/var/log/mongodb/mongodb.log"
  20. Mar 22 16:34:34 366956-cr21510.tmweb.ru systemd[1]: mongodb.service: Main process exited, code=exited, status=1/FAILURE
  21. Mar 22 16:34:34 366956-cr21510.tmweb.ru systemd[1]: mongodb.service: Failed with result 'exit-code'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement