prometheus.promtool cannot write debug file
Bug #1896274 reported by
Joseph Borg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
prometheus-snap |
Confirmed
|
Medium
|
Unassigned |
Bug Description
ubuntu@
error completing debug command: error creating a new archiver: error creating archive "debug.tar.gz": open debug.tar.gz: permission denied
ubuntu@
error completing debug command: error creating a new archiver: error creating archive "debug.tar.gz": open debug.tar.gz: permission denied
I guess this needs the home plug.
Changed in prometheus-snap: | |
status: | New → Confirmed |
To post a comment you must log in.
The home plug was added at some point after this bug was raised, but we're now seeing a different issue:
jsimpso@kif:~$ promtool debug metrics http:// 127.0.0. 1:9103 127.0.0. 1:9103/ metrics
collecting: http://
Compiling debug information complete, all files written in "debug.tar.gz".
jsimpso@kif:~$ promtool debug metrics http:// localhost: 9103 localhost: 9103/metrics localhost: 9103/metrics": dial tcp: lookup localhost on [::1]:53: read udp [::1]:48376- >[::1]: 53: read: connection refused
collecting: http://
error completing debug command: error executing HTTP request: Get "http://
= AppArmor = "snap.prometheu s.promtool" name="/ run/systemd/ resolve/ stub-resolv. conf" pid=2183338 comm="promtool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=101 resolve/ stub-resolv. conf (read) snap.$SNAP_ NAME.* $SNAP_NAME. * /forum. snapcraft. io/t/snap- layouts/ 7207)
Time: Aug 23 11:46:41
Log: apparmor="DENIED" operation="open" profile=
File: /run/systemd/
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/
* adjust program to use /run/snap.
* adjust snap to use snap layouts (https:/
* add one of 'firewall-control, fwupd, network, network-bind, network-control, network-observe' to 'plugs'
= AppArmor = "snap.prometheu s.promtool" name="/etc/hosts" pid=2183338 comm="promtool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 /forum. snapcraft. io/t/snap- layouts/ 7207) /forum. snapcraft. io/t/the- system- files-interface for acceptance criteria)' to 'plugs'
Time: Aug 23 11:46:41
Log: apparmor="DENIED" operation="open" profile=
File: /etc/hosts (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https:/
* add 'system-files (see https:/