...
root@debian-2gb-fra1-01:/var/www/revizor-game.ru# mongo MongoDB shell version: 3.2.10 connecting to: test 2017-01-15T01:06:24.088+0300 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused 2017-01-15T01:06:24.088+0300 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6 exception: connect failed root@debian-2gb-fra1-01:/var/www/revizor-game.ru# service mongod status ● mongod.service - High-performance, schema-free document-oriented database Loaded: loaded (/lib/systemd/system/mongod.service; disabled) Active: inactive (dead) Docs: https://docs.mongodb.org/manual Jan 15 01:06:21 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:14] Failed to parse resource value, ignoring: 64000 # processes/threads Jan 15 01:06:21 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:15] Unknown lvalue 'TasksMax' in section 'Service' Jan 15 01:06:21 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:16] Unknown lvalue 'TasksAccounting' in section 'Service' Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:10] Failed to parse resource value, ignoring: infinity # file size Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:11] Failed to parse resource value, ignoring: infinity # cpu time Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:12] Failed to parse resource value, ignoring: infinity # virtual memory size Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:13] Failed to parse resource value, ignoring: 64000 # open files Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:14] Failed to parse resource value, ignoring: 64000 # processes/threads Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:15] Unknown lvalue 'TasksMax' in section 'Service' Jan 15 01:07:03 debian-2gb-fra1-01 systemd[1]: [/lib/systemd/system/mongod.service:16] Unknown lvalue 'TasksAccounting' in section 'Service'
ramon.fernandez commented on Mon, 16 Jul 2018 17:12:04 +0000: rbhushan90, please see the the logs you provided: Failed to open "/var Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources. Regards, Ramón. rbhushan90 commented on Mon, 16 Jul 2018 06:38:46 +0000: Hi, On 18.04, I am getting error: ● mongodb.service - High-performance, schema-free document-oriented database Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2018-07-16 10:30:29 IST; 1h 21min ago Process: 1248 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (code=exited, status=1/FAILURE) Main PID: 1248 (code=exited, status=1/FAILURE) Jul 16 10:30:29 ecomadmin systemd[1]: Started High-performance, schema-free document-oriented database. Jul 16 10:30:29 ecomadmin mongod[1248]: 2018-07-16T10:30:29.967+0530 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open "/var Jul 16 10:30:29 ecomadmin systemd[1]: mongodb.service: Main process exited, code=exited, status=1/FAILURE Jul 16 10:30:29 ecomadmin systemd[1]: mongodb.service: Failed with result 'exit-code'. Please help... ramon.fernandez commented on Mon, 16 Jan 2017 15:01:32 +0000: Thanks for your report. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources. Regards, Ramón. dinfyru commented on Sun, 15 Jan 2017 09:14:18 +0000: Hm... I do chown -R mongodb /var/lib/mongodb and all work good. mongo started Close this issues dinfyru commented on Sun, 15 Jan 2017 08:52:51 +0000: logs 2017-01-15T11:51:58.794+0300 I CONTROL [main] ***** SERVER RESTARTED ***** 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] MongoDB starting : pid=2441 port=27017 dbpath=/var/lib/mongodb 64-bit host=debian-2gb-fra1-01 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] db version v3.2.10 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] allocator: tcmalloc 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] modules: none 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] build environment: 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] distmod: debian81 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] distarch: x86_64 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] target_arch: x86_64 2017-01-15T11:51:58.805+0300 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log", quiet: true } } 2017-01-15T11:51:58.840+0300 I - [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2017-01-15T11:51:58.840+0300 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=8G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size$ 2017-01-15T11:51:58.854+0300 E STORAGE [initandlisten] WiredTiger (13) [1484470318:854944][2441:0x7f830248dcc0], file:WiredTiger.wt, connection: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied 2017-01-15T11:51:58.856+0300 I - [initandlisten] Assertion: 28595:13: Permission denied 2017-01-15T11:51:58.856+0300 I STORAGE [initandlisten] exception in initAndListen: 28595 13: Permission denied, terminating 2017-01-15T11:51:58.856+0300 I CONTROL [initandlisten] dbexit: rc: 100 dinfyru commented on Sun, 15 Jan 2017 08:34:47 +0000: I do `chmod 777 /var/log/mongodb/mongod.log` And i have new error root@debian-2gb-fra1-01:/# service mongod status ● mongod.service - High-performance, schema-free document-oriented database Loaded: loaded (/lib/systemd/system/mongod.service; disabled) Active: failed (Result: exit-code) since Sun 2017-01-15 11:32:43 MSK; 3s ago Docs: https://docs.mongodb.org/manual Process: 2356 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (code=exited, status=100) Main PID: 2356 (code=exited, status=100) Jan 15 11:32:43 debian-2gb-fra1-01 systemd[1]: Starting High-performance, schema-free document-oriented database... Jan 15 11:32:43 debian-2gb-fra1-01 systemd[1]: Started High-performance, schema-free document-oriented database. Jan 15 11:32:43 debian-2gb-fra1-01 systemd[1]: mongod.service: main process exited, code=exited, status=100/n/a Jan 15 11:32:43 debian-2gb-fra1-01 systemd[1]: Unit mongod.service entered failed state.