I'm trying to install Rocket Chat server via snaps. When I try to execute:
sudo snap install rocketchat-server
I get the following error:
error: cannot communicate with server:
Post http://localhost/v2/snaps/rocketchat-server:
dial unix /run/snapd/socket: connect: connection refused
I'm getting the same error when I try to list snaps or any other related command. Any ideas please?
Here is the output of journalctl -u snapd.service
systemd[1]: Started Snappy daemon.
/usr/lib/snapd/snapd[6186]: patch.go:65: Patching system state from level 3 to 4
snapd[6186]: 2017/01/18 18:31:48.253833 patch.go:65: Patching system state from level 3 to 4
usr/lib/snapd/snapd[6186]: patch.go:72: Cannot patch: cannot get snap state from "rocket-server": <nil>
snapd[6186]: 2017/01/18 18:31:48.267963 patch.go:72 Cannot patch: cannot get snap state from "rocket-server": <nil>
snapd[6186]: error: cannot patch system state from level 3 to 4: cannot get snap state for "rocketchat-server": <nil>
snapd.service: Main process exited, code=exited, status=1/FAILURE
snapd.service: Unit entered failed state.
snapd.service: Failed with result 'exit-code'
snapd.service: Service hold-off time over, scheduling restart.
snapd.service: Stopped Snappy daemon.
systemctl status snapd? – Kyle Jan 17 '17 at 16:29systemctl start snapd? If after you run that command it's still not running, please show the output ofjournalctl -u snapd.service. Note that it's probably best to show such things as edits of the original question due to the formatting issues (and length). – Kyle Jan 18 '17 at 16:10