[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-22 Thread John Lenton
** Package changed: snapd (Ubuntu) => snapd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1860324 Title: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it" To manage

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread Maciej Borzecki
After banging my head against the unit tests, I got the PR up that reproduces this scenario: https://github.com/snapcore/snapd/pull/8024 The fix will end up in the same PR at some point. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread John Lenton
Easier would be to set it to Done instead of removing it though -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1860324 Title: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread John Lenton
(to be clear that means set status to 4 in the json) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1860324 Title: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it" To

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread John Lenton
If you're feeling brave and need to get unstuck, edit the state.json to remove the check-rerefresh task and you should be able to start snapd again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread Paweł Stołowski
I had a quick look and it seems that UpdateWithDeviceContext can append "snap-switch-channel" to taskset from doUpdate(), which means a task gets scheduled after "check-rerefresh" (which panics if it finds any tasks waiting for it). AFAIR "check-rerefresh" was meant to be the last in the change.

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread Colin Watson
$ sudo cat /var/lib/snapd/state.json | jq '.data.snaps.gitlptools' { "type": "app", "sequence": [ { "name": "gitlptools", "snap-id": "LyyEad7cnNXM2rmBu9ySp7MJDWTKfAsF", "revision": "36", "channel": "stable", "title": "Launchpad tooling for Git",

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread Colin Watson
snapd is indeed dead and refuses to start, but here's the "snap debug state" output: $ sudo snap debug state /var/lib/snapd/state.json IDStatus Spawn Ready Label Summary 1271 Done3 days ago, at 22:37 GMT 3 days ago, at 22:40 GMT

[Bug 1860324] Re: snapd crashed and can't start: "Re-refresh task has 1 tasks waiting for it"

2020-01-20 Thread Maciej Borzecki
Can you provide the output of `snap changes` and `snap change --last=refresh`? If snapd is dead, make sure to stop it via `systemctl stop snapd{.service,socket}` and then run: snap debug state /var/lib/snapd/state.json snap debug state /var/lib/snapd/state.json --change= to obtain the same