MongoDB learning-error and Solutions

Source: Internet
Author: User

-- An error is returned when shardcollection is created.

Mongos> dB. runcommand ({shardcollection: 'test. test', key: {_ ID: 1 }})

{

"Assertion": "invalid parameter: expected an object ()",

"Assertioncode": 10065,

"Errmsg": "DB assertion failure ",

"OK": 0

-- Cause: the replset option is added when mongod is started, so that the Master cannot be found.

-- Solution: restart mongod and cancel the replset option.

 

Certificate -------------------------------------------------------------------------------------------------------------------------------------

 

-- Auto sharding fails because the server time is not synchronized.

Fri Jan 6 12:46:09 [balancer] Caught exception while doing balance: Error Checking clock skew of cluster 10.192.9.110: 20000, 10.192.

136.242: 20000, 10.192.9.90: 20000: caused by: 13650 clock skew of the cluster 10.192.9.110: 20000, 10.192.136.242: 20000, 10.192.9.90:

20000 is too far out of bounds to allow distributed locking.

 

Fri Jan 6 13:14:24 [conn2] Warning:-cmd: {splitchunk: "test1.test1", keypattern: {_ ID: 1.0}, Min: {_ ID: min

Key}, Max: {_ ID: maxkey}, from: "10.192.9.110: 10000", splitkeys: [{_ ID: 0.0}], shardid: "test1.test1-_ id_minkey ", configdb :"

10.192.9.110: 20000, 10.192.136.242: 20000, 10.192.9.90: 20000 "} result: {errmsg:" error locking distributed lock for split.: caused

By: 13651 error checking clock skew of cluster 10.192.9.110: 20000, 10.192.136.242: 20000, 10.192.9... ", OK: 0.0}

 

CP/usr/share/zoneinfo/GMT/etc/localtime

Ntpdate 10.192.0.12 -- Time Server

Bytes ---------------------------------------------------------------------------------------------------------------------

 

-- Config service has been stopped for no reason

Mon Jan 9 07:04:56 [balancer] movechunk result: {cause: {assertion: "Can't take a write lock while out of disk space", assertioncode: 14031, errmsg: "DB assertion failure", OK: 0.0}, errmsg: "movechunk failed to engage to-shard in the data transfer: DB assertion failure", OK: 0.0}

Mon Jan 9 07:04:56 [balancer] balancer move failed: {cause: {assertion: "Can't take a write lock while out of disk space", assertioncode: 14031, errmsg: "DB assertion failure", OK: 0.0}, errmsg: "movechunk failed to engage to-shard in the data transfer: DB assertion failure", OK: 0.0} from: S2: s1 Chunk: {_ ID: "test. test _ id_16690.0 ", lastmod: Timestamp 3000 | 1, NS:" test. test ", Min: {_ ID: 16690.0}, Max: {_ ID: 50791.0}, shard:" S2 "}

Cause: 10.192.9.90 the disk space is full.

Solution: increase disk space

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.