Snapd can't communicate with server

Hi everyone!

I hope all is well.

I’ve been having issues with my Nextcloud snap. I can’t access my instance via web browser and when I do get to log in, no files are shown. I posted an issue on the Nextcloud snap GitHub page and it was suggested by the admin that there was a snapd problem as my nextcloud.apache log showed this several times:

error: cannot communicate with server: Post http://localhost/v2/snapctl

I don’t know if any of you guys could shed any light on how to solve this issue.

Thanks in advance for all your valuable help.

Hello! Sorry you’re having issues. Please, what is the output of snap version and snap services?

Sorry I didn’t include this information.

These are the outputs of those commands:

snap version

snap    2.41
snapd   2.41
series  16
ubuntu  18.04
kernel  4.15.0-65-generic

snap services

Service                    Startup  Current   Notes
nextcloud.apache           enabled  active    -
nextcloud.mdns-publisher   enabled  active    -
nextcloud.mysql            enabled  active    -
nextcloud.nextcloud-cron   enabled  active    -
nextcloud.nextcloud-fixer  enabled  inactive  -
nextcloud.php-fpm          enabled  active    -
nextcloud.redis-server     enabled  active    -
nextcloud.renew-certs      enabled  active    -

Thanks for your help.