[SERVER-2696] Socket Error: accept() returns -1 errno:10038 Created: 07/Mar/11  Updated: 08/Mar/13  Resolved: 10/Oct/12

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: 1.8.0-rc1
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Windows
Participants:

 Description   

Running with --dur on windows x64

Sun Mar 06 23:55:02 [dur] lsn set 419075
Sun Mar 06 23:55:33 shutdown: going to close listening sockets...
Sun Mar 06 23:55:33 closing listening socket: 308
Sun Mar 06 23:55:33 closing listening socket: 316
Sun Mar 06 23:55:33 shutdown: going to flush diaglog...
Sun Mar 06 23:55:33 shutdown: going to close sockets...
Sun Mar 06 23:55:33 [initandlisten] Listener: accept() returns -1
errno:10038 An operation was attempted on something that is not a
socket.
Sun Mar 06 23:55:33 [websvr] Listener: accept() returns -1 errno:10038
An operation was attempted on something that is not a socket.
Sun Mar 06 23:55:33 shutdown: waiting for fs preallocator...
Sun Mar 06 23:55:33 shutdown: lock for final commit...
Sun Mar 06 23:55:33 shutdown: final commit...
Sun Mar 06 23:55:33 [initandlisten] select() failure: ret=-1 errno:
10038 An operation was attempted on something that is not a socket.
Sun Mar 06 23:55:33 [websvr] select() failure: ret=-1 errno:10038 An
operation was attempted on something that is not a socket.
Sun Mar 06 23:55:33 [initandlisten] now exiting
Sun Mar 06 23:55:33 dbexit:
Sun Mar 06 23:55:33 [initandlisten] shutdown: going to close listening
sockets...
Sun Mar 06 23:55:33 [initandlisten] shutdown: going to flush
diaglog...
Sun Mar 06 23:55:33 [initandlisten] shutdown: going to close
sockets...
Sun Mar 06 23:55:33 [initandlisten] shutdown: waiting for fs
preallocator...
Sun Mar 06 23:55:33 [initandlisten] shutdown: lock for final commit...
Sun Mar 06 23:55:33 [initandlisten] shutdown: final commit...
Sun Mar 06 23:55:33 shutdown: closing all files...
Sun Mar 06 23:55:33 closeAllFiles() finished
Sun Mar 06 23:55:33 shutdown: journalCleanup...
Sun Mar 06 23:55:33 [initandlisten] shutdown: closing all files...
Sun Mar 06 23:55:33 closeAllFiles() finished
Sun Mar 06 23:55:33 [initandlisten] shutdown: journalCleanup...
Sun Mar 06 23:55:33 removeJournalFiles
Sun Mar 06 23:55:33 shutdown: removing fs lock...
Sun Mar 06 23:55:33 [initandlisten] removeJournalFiles
Sun Mar 06 23:55:33 [initandlisten] shutdown: removing fs lock...
Sun Mar 06 23:55:33 [initandlisten] couldn't remove fs lock 0
Sun Mar 06 23:55:33 dbexit: really exiting now
Sun Mar 06 23:55:34 [initandlisten] MongoDB starting : pid=1776
port=27017 dbpath=C:\servers\mongodb\data 64-bit
Sun Mar 06 23:55:34 [initandlisten] db version v1.8.0-rc1, pdfile
version 4.5
Sun Mar 06 23:55:34 [initandlisten] git version:
87dd5720e48e875487d5fbd78cbe120d5a610973
Sun Mar 06 23:55:34 [initandlisten] build sys info: windows (6, 1,
7600, 2, '') BOOST_LIB_VERSION=1_42



 Comments   
Comment by Scott Hernandez (Inactive) [ 22/Sep/12 ]

Max, are you still seeing this on newer releases of the server?

Comment by Scott Hernandez (Inactive) [ 23/Jul/12 ]

What is the exception in the client logs? Can you post the full mongodb logs please?

Comment by Max Mumford [ 23/Jul/12 ]

I am still experiencing this problem using the C# driver to access a mongodb running version 2.0.6.

When accessing the server using:

public Member GetMemberById(string memberID)

{ IMongoQuery query = Query.EQ("_id", memberID); return (Member) memberCollection.FindOneAs(typeof(Member), query); }

The method succeeds 9 out of 10 times but fails with the exception mentioned in this original bug report.

Is there any information on workarounds or fixes for this issue?

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