Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect the mongodb from the mongoexpress #1

Open
SamikshaShukla05 opened this issue Jan 27, 2024 · 3 comments
Open

Unable to connect the mongodb from the mongoexpress #1

SamikshaShukla05 opened this issue Jan 27, 2024 · 3 comments

Comments

@SamikshaShukla05
Copy link

I tried the same code and both services and pods are created but when I am checking the logs of mongoexpress pod it is failing
/docker-entrypoint.sh: line 15: mongo: Try again
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sat Jan 27 18:03:04 UTC 2024 retrying to connect to mongo:27017 (6/10)
/docker-entrypoint.sh: line 15: mongo: Try again
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sat Jan 27 18:03:10 UTC 2024 retrying to connect to mongo:27017 (7/10)
/docker-entrypoint.sh: line 15: mongo: Try again
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sat Jan 27 18:03:16 UTC 2024 retrying to connect to mongo:27017 (8/10)
/docker-entrypoint.sh: line 15: mongo: Try again
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sat Jan 27 18:03:22 UTC 2024 retrying to connect to mongo:27017 (9/10)
/docker-entrypoint.sh: line 15: mongo: Try again
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sat Jan 27 18:03:28 UTC 2024 retrying to connect to mongo:27017 (10/10)
/docker-entrypoint.sh: line 15: mongo: Try again
I am new to kubernetes any help much appreciated

@kerolosAyman7667
Copy link

Hi did you find any solution i have same exact problem ?

@EndlessJourney99
Copy link

EndlessJourney99 commented Oct 3, 2024

Hi, the latest Mongo Express image has changed the ENV variable used to connect to MongoDB. I recommend changing the Mongo Express image to version 1.0.0 or adjusting the environment configuration to match the latest image version.
@thewitcher7667, @SamikshaShukla05

@farazshaikh581
Copy link

Hello @EndlessJourney99 , I did change the version to 1.0.0 but now there is a new error related to config javascript file. Can you please help me out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants