weechien / mongo-express-k8s

A basic implementation of MongoDB GUI in a Kubernetes cluster.
31 stars 44 forks source link

Unable to connect the mongodb from the mongoexpress #1

Open SamikshaShukla05 opened 8 months ago

SamikshaShukla05 commented 8 months ago

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

thewitcher7667 commented 2 weeks ago

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

EndlessJourney99 commented 2 weeks ago

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