webfrontend does not render correctly due to wrong paths

Bug #1933714 reported by darthvader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
prometheus-pushgateway (Ubuntu)
New
Undecided
Unassigned

Bug Description

This refers to prometheus-pushgateway 1.4.0+ds-1 and seems to be an issue specifically with dpkg package and not an upstream issue.

After installation accessing http://localhost:9091 renders a garbled page. Using web developer it's obvious that some resources don't exist in `/usr/share/prometheus/pushgateway/static`, see screenshot attached.

Specifically 2 things are wrong:

1) `/usr/share/prometheus/pushgateway/static/bootstrap4` is there, but it's referred as `bootstrap-4` (note the dash). I've worked around this by:

```
cd /usr/share/prometheus/pushgateway/static
ln -s ../../../javascript/bootstrap4 bootstrap-4
```

2) `/usr/share/prometheus/pushgateway/static/jquery.min.js` is missing. Workaround:

```
cd /usr/share/prometheus/pushgateway/static
ln -s jquery/jquery.min.js jquery.min.js
```

With these changes everything works fine. Maybe the better approach would be to change the references in `/usr/share/prometheus/pushgateway/template.html` to the existing locations.

Revision history for this message
darthvader (sarmbruster) wrote :
description: updated
description: updated
Revision history for this message
Daniel Swarbrick (pressureman) wrote :

Fixed in Debian prometheus-pushgateway package:

prometheus-pushgateway (1.5.1-2) unstable; urgency=medium

  * Team upload
  * Fix jquery and bootstrap4 css paths in 02-Do_not_embed_blobs.patch

 -- Daniel Swarbrick <email address hidden> Mon, 12 Dec 2022 22:41:04 +0000

no longer affects: prometheus-pushgateway (Debian)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.