snappy fails to update snap if previous version systemd stop action failed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
Critical
|
Unassigned | ||
Bug Description
previous version of snap failed to install service due to another bug. I modified snap and changed version from 1.0.2 to 1.0.3 .
when I tried to update to the new version, I got:
-------
ubuntu@
=======
Installing ./snappyonie_
issues while running ssh command: Installing /tmp/snappyonie
2015/05/07 18:05:19 Signature check failed, but installing anyway as requested
/tmp/snappyonie
ubuntu@
-------
If I log into the snappy box,
sudo snappy remove snappyonie
also fails with the same error
| affects: | snappy-ubuntu → snappy |
| Michael Vogt (mvo) wrote : | #1 |
| Changed in snappy: | |
| importance: | Undecided → Critical |
| status: | New → Triaged |
| summary: |
- snappy-remote fails to update snap if previous version failed + snappy fails to update snap if previous version systemd stop action + failed |
| John Lenton (chipaca) wrote : | #2 |
I can't seem to reproduce this with current 15.04 nor wily. Could you check and see if it's no longer an issue?
| Changed in snappy: | |
| status: | Triaged → Incomplete |
| Simon Fels (morphis) wrote : | #3 |
We're getting this bug too on 15.04. It seems to have some relation to https:/
| Simon Fels (morphis) wrote : | #4 |
Steps to reproduce:
1. Build nm-snap
$ git clone https:/
$ make
2. Install snap
3. Make some changes on the snap and rebuild it
4. Install the snap again
| Launchpad Janitor (janitor) wrote : | #5 |
[Expired for Snappy because there has been no activity for 60 days.]
| Changed in snappy: | |
| status: | Incomplete → Expired |


Thanks for your bugreport. This is indeed a problem, to reproduce: ======= ======= ======= ======= ==] 100.00 % 824.45 KB/s xkcd-webserver_ 0.4.service] failed with exit status 5: Failed to stop xkcd-webserver_ xkcd-webserver_ 0.4.service: Unit xkcd-webserver_ xkcd-webserver_ 0.4.service not loaded.
- install xkcd-webserver 0.5
- rename to 0.4 on disk and in meta/packages.yaml
- run snappy update xkcd-webserver
and verify that this errors with:
# snappy update xkcd-webserver
Installing xkcd-webserver (0.5)
Starting download of xkcd-webserver
12.23 KB / 12.23 KB [======
Done
[stop xkcd-webserver_
I guess similar results can be triggered with a incorrect stop line, like "Stop=false". In this case snappy should not stop uninstalling the app, just warn, we never want to be in a situation where we can not update because a old version is broken.