wal-e no longer works as of snapd 2.37
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
Fix Released
|
Critical
|
Unassigned | ||
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As of snapd 2.37, wal-e is failing as follows:
cannot create user data directory: /var/lib/
2019-02-04 00:45:23 UTC [4636]: [50860-1] db=,user= LOG: archive command failed with exit code 1
2019-02-04 00:45:23 UTC [4636]: [50861-1] db=,user= DETAIL: The failed archive command was: /snap/bin/
2019-02-04 00:45:23 UTC [4636]: [50862-1] db=,user= WARNING: archiving transaction log file "00000001000003
This is because snap-confine removed a special case that accidentally allowed home directories to live under /var/lib: https:/
I've been working around this by downgrading the core snap on affected units, but this doesn't scale well, and will be reverted the next time core is updated.
Changed in postgresql-charm: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
tags: | added: canonical-is |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
Changed in postgresql-charm: | |
status: | Confirmed → Fix Released |
I think we are hitting this also.
Feb 4 18:38:38 juju-c811b4- prod-cdo- oil-8 kernel: [ 2452.008965] audit: type=1400 audit(154930551 8.994:676) : apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile= "/snap/ core/6350/ usr/lib/ snapd/snap- confine" name="/ tmp/snap. rootfs_ mpbcyx/ var/lib/ jenkins/ " pid=20203 comm="snap-confine" srcname= "/srv/volume/ var/lib/ jenkins/ " flags="rw, rbind"