Juju 2.9.16 ERROR permission denied when doing relation-set or relation-get

Bug #1952221 reported by Diko Parvanov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju
Undecided
Unassigned

Bug Description

A lot of charms in error state, can't set or get relations in different units.

For example running: relation-get --format=json -r dashboards:209 - grafana/0 in debug-hooks results in 'ERROR permission denied'

stracing this results in this:

However this file '/var/lib/juju/agents/unit-grafana-0/agent.socket' doesn't exist, there is run.socket, but not agent.socket:

newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/lib/juju/agents/unit-grafana-0/charm", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/lib/juju/agents/unit-grafana-0/charm", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(3, {sa_family=AF_UNIX, sun_path=@"/var/lib/juju/agents/unit-grafana-0/agent.socket"}, 51) = 0
epoll_create1(EPOLL_CLOEXEC) = 4
pipe2([5, 6], O_NONBLOCK|O_CLOEXEC) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 5, {EPOLLIN, {u32=12757296, u64=12757296}}) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=4000936304, u64=139796596486512}}) = 0
getsockname(3, {sa_family=AF_UNIX}, [112->2]) = 0
getpeername(3, {sa_family=AF_UNIX, sun_path=@"/var/lib/juju/agents/unit-grafana-0/agent.socket"}, [112->51]) = 0
write(3, "/\377\201\3\1\1\7Request\1\377\202\0\1\2\1\rServiceMet"..., 344) = 344
read(3, 0xc00016d000, 4096) = -1 EAGAIN (Resource temporarily unavailable)
epoll_pwait(4, [{EPOLLOUT, {u32=4000936304, u64=139796596486512}}], 128, 0, NULL, 2) = 1
epoll_pwait(4, [{EPOLLIN|EPOLLOUT, {u32=4000936304, u64=139796596486512}}], 128, -1, NULL, 0) = 1
futex(0xc001b8, FUTEX_WAKE_PRIVATE, 1) = 1
read(3, ":\377\201\3\1\1\10Response\1\377\202\0\1\3\1\rServiceMe"..., 4096) = 165
futex(0xc000046bc8, FUTEX_WAKE_PRIVATE, 1) = 1
read(3, 0xc00016d000, 4096) = -1 EAGAIN (Resource temporarily unavailable)
write(1, "", 0) = 0
write(2, "ERROR permission denied\n", 24ERROR permission denied
) = 24
epoll_ctl(4, EPOLL_CTL_DEL, 3, 0xc00011da5c) = 0
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers