question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with Mongo 3.4 image with some requests

See original GitHub issue

Just 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:closed
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
shadowcodexcommented, Feb 1, 2017

This needs to be added as a config option in mup.js

0reactions
bensventurescommented, Jan 3, 2017

great news @nosleepfilipe thanks for taking the time to update us 😃

Happy new years too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found