You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if ME_CONFIG_MONGODB_URL env var is correct, in docker-entrypoint.sh the connection check fails, and the connection retry starts until the end of all tries (10 by default). After the retries, the server starts correcly.
Pattern of placeholder <CLUSTER>: cluster0-<CLUSTER_ID>.mongodb.net
Waiting for <CLUSTER>:<PORT>.../docker-entrypoint.sh: line 15: <CLUSTER>: Name has no usable address/docker-entrypoint.sh: line 15: /dev/tcp/<CLUSTER>/<PORT>: Invalid argumentSun Jan 7 01:47:59 UTC 2024 retrying to connect to <CLUSTER>:<PORT> (2/10)/docker-entrypoint.sh: line 15: <CLUSTER>: Name has no usable address/docker-entrypoint.sh: line 15: /dev/tcp/<CLUSTER>/<PORT>: Invalid argumentSun Jan 7 01:48:01 UTC 2024 retrying to connect to <CLUSTER>:<PORT> (3/10).../docker-entrypoint.sh: line 15: <CLUSTER>: Name has no usable address/docker-entrypoint.sh: line 15: /dev/tcp/<CLUSTER>/<PORT>: Invalid argumentSun Jan 7 01:48:08 UTC 2024 retrying to connect to <CLUSTER>:<PORT> (10/10)/docker-entrypoint.sh: line 15: <CLUSTER>: Name has no usable address/docker-entrypoint.sh: line 15: /dev/tcp/<CLUSTER>/<PORT>: Invalid argumentNo custom config.js found, loading config.default.jsWelcome to mongo-express 1.0.2------------------------Mongo Express server listening at http://0.0.0.0:8081Server is open to allow connections from anyone (0.0.0.0)
Expected behavior
After the first connection check, the server starts without any connection retry.
Related (?): #49
Similr errors but with ME_CONFIG_MONGODB_SERVER instead of ME_CONFIG_MONGODB_URL: #21
Code introduced with: #12
Code commented with: #65
The text was updated successfully, but these errors were encountered:
How to reproduce
Run the image.
Actual behavior
Even if
ME_CONFIG_MONGODB_URL
env var is correct, indocker-entrypoint.sh
the connection check fails, and the connection retry starts until the end of all tries (10 by default). After the retries, the server starts correcly.Pattern of placeholder <CLUSTER>: cluster0-<CLUSTER_ID>.mongodb.net
Expected behavior
After the first connection check, the server starts without any connection retry.
Possible solution
In
docker-entrypoint.sh
change the code:Documentations/guides:
Issues
Related (?): #49
Similr errors but with
ME_CONFIG_MONGODB_SERVER
instead ofME_CONFIG_MONGODB_URL
: #21Code introduced with: #12
Code commented with: #65
The text was updated successfully, but these errors were encountered: