MongoDB Abnormal shutdown restart failed to resolve

Source: Internet
Author: User
Tags dochub

The situation reproduces that the website connected to MongoDB is not off and directly shuts down the MongoDB cmd window. The failure to open MongoDB again appears.

Solution: Online said is to delete *.lock files, then--repair, and finally open mongodb on it (I did not delete *.lock, also can)

Reference: Http://dochub.mongodb.org/core/repair for recovery instructions.

D:\mongodb\bin>mongod--dbpath d:\mongodb\data\db

2015-07-03t07:59:56.140+0800 I CONTROL

2015-07-03t07:59:56.140+0800 W CONTROL 32-bit servers don ' t has journaling ena bled by default. Please use the--journal if you want durability.

2015-07-03t07:59:56.140+0800 I CONTROL

2015-07-03t07:59:56.171+0800 W-[Initandlisten] detected unclean Shutdow N-d:\mongodb\data\db\mongod.lock is not Empty.

2015-07-03t07:59:56.187+0800 I STORAGE [Initandlisten] **************

Unclean shutdown detected.

Visit Http://dochub.mongodb.org/core/repair for recovery instructions.

*************

2015-07-03t07:59:56.187+0800 I STORAGE [Initandlisten] exception in initandlist en:12596 old lock file, terminating

2015-07-03t07:59:56.187+0800 I CONTROL [Initandlisten] dbexit:rc:100

D:\mongodb\bin>mongod--dbpath d:\mongodb\data\db--repair

2015-07-03t08:37:23.937+0800 I CONTROL

2015-07-03t08:37:23.937+0800 W CONTROL 32-bit servers don ' t has journaling ena bled by default. Please use the--journal if you want durability.

2015-07-03t08:37:23.937+0800 I CONTROL

2015-07-03t08:37:23.953+0800 W-[Initandlisten] detected unclean Shutdow N-d:\mongodb\data\db\mongod.lock is not Empty.

2015-07-03t08:37:23.984+0800 I CONTROL [Initandlisten] MongoDB starting:pid=3 356 port=27017 dbpath=d:\mongodb\data\db 32-bit host=www-ab2946767cc

2015-07-03t08:37:23.984+0800 I CONTROL [Initandlisten]

2015-07-03t08:37:23.984+0800 I CONTROL [initandlisten] * * Note:this is a All-in-bi t MongoDB binary.

2015-07-03t08:37:23.984+0800 I CONTROL [Initandlisten] * * * A-bit builds a re limited to less than 2GB of data (or L ESS with--journal).

2015-07-03t08:37:23.984+0800 I CONTROL [initandlisten] * * Note that Journ aling defaults to OFF for the + and is C urrently off.

2015-07-03t08:37:23.984+0800 I CONTROL [Initandlisten] * * See Http://doch Ub.mongodb.org/core/32bit

2015-07-03t08:37:23.984+0800 I CONTROL [Initandlisten]

2015-07-03t08:37:23.984+0800 I CONTROL [initandlisten] * * Note:your operating system version does not support the method That MongoDB

2015-07-03t08:37:24.000+0800 I CONTROL [Initandlisten] * * uses to detect impending page faults.

2015-07-03t08:37:24.000+0800 I CONTROL [Initandlisten] * * * result in slower performance for certain use CA Ses

2015-07-03t08:37:24.000+0800 I CONTROL [Initandlisten]

2015-07-03t08:37:24.000+0800 I CONTROL [Initandlisten] targetminos:windows XP SP3

2015-07-03t08:37:24.000+0800 I CONTROL [initandlisten] DB version v3.0.4

2015-07-03t08:37:24.000+0800 I CONTROL [initandlisten] git Version:0481c958dae b2969800511e7475dc66986fa9ed5

2015-07-03t08:37:24.000+0800 I CONTROL [initandlisten] Build info:windows sys. Getwindowsversion (major=6, Minor=1, build=7601, platform=2, service_pack= ' servic e Pack 1 ') boost_lib_version=1_49

2015-07-03t08:37:24.000+0800 I control [Initandlisten] Allocator:tcmalloc 2015-07-03t08:37:24.000+0800 i control [init Andlisten] Options: {repair:true, storage: {dbPath: "D:\mongodb\data\db"}}

