{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/mongo/issues/281","repository_url":"https://api.github.com/repos/docker-library/mongo","labels_url":"https://api.github.com/repos/docker-library/mongo/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/mongo/issues/281/comments","events_url":"https://api.github.com/repos/docker-library/mongo/issues/281/events","html_url":"https://github.com/docker-library/mongo/issues/281","id":335883046,"node_id":"MDU6SXNzdWUzMzU4ODMwNDY=","number":281,"title":"Unclean Shoutdown detected- mongo DB","user":{"login":"rahulprasad12","id":31900407,"node_id":"MDQ6VXNlcjMxOTAwNDA3","avatar_url":"https://avatars1.githubusercontent.com/u/31900407?v=4","gravatar_id":"","url":"https://api.github.com/users/rahulprasad12","html_url":"https://github.com/rahulprasad12","followers_url":"https://api.github.com/users/rahulprasad12/followers","following_url":"https://api.github.com/users/rahulprasad12/following{/other_user}","gists_url":"https://api.github.com/users/rahulprasad12/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulprasad12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulprasad12/subscriptions","organizations_url":"https://api.github.com/users/rahulprasad12/orgs","repos_url":"https://api.github.com/users/rahulprasad12/repos","events_url":"https://api.github.com/users/rahulprasad12/events{/privacy}","received_events_url":"https://api.github.com/users/rahulprasad12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T15:49:01Z","updated_at":"2018-06-26T16:57:12Z","closed_at":null,"author_association":"NONE","body":"How to Resolve this?\r\n\r\n\r\n\r\n2018-06-26T15:37:49.751+0000 ** WARNING: --rest is specified without --httpinterface,\r\n2018-06-26T15:37:49.751+0000 **          enabling http interface\r\nwarning: bind_ip of 0.0.0.0 is unnecessary; listens on all ips by default\r\n2018-06-26T15:37:49.754+0000 [initandlisten] MongoDB starting : pid=2194 port=27017 dbpath=data 64-bit host=rahul-983-rahul-webdeveloper-6206876\r\n2018-06-26T15:37:49.754+0000 [initandlisten] db version v2.6.12\r\n2018-06-26T15:37:49.754+0000 [initandlisten] git version: d73c92b1c85703828b55c2916a5dd4ad46535f6a\r\n2018-06-26T15:37:49.755+0000 [initandlisten] build info: Linux build5.ny.cbi.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49\r\n2018-06-26T15:37:49.755+0000 [initandlisten] allocator: tcmalloc\r\n2018-06-26T15:37:49.755+0000 [initandlisten] options: { net: { bindIp: \"0.0.0.0\", http: { RESTInterfaceEnabled: true, enabled: true } }, storage: { dbPath: \"data\", journal: { enabled: false } } }\r\n************** \r\nUnclean shutdown detected.\r\nPlease visit http://dochub.mongodb.org/core/repair for recovery instructions.\r\n*************\r\n2018-06-26T15:37:49.755+0000 [initandlisten] exception in initAndListen: 12596 old lock file, terminating\r\n2018-06-26T15:37:49.755+0000 [initandlisten] dbexit: \r\n2018-06-26T15:37:49.755+0000 [initandlisten] shutdown: going to close listening sockets...\r\n2018-06-26T15:37:49.755+0000 [initandlisten] shutdown: going to flush diaglog...\r\n2018-06-26T15:37:49.755+0000 [initandlisten] shutdown: going to close sockets...\r\n2018-06-26T15:37:49.755+0000 [initandlisten] shutdown: waiting for fs preallocator...\r\n2018-06-26T15:37:49.755+0000 [initandlisten] shutdown: closing all files...\r\n2018-06-26T15:37:49.755+0000 [initandlisten] closeAllFiles() finished\r\n2018-06-26T15:37:49.755+0000 [initandlisten] dbexit: really exiting now"},"comment":{"url":"https://api.github.com/repos/docker-library/mongo/issues/comments/400388356","html_url":"https://github.com/docker-library/mongo/issues/281#issuecomment-400388356","issue_url":"https://api.github.com/repos/docker-library/mongo/issues/281","id":400388356,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDM4ODM1Ng==","user":{"login":"wglambert","id":26428991,"node_id":"MDQ6VXNlcjI2NDI4OTkx","avatar_url":"https://avatars2.githubusercontent.com/u/26428991?v=4","gravatar_id":"","url":"https://api.github.com/users/wglambert","html_url":"https://github.com/wglambert","followers_url":"https://api.github.com/users/wglambert/followers","following_url":"https://api.github.com/users/wglambert/following{/other_user}","gists_url":"https://api.github.com/users/wglambert/gists{/gist_id}","starred_url":"https://api.github.com/users/wglambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wglambert/subscriptions","organizations_url":"https://api.github.com/users/wglambert/orgs","repos_url":"https://api.github.com/users/wglambert/repos","events_url":"https://api.github.com/users/wglambert/events{/privacy}","received_events_url":"https://api.github.com/users/wglambert/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T16:57:12Z","updated_at":"2018-06-26T16:57:12Z","author_association":"NONE","body":"Looks like it was shutdown with a lockfile open, you should probably follow the recovery instructions.\r\n\r\nIn the `Dockerfile` the image runs `mongod` as the only process in the container, then it calls the `docker-entrypoint.sh` which will explicitly run any positional parameters given.\r\nhttps://github.com/docker-library/mongo/blob/2dd01a0c2d0e67742bb4b050b053362b6792d6d7/4.0-rc/Dockerfile#L88-L91\r\n\r\nSo given the command `docker run --rm -it mongo --dbpath /data/db --repair` will execute `mongod --dbpath /data/db --repair` as suggested by the recovery instructions.\r\n\r\nThe arguments after `mongo` are set as positional parameters in the `docker-entrypoint.sh` and then executed."}}
{"actor":{"display_login":"wglambert"}}