mongo-express-docker icon indicating copy to clipboard operation
mongo-express-docker copied to clipboard

Unable to see server status

Open sackio opened this issue 4 years ago • 4 comments

Seeing "Turn on admin in config.js to view server stats!" after specifying ME_CONFIG_MONGODB_ENABLE_ADMIN=true

sackio avatar Aug 27 '21 14:08 sackio

Same. The solution was to install 0.54 rather than "latest". Latest is 1.0.0-alpha code which has no benefit over 0.54 for someone just learning.

systemmonkey42 avatar Sep 02 '21 10:09 systemmonkey42

Same problem here.

muety avatar Nov 29 '21 00:11 muety

latest version have bug, can't show server status even set admin = true

Laurel-rao avatar Mar 24 '22 07:03 Laurel-rao

Same. The solution was to install 0.54 rather than "latest". Latest is 1.0.0-alpha code which has no benefit over 0.54 for someone just learning.

For newbies (which i am), after pulling from docker ($ docker pull mongo-express:0.54.0), change your yaml deployment file configuration to:

image: mongo-express:0.54.0

for example (there's no indentation here, but your yaml file is indent-sensitive whether its spaces or tabs) :

apiVersion: apps/v1 kind: Deployment metadata: name: mongo-express labels: app: mongo-express spec: replicas: 1 selector: matchLabels: app: mongo-express template: metadata: labels: app: mongo-express spec: containers: - name: mongo-express image: mongo-express:0.54.0 <----------- apply it here ports: - containerPort: 8081 etc...

and when you delete and apply the yaml file, restart service and it should be able to fix the "Turn on admin in config.js to view server stats!" issue

KKCheah avatar Apr 28 '22 09:04 KKCheah