2015-07-03t08:37:24.250+0800 I STORAGE [Initandlisten] RepairDatabase Local

2015-07-03t08:37:24.484+0800 I INDEX [Initandlisten] allocating new ns file D: \mongodb\data\db\_tmp_repairdatabase_0\l OCAL.NS, filling with zeroes ...

2015-07-03t08:37:24.812+0800 I STORAGE [fileallocator] allocating new datafile d:\mongodb\data\db\_tmp_repairDatabase _0\local.0, filling with zeroes ...

2015-07-03t08:37:24.812+0800 I STORAGE [fileallocator] Creating directory D:\mo ngodb\data\db\_tmp_repairdatabase_0\_ Tmp

2015-07-03t08:37:24.812+0800 I STORAGE [fileallocator] done allocating datafile D:\MONGODB\DATA\DB\_TMP_ repairdatabase_0\local.0, SIZE:64MB, took 0 secs 2015-07-03t08:37:24.828+0800 I Index [Initandlisten] build index on: Local.st Artup_log Properties: {v:1, key: {_id:1}, Name: "_id_", ns: "Local.startup_ Log"}

2015-07-03t08:37:24.828+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.062+0800 I STORAGE [Initandlisten] repairdatabase myworkblo GS

2015-07-03t08:37:25.312+0800 I INDEX [Initandlisten] allocating new ns file D: \mongodb\data\db\_tmp_repairdatabase_0\m YWORKBLOGS.NS, filling with zeroes ...

2015-07-03t08:37:25.578+0800 I STORAGE [fileallocator] allocating new datafile d:\mongodb\data\db\_tmp_repairDatabase _0\myworkblogs.0, filling with zeroes ...

2015-07-03t08:37:25.578+0800 I STORAGE [fileallocator] Creating directory D:\mo ngodb\data\db\_tmp_repairdatabase_0\_ Tmp

2015-07-03t08:37:25.578+0800 I STORAGE [fileallocator] done allocating datafile D:\MONGODB\DATA\DB\_TMP_ repairdatabase_0\myworkblogs.0, SIZE:64MB, took 0 sec s

2015-07-03t08:37:25.593+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.app_updates properties: {v:1, key: {_id:1}, Name: "_id_", ns: "Myworkbl ogs.app_updates"}

2015-07-03t08:37:25.593+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.593+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.app_updates properties: {v:1, key: {key:1}, Name: "Key_1", ns: "Myworkb logs.app_updates", Background:true, Safe:null}

2015-07-03t08:37:25.593+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.609+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.galleries properties: {v:1, key: { _id:1}, Name: "_id_", ns: "Myworkblog s.galleries"}

2015-07-03t08:37:25.609+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.609+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.galleries properties: {v:1, unique: True, key: {key:1}, Name: "Key_1", ns: "Myworkblogs.galleries", Background:true, Safe:null}

2015-07-03t08:37:25.609+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.625+0800 I Index [initandlisten] Build INDEX ON:MYWORKBL ogs.postcategories properties: {v:1, ke Y: {_id:1}, Name: "_id_", ns: "Mywor kblogs.postcategories"}

2015-07-03t08:37:25.625+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.625+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.postcategories properties: {v:1, UN Ique:true, key: {key:1}, Name: "Key _1", NS: "Myworkblogs.postcategories", Background:true, Safe:null}

2015-07-03t08:37:25.625+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.640+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.posts properties: {v:1, key: {_id: 1}, Name: "_id_", NS: "Myworkblogs.po STS"}

2015-07-03t08:37:25.640+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.640+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.posts properties: {v:1, Unique:tru E, key: {slug:1}, Name: "Slug_1", ns: "Myworkblogs.posts", Background:true, Safe:null}

2015-07-03t08:37:25.640+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.640+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.posts properties: {v:1, key: {stat E:1}, Name: "State_1", ns: "Myworkblo gs.posts", Background:true, Safe:null}

2015-07-03t08:37:25.640+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.640+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.posts properties: {v:1, key: {auth Or:1}, Name: "Author_1", ns: "Myworkb logs.posts", Background:true, Safe:null}

2015-07-03t08:37:25.640+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.640+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.posts properties: {v:1, key: {Publ Isheddate:1}, Name: "Publisheddate_1", ns: "Myworkblogs.posts", Background:true, Safe:null}

2015-07-03t08:37:25.640+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.656+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.users properties: {v:1, key: {_id: 1}, Name: "_id_", ns: "Myworkblogs.us ers"}

2015-07-03t08:37:25.656+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.656+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.users properties: {v:1, key: {Emai L:1}, Name: "Email_1", ns: "Myworkblo gs.users", Background:true, Safe:null}

2015-07-03t08:37:25.656+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.656+0800 I Index [initandlisten] Build index ON:MYWORKBL ogs.users properties: {v:1, key: {isAd Min:1}, Name: "Isadmin_1", ns: "Mywor kblogs.users", Background:true, Safe:null}

2015-07-03t08:37:25.656+0800 I Index [Initandlisten] Building index using bulk method

2015-07-03t08:37:25.875+0800 I STORAGE [Initandlisten] finished checking DBS

2015-07-03t08:37:25.875+0800 I CONTROL [Initandlisten] now exiting

2015-07-03t08:37:25.875+0800 I NETWORK [Initandlisten] shutdown:going to close listening sockets ...

2015-07-03t08:37:25.875+0800 I NETWORK [Initandlisten] shutdown:going to flush diaglog ...

2015-07-03t08:37:25.875+0800 I NETWORK [Initandlisten] shutdown:going to close sockets ...

2015-07-03t08:37:25.875+0800 I STORAGE [Initandlisten] shutdown:waiting for FS preallocator ...

2015-07-03t08:37:25.890+0800 I STORAGE [Initandlisten] shutdown:closing all fi les ...

2015-07-03t08:37:25.890+0800 I STORAGE [Initandlisten] Closeallfiles () finished

2015-07-03t08:37:25.890+0800 I STORAGE [Initandlisten] shutdown:removing fs lo ck ...

2015-07-03t08:37:25.890+0800 I CONTROL [Initandlisten] dbexit:rc:0

D:\mongodb\bin>mongod--dbpath d:\mongodb\data\db

2015-07-03t08:37:31.500+0800 I CONTROL 2015-07-03t08:37:31.500+0800 W control  32-bit servers don ' t have journaling Ena bled by default. Please use the--journal if you want durability. 2015-07-03t08:37:31.500+0800 i CONTROL 2015-07-03t08:37:31.531+0800 i control  [Initandlisten] MongoDB starting: pid=2 852 port=27017 dbpath=d:\mongodb\data\db 32-bit host=www-ab2946767cc 2015-07-03t08:37:31.531+0800 I CONTROL   [Initandlisten] 2015-07-03t08:37:31.531+0800 I control  [initandlisten] * * Note:this is a All-in-bi t MongoDB bin ary. 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] **      -bit builds a re Limited to less than 2GB of data (or less with--journal). 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] **       Note that Journ Aling defaults to OFF for the + bit and is currently off. 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] **       See hTtp://doch ub.mongodb.org/core/32bit 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] 2015-07-03T08 : 37:31.531+0800 I control  [initandlisten] * * Note:your operating system version does not support the method that Mo Ngodb 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] **       uses to Detect impending page faults. 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] **       This may result & Nbsp;in slower performance for certain use cases 2015-07-03t08:37:31.531+0800 I control  [Initandlisten] 2015-07-03T 08:37:31.531+0800 i control  [Initandlisten] targetminos:windows XP SP3 2015-07-03t08:37:31.531+0800 i CONTROL& nbsp [Initandlisten] DB version v3.0.4 2015-07-03t08:37:31.531+0800 I control  [initandlisten] git Version:0481c958dae b 2969800511e7475dc66986fa9ed5 2015-07-03t08:37:31.546+0800 I control  [initandlisten] Build info:windows sys. Getwindowsversion (Major=6, Minor=1, build=7601, platform=2, service_pack= ' servic e Pack 1 ') boost_lib_version=1_49 2015-07-03t08:37:31.546+0800 I C ontrol  [Initandlisten] allocator:tcmalloc 2015-07-03t08:37:31.546+0800 I control  [Initandlisten] Options: {storage: {db Path: ' D:\mongodb\data\db '}} 2015-07-03t08:37:31.578+0800 I network  [Initandlisten] waiting for CO Nnections on Port 27017

MongoDB exception shut down restart failed to resolve

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.