Bug 1902496 - Prometheus GUI does not work (missing) [NEEDINFO]
Summary: Prometheus GUI does not work (missing)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-github-prometheus
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-29 16:42 UTC by Коренберг Марк
Modified: 2021-02-05 01:58 UTC (History)
2 users (show)

Fixed In Version: golang-github-prometheus-2.23.0-1.fc34 golang-github-prometheus-2.23.0-2.fc34 golang-github-prometheus-2.23.0-2.fc33 golang-github-prometheus-2.24.1-3.fc34 golang-github-prometheus-2.24.1-3.fc33
Clone Of:
Environment:
Last Closed: 2021-01-27 02:12:22 UTC
Type: Bug
Embargoed:
socketpair: needinfo?


Attachments (Terms of Use)

Description Коренберг Марк 2020-11-29 16:42:49 UTC
Pointing browser to /prometheus gives:

error reading base template: open templates/_base.html: no such file or directory

Seems something like

https://github.com/NixOS/nixpkgs/issues/74844

i.e. new Prometheus requires extra action to compile it with GUI.

This is a degradation comparing to Fedora 32, where everything worked liked a charm.

Possibly the bug is triggered in rawhide.

Comment 1 Fedora Update System 2020-12-04 01:33:36 UTC
FEDORA-2020-a116217589 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 2 Fedora Update System 2020-12-04 02:16:29 UTC
FEDORA-2020-9ea1ff01f8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-9ea1ff01f8

Comment 3 Robert-André Mauchin 🐧 2020-12-04 19:01:11 UTC
(In reply to Коренберг Марк from comment #0)
> Pointing browser to /prometheus gives:
> 
> error reading base template: open templates/_base.html: no such file or
> directory
> 
> Seems something like
> 
> https://github.com/NixOS/nixpkgs/issues/74844
> 
> i.e. new Prometheus requires extra action to compile it with GUI.
> 
> This is a degradation comparing to Fedora 32, where everything worked liked
> a charm.
> 
> Possibly the bug is triggered in rawhide.

Ok I can give you the "old" interfae but not the new React one as the build process requires internet access to get the react dependencies.

Also please note we are now using a systemd service to launch Prometheus, ie systemctl start prometheus.

Comment 4 Fedora Update System 2020-12-05 01:59:29 UTC
FEDORA-2020-9ea1ff01f8 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-9ea1ff01f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-9ea1ff01f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Коренберг Марк 2020-12-05 21:07:44 UTC
Ok, old GUI is sufficient for me.

Regarding the new one, is it OK to pull all the sources required to build the interface and put them as an archive in .srpm ? And also add a comment in .spec-file how to regenerate the archive ?

Comment 6 Robert-André Mauchin 🐧 2020-12-05 22:23:12 UTC
(In reply to Коренберг Марк from comment #5)
> Ok, old GUI is sufficient for me.
> 
> Regarding the new one, is it OK to pull all the sources required to build
> the interface and put them as an archive in .srpm ? And also add a comment
> in .spec-file how to regenerate the archive ?

I can try that at a later time.

Comment 7 Fedora Update System 2020-12-05 22:40:49 UTC
FEDORA-2020-46adfadb7c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2020-12-05 23:33:40 UTC
FEDORA-2020-8e8039d97c has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8e8039d97c

Comment 9 Robert-André Mauchin 🐧 2020-12-05 23:35:20 UTC
Later is now. It looks like this: https://imgpile.com/images/uehoVh.png

Comment 10 Fedora Update System 2020-12-06 07:17:16 UTC
FEDORA-2020-8e8039d97c has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8e8039d97c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8e8039d97c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-12-14 00:58:55 UTC
FEDORA-2020-8e8039d97c has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Коренберг Марк 2021-01-26 13:06:44 UTC
No, bug is not fixed. It shows:

Error opening React index.html: open static/react/index.html: no such file or directory

strace:

openat(AT_FDCWD, "static/react/index.html", O_RDONLY|O_CLOEXEC) = -1 ENOENT

So, path is not absolute. Should be

/var/lib/prometheus/web/ui/static/react/index.html


Also, it contains SOURCES of web-interface at /var/lib/prometheus/web/ui/react-app (yes, including .eslintrc.json).

It's another bug. The PKG should not contain sources on par with compiled things. Possibly many more.


To summarize, the Prometheus is wrongly packaged. Please fix.

Comment 13 Коренберг Марк 2021-01-26 13:08:47 UTC
Also, web interface SHOULD NOT be placed under /var/lib. I propose /usr/share/prometheus

Comment 14 Robert-André Mauchin 🐧 2021-01-26 23:51:39 UTC
What version do you have?

dnf repoquery -l golang-github-prometheus | grep /var/lib/prometheus/web/ui/static/react/index.html
/var/lib/prometheus/web/ui/static/react/index.html

The file is present. I tested the package too and did not have an issue: http://localhost:9090/graph shows me the app.

How did you start Prometheus? With the service file? If not the config file will not be parsed. I will changed the default settings for this if you like.

Edit: I will embed the files in the app as I've found how to do it.

Comment 15 Fedora Update System 2021-01-27 02:12:22 UTC
FEDORA-2021-c3b9389be1 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-01-27 02:26:50 UTC
FEDORA-2021-916e6c5d73 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-916e6c5d73

Comment 17 Fedora Update System 2021-01-28 01:53:45 UTC
FEDORA-2021-916e6c5d73 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-916e6c5d73`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-916e6c5d73

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2021-02-05 01:58:06 UTC
FEDORA-2021-916e6c5d73 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.