[SERVER-15389] Cannot start mongod when opening too many files before getting a socket Created: 25/Sep/14  Updated: 11/Jul/16  Resolved: 21/Oct/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.7.6
Fix Version/s: 2.7.8

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-9818 Problems when starting MongoDB with >... Closed
related to SERVER-17652 Cannot start mongod due to "sockets h... Closed
related to SERVER-2114 Don't use select timeouts for fast co... Closed
related to SERVER-17653 ERROR: socket XXX is higher than 1023... Closed
Operating System: ALL
Participants:

 Description   

Looks like 2.7 regression of SERVER-9818 - we now open all of the DB files in STORAGE and INDEXING components before getting low numbered socket.

2014-09-24T23:45:43.407+0000 D NETWORK  [initandlisten] fd limit hard:20000 soft:20000 max conn: 16000
2014-09-24T23:45:43.407+0000 D COMMANDS [initandlisten] run command local.$cmd { create: "startup_log", size: 10485760, capped: true }
2014-09-24T23:45:43.407+0000 D STORAGE  [initandlisten] create collection local.startup_log { size: 10485760, capped: true }
2014-09-24T23:45:43.407+0000 I QUERY    [initandlisten] command local.$cmd command: create { create: "startup_log", size: 10485760, capped: true } ntoreturn:1 keyUpdates:0 numYields:0  reslen:85 0ms
2014-09-24T23:45:43.407+0000 I QUERY    [initandlisten] insert local.startup_log ninserted:1 keyUpdates:0 numYields:0  0ms
2014-09-24T23:45:43.407+0000 E NETWORK  [initandlisten] socket 1401 is higher than 1023; not supported
2014-09-24T23:45:43.407+0000 I COMMANDS [initandlisten] now exiting
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] closing listening socket: 1400
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] closing listening socket: 1401
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to close sockets...
2014-09-24T23:45:43.407+0000 I STORAGE  [initandlisten] shutdown: waiting for fs preallocator...
2014-09-24T23:45:43.407+0000 I STORAGE  [initandlisten] shutdown: final commit...
2014-09-24T23:45:43.407+0000 D JOURNAL  [initandlisten] _groupCommit
...



 Comments   
Comment by Githook User [ 02/Oct/14 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-15389 Refactor initAndListen to create server socket ids early

Also move call to checkIfReplMissingFromCommandLine to happen after
databases have been repaired.
Branch: master
https://github.com/mongodb/mongo/commit/49bc350c5a32280480f186c53c7ee759ce3446b8

Generated at Thu Feb 08 03:37:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.