Problems with Mongo 3.4 image with some requests
See original GitHub issueJust a heads up for people having issues suddenly with Mongo db. My deploy was crashing the past few days and I think I’ve just figured out why.
Mup uses the mongo:latest
image in docker. The image has just been updated in the Docker repo to use the latest 3.4
version of Mongo DB, which has some backward incompatible changes. https://docs.mongodb.com/master/release-notes/3.4-compatibility/#backwards-incompatible-features
In my case $geoNear queries where failling.
I manually changed the mongo-start.sh
to lock it to mongo 3.2.11
and everything went back to working.
Here it is the new content of mongo-start.sh
#!/bin/bash
set -e
# we use this data directory for the backward compatibility
# older mup uses mongodb from apt-get and they used this data directory
sudo mkdir -p /var/lib/mongodb
sudo docker pull mongo:3.2.11
set +e
sudo docker rm -f mongodb
set -e
sudo docker run \
-d \
--restart=always \
--publish=127.0.0.1:27017:27017 \
--volume=/var/lib/mongodb:/data/db \
--volume=/opt/mongodb/mongodb.conf:/mongodb.conf \
--name=mongodb \
mongo:3.2.11 mongod -f /mongodb.conf
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top Results From Across the Web
Pull request #161 seems to have broken MongoDB 3.4 ...
Anyone have any tips for reproducing? (or have a throwaway system that exhibits the issue that they'd be willing/able to get me access...
Read more >With Mongo 3.6(in docker) we hit this error "Failed to unlink ...
We run mongo in docker. We were using 3.4 before and everything was good. Yesterday we upgraded to 3.6 and redeploy our docker...
Read more >A timeout occurred after 30000ms' in docker compose - Ops ...
I'm face the similar kind of issue but while run docker compose the env variable are not aling to docker file and networks...
Read more >Unable to connect to the mongodb instance running in a ...
The mongodb instance runs well and I am able to connect to it from outside of the container by mongodb://localhost:37017 connection string to ......
Read more >Global lock occurred in MongoDB 3.4 - Google Groups
Kevin Adistambha · Your MongoDB version and your OS version · Some example documents and indexes defined in the collection · What queries...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This needs to be added as a config option in mup.js
great news @nosleepfilipe thanks for taking the time to update us 😃
Happy new years too.