insufficient logging with snappy install errors
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
High
|
Unassigned | ||
| | 15.04 |
High
|
Unassigned | ||
Bug Description
In trying to help with the docker packaging, I tried to install a docker snap and saw only 'error status 1':
$ sudo snappy install --allow-
Installing /tmp/docker_
2015/04/09 21:32:57 Signature check failed, but installing anyway as requested
exit status 1
Since this was clearly insufficient to diagnose the problem, I then looked in the logs, but all I had was (see http://
Apr 9 21:15:58 localhost kernel: [ 2077.204842] audit: type=1400 audit(142861415
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
Apr 9 21:16:00 localhost snappy[952]: ERROR:snappy:
This did not give enough information to show what the problem was. In addition, because the install failed, everything was garbage collected and so there was nothing to debug. This made it extremely difficult to diagnose. Ideally the error reporting from 'snappy install' would be improved, but at a minimum the logging to syslog should be improved.
Turned out, a bad commit to meta/docker-
| affects: | snappy-ubuntu → snappy |
| Changed in snappy: | |
| assignee: | nobody → Michael Terry (mterry) |
| Changed in snappy: | |
| assignee: | Michael Terry (mterry) → nobody |
| Michael Vogt (mvo) wrote : | #2 |
I'm pretty sure this is fixed with the commits:
http://
http://
With the v2 of 15.04/stable the error is still pretty useless:
$ sudo snappy install --allow-
Installing ./docker_
2015/06/16 08:56:13 Signature check failed, but installing anyway as requested
2015/06/16 08:56:14 Warning: failed to remove /apps/docker/
./docker_
With v3 of 15.04/stable I get:
$ sudo snappy install docker_
Installing docker_
2015/06/16 08:58:25 Signature check failed, but installing anyway as requested
docker_
File "/usr/bin/
sys.
File "/usr/bin/
'--
File "/usr/lib/
(rc, output))
apparmor.
')
which is much more useful.
| Changed in snappy: | |
| status: | Incomplete → Fix Released |


I'm having a hard time reproducing. Every syntax error I introduce into an apparmor file gets caught at install time with an exception from /usr/bin/ aa-profile- hook.
I tried to discover what code you were using when you filed this. So I went back to r15 of lp:~snappy-dev/snappy-hub/docker. But after fixing up its yaml (no longer valid), I was able to install it fine.
Can I have a sample package that reproduces this?