node.js - MongoDB - shutting down with code:100 -


i've been trying set mongodb on ubuntu 16.04.2 lts (gnu/linux 4.4.0-22-generic x86_64) vps , i've been running few problems. running user on server has root access not using root account itself.

i started notice problem when executing db.createuser() on admin database add other users , getting error: not authorized execute command

so proceeded uninstall , install again using tutorial provided on website: https://docs.mongodb.com/v3.2/tutorial/install-mongodb-on-ubuntu/

now when i'm on stage 2 verify mongodb has started successfully on run mongodb community edition section, @ output file /var/log/mongodb/mongod.log, following:

2017-04-14t14:23:09.309+0200 control  [main] ***** server restarted ***** 2017-04-14t14:23:09.316+0200 control  [initandlisten] mongodb starting : pid=9691 port=27017 dbpath=/var/lib/mongodb 64-bit host=vps338741 2017-04-14t14:23:09.316+0200 control  [initandlisten] db version v3.4.3 2017-04-14t14:23:09.316+0200 control  [initandlisten] git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1 2017-04-14t14:23:09.316+0200 control  [initandlisten] openssl version: openssl 1.0.2g  1 mar 2016 2017-04-14t14:23:09.316+0200 control  [initandlisten] allocator: tcmalloc 2017-04-14t14:23:09.316+0200 control  [initandlisten] modules: none 2017-04-14t14:23:09.316+0200 control  [initandlisten] build environment: 2017-04-14t14:23:09.316+0200 control  [initandlisten]     distmod: ubuntu1604 2017-04-14t14:23:09.316+0200 control  [initandlisten]     distarch: x86_64 2017-04-14t14:23:09.316+0200 control  [initandlisten]     target_arch: x86_64 2017-04-14t14:23:09.316+0200 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-04-14t14:23:09.349+0200 storage  [initandlisten]  2017-04-14t14:23:09.349+0200 storage  [initandlisten] ** warning: using xfs filesystem recommended wiredtiger storage engine 2017-04-14t14:23:09.349+0200 storage  [initandlisten] **          see http://dochub.mongodb.org/core/prodnotes-filesystem 2017-04-14t14:23:09.349+0200 storage  [initandlisten] wiredtiger_open config: create,cache_size=464m,session_max=20000,eviction=(threads_min=4,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=2gb),statistics_log=(wait=0), 2017-04-14t14:23:09.366+0200 e storage  [initandlisten] wiredtiger error (2) [1492172589:366629][9691:0x7f1755946cc0], file:wiredtiger.wt, connection: /var/lib/mongodb/wiredtiger.wt: handle-open: open: no such file or directory 2017-04-14t14:23:09.367+0200 -        [initandlisten] assertion: 28595:2: no such file or directory src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 267 2017-04-14t14:23:09.367+0200 storage  [initandlisten] exception in initandlisten: 28595 2: no such file or directory, terminating 2017-04-14t14:23:09.367+0200 network  [initandlisten] shutdown: going close listening sockets... 2017-04-14t14:23:09.367+0200 network  [initandlisten] removing socket file: /tmp/mongodb-27017.sock 2017-04-14t14:23:09.367+0200 network  [initandlisten] shutdown: going flush diaglog... 2017-04-14t14:23:09.367+0200 control  [initandlisten] exiting 2017-04-14t14:23:09.367+0200 control  [initandlisten] shutting down code:100 

i've looked around , not same error as found here, because fact there isn't /data/db folder have. log can see line:

2017-04-14t14:23:09.366+0200 e storage  [initandlisten] wiredtiger error (2) [1492172589:366629][9691:0x7f1755946cc0], file:wiredtiger.wt, connection: /var/lib/mongodb/wiredtiger.wt: handle-open: open: no such file or directory 

which true, when go /var/lib/mongodb , ls -l results with:

drwxr-xr-x 2 mongodb mongodb 4096 apr 14 14:10 journal -rw-r--r-- 1 mongodb mongodb    0 apr 14 14:02 mongod.lock -rw-r--r-- 1 mongodb mongodb    0 apr 14 14:10 wiredtiger -rw-r--r-- 1 mongodb mongodb   21 apr 14 14:10 wiredtiger.lock -rw-r--r-- 1 mongodb mongodb 1004 apr 14 14:10 wiredtiger.turtle 

but don't know if should manually create file not seen problem elsewhere. made sure mongodb user has permissions on these files stated in answer question, still no luck.

i'm @ loss do, appreciated fifth attempt @ getting working!

thanks!

this known bug in mongodb, check report

your problem not files missing in general, it's go missing when restart after clean shutdown. problem not related /data/db directory more wiredtiger.wt file missing after restart.

oct 1 20:00:44 alpha mongod.27017[1074]: [initandlisten] wiredtiger (2) [1443729644:306783][1074:0x7fdba8fd4bc0], file:wiredtiger.wt, connection: /data/db/wiredtiger.wt: no such file or directory

the bug report talks same thing.

try:

i suggest try , disable wiredtiger in config file.

mongodb config options

wiredtiger


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -