prometheus / prometheus

The Prometheus monitoring system and time series database.
https://prometheus.io/
Apache License 2.0
54.03k stars 8.95k forks source link

Prometheus UI is down #11906

Closed naggirk closed 1 year ago

naggirk commented 1 year ago

What did you do?

2.40. TO 2.41. Prometheus UI is failing to start

What did you expect to see?

No response

What did you see instead? Under which circumstances?

Port forward command succeeded but when opening localhost:9090 on the browser displays Error opening React index.html: open web/ui/static/react/index.html: no such file or directory

System information

No response

Prometheus version

2.40.* TO 2.41.*  ----> Failing
2.39.2 ----> running

Prometheus configuration file

No response

Alertmanager version

No response

Alertmanager configuration file

No response

Logs

No response

dgl commented 1 year ago

Please can you provide build details as the bug template mentions: prometheus --version.

If you're not using an official release build or image, then you need to make sure you compile it with make, rather than something like go build, as the web UI assets need building as well.

naggirk commented 1 year ago

prometheus, version 2.41.0

Following this wiki https://github.com/prometheus/prometheus/blob/main/web/ui/README.md I see the following errors

ERROR in src/pages/graph/ExpressionInput.tsx:26:37 Module not found: Error: Can't resolve '@prometheus-io/codemirror-promql' Module not found: Error: Can't resolve '@prometheus-io/codemirror-promql/dist/esm/complete'

We're currently deploying prometheus with this helm chart https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack

see version tag 2.41.0 Chart version 44.3.0 https://github.com/prometheus-community/helm-charts/blob/48f08281b29c78a3cd372a11800b6d18484a6e52/charts/kube-prometheus-stack/values.yaml#L2666

If I deploy the same chart with a version less than or equal to 2.39.2 the Prometheus UI works fine but in the 2.40 and up versions the UI is failing with Error opening React index.html: open web/ui/static/react/index.html: no such file or directory

lilinvictorms commented 1 year ago

We see same issue: the UI works until version 2.39.2, then is broken with version 2.40+. Is any way to vote this issue to get higher priority for investigation?

roidelapluie commented 1 year ago

Can you confirm you did not build prometheus yourself? Can this be reproduced with official docker images?

lilinvictorms commented 1 year ago

Oh yes, I was using prometheus docker image from MCR (Microsoft Container Registry) which is a private built version. Tried official image from "prom/prometheus:v2.42.0" and it works. So this seems a build issue with new versions.

naggirk commented 1 year ago

I can verify the same thing, MCR images results in an UI failure but pulling from quay.io works fine

toralf commented 1 year ago

We are facing in Gentoo this bug too: https://bugs.gentoo.org/905408

naggirk commented 1 year ago

if you use MCR Prometheus version 2.43.0 the UI is working again

rostislaved commented 9 months ago

Faced this issue on manjaro.

prometheus was installed via pacman

Helped: cd to "cd /usr/share/prometheus" and start prometheus from there:

cd /usr/share/prometheus prometheus