Cannot run configure hook of Next Cloud

I am following a tutorial to install Snapd and NextCloud. However, I had a error when I do sudo snap install nextcloud.
The snap download the Next Cloud Successfully but it has a communication error when Snap trying to configure hook. Here is the error log:

> Blockquote
root@TestServer:~# sudo snap install nextcloud
error: cannot perform the following tasks:
- Mount snap "nextcloud" (26119) ([stop snap-nextcloud-26119.mount] failed with exit status 1: Job failed. See "journalctl -xe" for details.
)
- Run configure hook of "nextcloud" snap if present (run hook "configure": 
-----
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
-----)

I am using lxc and here is the status of snapd.

root@TestServer:~# systemctl status snapd.service
● snapd.service - Snap Daemon
     Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-03-12 05:53:50 UTC; 12min ago
TriggeredBy: ● snapd.socket
   Main PID: 706 (snapd)
      Tasks: 23 (limit: 47639)
     Memory: 37.4M
     CGroup: /system.slice/snapd.service
             └─706 /usr/lib/snapd/snapd

Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: socket: permission denied
Mar 12 06:00:05 TestServer snapd[706]: -----
Mar 12 06:00:19 TestServer systemd[1]: snapd.service: Got notification message from PID 2956, but reception only permitted for main PID 706
Mar 12 06:00:19 TestServer snapd[706]: taskrunner.go:271: [change 12 "Mount snap \"nextcloud\" (26119)" task] failed: [stop snap-nextcloud-26119.mount] failed with exit status 1: Job failed. See "journalctl -xe" for details.
Mar 12 06:00:19 TestServer snapd[706]: handlers.go:496: Reported install problem for "nextcloud" as already-reported

root@TestServer:~# snap version
snap 2.49-1
snapd 2.49-1
series 16
debian -
kernel 5.8.0-41-generic

What version of the snapd debian package do you have installed on this system? We recently found a similar problem with Debian 9 which has snapd 2.21 in the archive