Public bug reported: I noticed that I had a snap that was stuck on an old revision for some reason and attempted to force it to refresh to stable:
$ snap info gitlptools name: gitlptools [...] snap-id: LyyEad7cnNXM2rmBu9ySp7MJDWTKfAsF tracking: latest/stable refresh-date: 2 days ago, at 16:24 GMT channels: stable: b9b9618 2019-02-20 (36) 14MB classic candidate: ↑ beta: ↑ edge: 0+git.cfe2bdc-dirty 2017-12-19 (3) 14MB classic installed: 0+git.a2477ff (9) 14MB classic $ snap refresh --stable gitlptools error: cannot communicate with server: Get http://localhost/v2/changes/1277: dial unix /run/snapd.socket: connect: connection refused Now snapd is stopped and can't start back up at all. syslog says: Jan 20 09:54:37 niejwein systemd[1]: Starting Snappy daemon... Jan 20 09:54:37 niejwein snapd[9861]: AppArmor status: apparmor is enabled and all features are available Jan 20 09:54:37 niejwein snapd[9861]: AppArmor status: apparmor is enabled and all features are available Jan 20 09:54:37 niejwein snapd[9861]: daemon.go:346: started snapd/2.43.1 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-72-generic. Jan 20 09:54:37 niejwein snapd[9861]: daemon.go:439: adjusting startup timeout by 2m35s (pessimistic estimate of 30s plus 5s per snap) Jan 20 09:54:38 niejwein systemd[1]: Started Snappy daemon. Jan 20 09:54:38 niejwein snapd[9861]: handlers.go:2589: PANIC Re-refresh task has 1 tasks waiting for it. Jan 20 09:54:38 niejwein snapd[9861]: panic: Re-refresh task has 1 tasks waiting for it. Jan 20 09:54:38 niejwein snapd[9861]: goroutine 45 [running]: Jan 20 09:54:38 niejwein snapd[9861]: github.com/snapcore/snapd/logger.Panicf(0x555e924913b6, 0x2c, 0xc420455e68, 0x1, 0x1) Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/logger/logger.go:67 +0x171 Jan 20 09:54:38 niejwein snapd[9861]: github.com/snapcore/snapd/overlord/snapstate.(*SnapManager).doCheckReRefresh(0xc4200a6690, 0xc4203cd9e0, 0xc4202a2d70, 0x0, 0x0) Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/overlord/snapstate/handlers.go:2589 +0x567 Jan 20 09:54:38 niejwein snapd[9861]: github.com/snapcore/snapd/overlord/snapstate.(*SnapManager).(github.com/snapcore/snapd/overlord/snapstate.doCheckReRefresh)-fm(0xc4203cd9e0, 0xc4202a2d70, 0x555e92e30320, 0x0) Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/overlord/snapstate/snapmgr.go:429 +0x40 Jan 20 09:54:38 niejwein snapd[9861]: github.com/snapcore/snapd/overlord/state.(*TaskRunner).run.func1(0x0, 0x0) Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/overlord/state/taskrunner.go:195 +0xbb Jan 20 09:54:38 niejwein snapd[9861]: github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).run(0xc4202a2d70, 0xc4204384b0) Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x2d Jan 20 09:54:38 niejwein snapd[9861]: created by github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).Go Jan 20 09:54:38 niejwein snapd[9861]: #011/build/snapd-IqyPU7/snapd-2.43.1/_build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xbb Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Failed with result 'exit-code'. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Triggering OnFailure= dependencies. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Service hold-off time over, scheduling restart. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5. Jan 20 09:54:38 niejwein systemd[1]: Stopped Snappy daemon. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Start request repeated too quickly. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Failed with result 'exit-code'. Jan 20 09:54:38 niejwein systemd[1]: Failed to start Snappy daemon. Jan 20 09:54:38 niejwein systemd[1]: snapd.socket: Failed with result 'service-start-limit-hit'. Jan 20 09:54:38 niejwein systemd[1]: snapd.service: Triggering OnFailure= dependencies. Help? ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: snapd 2.42.1+18.04 ProcVersionSignature: Ubuntu 4.15.0-72.81-generic 4.15.18 Uname: Linux 4.15.0-72-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.9-0ubuntu7.9 Architecture: amd64 CurrentDesktop: GNOME Date: Mon Jan 20 09:56:18 2020 EcryptfsInUse: Yes InstallationDate: Installed on 2013-03-01 (2515 days ago) InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130223.1) SourcePackage: snapd UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: snapd (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic -- 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 notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1860324/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs