mirror sync broken because juju-run can't run as a non-root user anymore

Bug #1699112 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Fix Released
High
Chris Glass

Bug Description

Hi,

I upgraded a cloud mirror to juju 1.25.12 earlier today, and this broke the mirror sync. The cron job fails this way :

$ sudo -u www-sync juju-run ubuntu-repository-cache/0 /var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/ubuntu-repository-cache-sync
error: dialing juju run socket: dial unix /var/lib/juju/agents/unit-ubuntu-repository-cache-0/run.socket: connect: permission denied

This is because in 1.25.12 (and 2.1.3 and following), the run.socket is only accessible by root (see bug 1682411).

Hence, juju-run fails when run as www-data.

Thanks

Related branches

Chris Glass (tribaal)
Changed in ubuntu-repository-cache:
importance: Undecided → High
assignee: nobody → Chris Glass (tribaal)
Chris Glass (tribaal)
Changed in ubuntu-repository-cache:
status: New → In Progress
Chris Glass (tribaal)
Changed in ubuntu-repository-cache:
status: In Progress → Fix Committed
Revision history for this message
Junien F (axino) wrote :

Hi,

When will this fix be released ?

Thanks

Revision history for this message
Junien F (axino) wrote :

The fix is present in the charmstore charm.

Changed in ubuntu-repository-cache:
status: Fix Committed → Fix Released
description: updated
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.