MongoDB Startup related issues

Source: Internet
Author: User

after upgrading the company MongoDB, unable to start . To view the log, the following appears:

2016-11-29t14:22:09.382+0800 E NETWORK [Initandlisten] Failed to unlink socket File/tmp/mongodb-27029.sock errno:1 Opera tion not permitted

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8B/62/wKiom1hLnAWBQVAVAACeLsThXNo225.png-wh_500x0-wm_3 -wmp_4-s_289504206.png "title=" screen shot 2016-11-29 14.31.02.png "alt=" Wkiom1hlnawbqvavaacelsthxno225.png-wh_50 "/>

The/tmp/mongodb-27-29.sock file in the prompt is as follows:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8B/62/wKiom1hLnBzxTbEAAAC2PzMj3uc952.png-wh_500x0-wm_3 -wmp_4-s_84721211.png "title=" screen shot 2016-11-29 14.31.14.png "alt=" Wkiom1hlnbzxtbeaaac2pzmj3uc952.png-wh_50 "/>

View the Mongod process has disappeared, but the sock file is still in, decide to delete the file as follows:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/5F/wKioL1hLnDOhgWaZAAC23oqBu14047.png-wh_500x0-wm_3 -wmp_4-s_1638433020.png "title=" screen shot 2016-11-29 14.31.34.png "alt=" Wkiol1hlndohgwazaac23oqbu14047.png-wh_50 "/>

Start Mongod again and notice that the system prompts the PID file to already exist as follows:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/62/wKiom1hLnEWgxPezAABwXbFVKDY181.png-wh_500x0-wm_3 -wmp_4-s_3771372030.png "title=" screen shot 2016-11-29 14.31.57.png "alt=" Wkiom1hlnewgxpezaabwxbfvkdy181.png-wh_50 "/>

Decide to delete the PID file as follows:

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/62/wKiom1hLnFmDcIQXAADx8_bHcn0021.png-wh_500x0-wm_3 -wmp_4-s_1200199101.png "title=" screen shot 2016-11-29 14.32.13.png "alt=" Wkiom1hlnfmdciqxaadx8_bhcn0021.png-wh_50 "/>

Start Mongod again and start smoothly.


Remember the last time I didn't use the service mongod Start command when I started Mongod, I used the Mongod--config/etc/mongod.conf command, which prevented Mongod from starting and then using service Mongod STA RT also fails to start. Because when I use the Mongod--config/etc/mongod.conf command, the process generates a wiredtiger.* file in the data directory as the root user, causing the service Mongod start to fail to start. Tip: When you start mongod using the service mongod Start command Normally, you are operating as a mongod user, not root

This article from "11462293" blog, declined reprint!

MongoDB Startup related issues

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.