Snap revert disables all the snap's services

Hi, I have a snap running on Ubuntu Core. I refreshed the snap and when I reverted. When i did, it disables all the snap services. So i had to manually restart all the service as:

sudo snap start --enable snap-name.app-name

How can I revert to previous revision of my snap and make the snapd restart all the services automatically?

Hi, thanks for reaching out. I have a few questions,

  1. What was the previous state of the services before you reverted?
  2. Are you able to reproduce this?
  3. What version of snapd was this with?

Hi,

  • The previous state of all the services were active and enabled.

  • Yes, I can reproduce this, if I try to run "sudo snap revert ". As, I run this command, at the end of this process it displays “Stopping services…”. But never shows them restarting them again. I also ran sudo snap changes and it showed that “core configuration changed” when the service were disabled. hope this helps

  • snapd version is the latest/stable - 2.53.2

Hmm, I cannot reproduce this with a snap on my system that uses services:

$ snap services multipass
Service               Startup  Current  Notes
multipass.multipassd  enabled  active   -
$ snap revert multipass
multipass reverted to 1.8.0
$ snap services multipass
Service               Startup  Current  Notes
multipass.multipassd  enabled  active   -

Note that it is expected that you don’t see a message about starting the services, that will happen in the background, the stopping of the services happens in the foreground however.

After reproducing this situation can you run the following:

snap tasks --last=revert-snap

and provide the output here?