[Bug 1208752] New: server:monitoring prometheus: Opening the WebUI fails with Error opening React index.html: open static/react/index.html: no such file or directory
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 Bug ID: 1208752 Summary: server:monitoring prometheus: Opening the WebUI fails with Error opening React index.html: open static/react/index.html: no such file or directory Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: nix@opensuse.org Reporter: opensuse_buildservice@ojkastl.de QA Contact: screening-team-bugs@suse.de CC: witold.bedyk@suse.com Found By: --- Blocker: --- The current version of Prometheus in Factory as well as the latest proposed update to 2.42 (SR#1067528) start the prometheus service successfully. The /metrics endpoint seems to be working, but trying to open the WebUI (127.0.0.1:9090/, which redirects to localhost:9090/graph) does only show a warning: Error opening React index.html: open static/react/index.html: no such file or directory Preliminary discussion is in the discussion to SR#1067528. Most probably this was introduced by the large update in SR#1057939 https://build.opensuse.org/request/show/1057939 Some things that were discussed already: - using the latest promu package to build prometheus fails (see the errors for openSUSE_Tumbleweed, while openSUSE_Tumbleweed_direct works) - removing the `builtinassets` from the .promu.yml allows successful builds with the latest promu version, but then the WebAssets are not builtin and thus missing - An older bug report for Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=1902496) mentions the same error I am currently trying to package the webassets manually outside of OBS, as it is done on other packages (IIRC grafana). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c1 --- Comment #1 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- Forgot to mention: Discussion in the SR is with Witek Bedyk (who should be in CC on this bug) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c2 --- Comment #2 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- OK, I got a little further: The error message changed... https://build.opensuse.org/package/rdiff/home:ojkastl_buildservice:Branch_server_monitoring/golang-github-prometheus-prometheus?linkrev=base&rev=5 Error opening React index.html: open static/react/index.html.gz: file does not exist (there is a .gz after the index.html...) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 Witek Bedyk <witold.bedyk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|nix@opensuse.org |monitoring-devel@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c3 --- Comment #3 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- And I seem to have solved the issue: https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_ser... Revision 6 added the pieces. Revision 7 added a PACKAGING_README.md, that contains the steps necessary to create the tarball locally, outside of OBS. The package is working with the latest promu version. Turns out the error was not caused by promu, but by missing things aka the assets for the UI. Witek, can you test the package, please? If it works, can you please test the instructions for creating the tarball locally? Kind Regards Johannes -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 Johannes Kastl <opensuse_buildservice@ojkastl.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c4 --- Comment #4 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- (And of course, Witek, if there are any suggestions on making this nicer/easier/safer, feel free to point them out...) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c5 --- Comment #5 from Witek Bedyk <witold.bedyk@suse.com> --- Thanks, good work. I've added a Makefile similar to one in Grafana package to simplify the manual steps. We should take closer look at the web assets and evaluate if we can drop some parts of it to reduce the size of the tarball. https://build.opensuse.org/request/show/1068235 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c6 --- Comment #6 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- After small corrections I have accepted Witeks SR, tested that everything still works and have now submitted it in SR#1068540 https://build.opensuse.org/request/show/1068540 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 http://bugzilla.opensuse.org/show_bug.cgi?id=1208752#c7 --- Comment #7 from Johannes Kastl <opensuse_buildservice@ojkastl.de> --- Small corrections and adaptions done, the latest SR is SR#1068670 https://build.opensuse.org/request/show/1068670 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208752 Witek Bedyk <witold.bedyk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|witold.bedyk@suse.com | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com