[SERVER-32218] Fatal Assertion 40486 at src/mongo/transport/transport_layer_asio.cpp 170 Created: 08/Dec/17 Updated: 20/Jun/23 Resolved: 08/Dec/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking, Upgrade/Downgrade |
| Affects Version/s: | 3.6.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Stefan Bieliauskas [X] | Assignee: | Jonathan Reams |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | 1. Use the latest docker image |
||||||||
| Participants: | |||||||||
| Description |
| Comments |
| Comment by Ramon Fernandez Marina [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for sharing your dockerfiles here Stefan11291129, and glad to hear you've found a way forward. As Jonathan mentioned above, another workaround is to disable the unix domain socket altogether if you don't need it. Closing this as a duplicate of Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Stefan Bieliauskas [X] [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for your quick reply and your comments on this issue. As you mentioned this problem occurs only if you try to start the database with different users.
How to fix it? - Start all mongo instances on a different port with the `--port` argument during the docker build. Maybe somebody else will help this here the Dockerfile that caused the problem:
And here the fixed version with the different port for the internal build process mongo instnace.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jonathan Reams [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3.6 has a new networking implementation, but they should both have the same behaviour here. Could you try running the mongod with --transportLayer=legacy to see if the problem reproduces? That should switch mongodb back to using the 3.4 networking code. You can also work around this problem by disabling UNIX sockets if you aren't using them (see https://docs.mongodb.com/manual/reference/configuration-options/#net-unixdomainsocket-options) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I can reproduce this error stand-alone if I run a mongod on port NNNN, then kill -9 that mongod, and then try to start another mongod on the same port as a different user. I'm not very familiar with docker, but reading the commands above makes me wonder whether you're trying to run two mongod processes as the same user on the same port, which would explain this issue. Stefan11291129, can you please confirm whether this is the case? Regards, PS: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Stefan Bieliauskas [X] [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please close thus issue | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Stefan Bieliauskas [X] [ 08/Dec/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Problem solved by adding: RUN rm /tmp/mongodb-27017.sock to my dockerfile |