snap remove not working after snap try

Bug #1819932 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Expired
Undecided
Unassigned

Bug Description

snap remove fails after use of "snap try" and removing used directory(prime) later in the process.

snap version
snap 2.37.4
snapd 2.37.4
series 16
ubuntu 18.04
kernel 4.15.0-36-generic

command:
$ snap remove opengrok
2019-03-13T12:42:13Z ERROR cannot discard snap namespace "opengrok", will retry in 3 mins: cannot discard preserved namespace of snap "opengrok": cannot unlink opengrok.mnt: Device or resource busy

snap-discard-ns output:
https://paste.ubuntu.com/p/GvzFrBFdfq/

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Hi Ondrej, I cannot reproduce (snap version 2.41+git1457.73f3b15~ubuntu16.04.1, edge channel): I've "mysnap" snap directory, then:
1. sudo snap try mysnap
2. rm -rf mysnap
3. sudo snap remove mysnap

(works, snap gets uninstalled).

Is that the scenario? Can you retest with current snapd?

Changed in snapd:
status: New → Incomplete
Revision history for this message
Ondrej Kubik (ondrak) wrote : Re: [Bug 1819932] Re: snap remove not working after snap try

Unfortunately I can't test this, as I had to recover system from broken
state to continue with my daily development. So I can only update if I get
system to this state again

On Mon, 2 Sep 2019, 17:26 Paweł Stołowski, <email address hidden>
wrote:

> Hi Ondrej, I cannot reproduce (snap version
> 2.41+git1457.73f3b15~ubuntu16.04.1, edge channel): I've "mysnap" snap
> directory, then:
> 1. sudo snap try mysnap
> 2. rm -rf mysnap
> 3. sudo snap remove mysnap
>
> (works, snap gets uninstalled).
>
> Is that the scenario? Can you retest with current snapd?
>
> ** Changed in: snapd
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1819932
>
> Title:
> snap remove not working after snap try
>
> Status in snapd:
> Incomplete
>
> Bug description:
> snap remove fails after use of "snap try" and removing used
> directory(prime) later in the process.
>
> snap version
> snap 2.37.4
> snapd 2.37.4
> series 16
> ubuntu 18.04
> kernel 4.15.0-36-generic
>
> command:
> $ snap remove opengrok
> 2019-03-13T12:42:13Z ERROR cannot discard snap namespace "opengrok",
> will retry in 3 mins: cannot discard preserved namespace of snap
> "opengrok": cannot unlink opengrok.mnt: Device or resource busy
>
>
> snap-discard-ns output:
> https://paste.ubuntu.com/p/GvzFrBFdfq/
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snapd/+bug/1819932/+subscriptions
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd because there has been no activity for 60 days.]

Changed in snapd:
status: Incomplete → Expired
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.