I was having problems with building a snap application. The command: snapcraft --debug was failing with the error:
Consider re-refresh of "snapd" (cannot query the store for updates: got unexpected HTTP status code 503 via POST ...
The /var/log/syslog showed the following:
Aug 7 07:49:34 nadir-X551MA snapd[779]: 2021/08/07 07:49:34 Unsolicited response received on idle HTTP channel starting with "HTTP/1.1 408 Re
quest Time-out\r\ncontent-length: 110\r\ncache-control: no-cache\r\ncontent-type: text/html\r\nconnection: close\r\n\r\n<html><body><h1>408 Re
quest Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"; err=<nil>
This is the same error that was mentioned by the bug reporter
Also the Apparmor logs showed errors. Following is the output of the command: sudo apparmor_status:
5 profiles are in complain mode.
libreoffice-oopslash
libreoffice-soffice
snap.code.code
snap.code.url-handler
snap.snapcraft.snapcraft
I think the problem I had was related to multipass. multipass is used by snapcraft to build snaps. The log messages in /var/log/syslog showed that multipass is not able to reserve an ip address via DHCP. My local wireless router was configured to allow 6 devices to get an ip address via DHCP. All ip addresses were allocated and new devices could not be assigned an ip address. I increased the range of DHCP addresses and rebooted the router. I also rebooted my local computer. After that the command: snapcraft --debug worked without problems.
However the sudo apparmor_status command still showed snap.snapcraft.snapcraft in complain mode.
I was having problems with building a snap application. The command: snapcraft --debug was failing with the error:
Consider re-refresh of "snapd" (cannot query the store for updates: got unexpected HTTP status code 503 via POST ...
The /var/log/syslog showed the following:
Aug 7 07:49:34 nadir-X551MA snapd[779]: 2021/08/07 07:49:34 Unsolicited response received on idle HTTP channel starting with "HTTP/1.1 408 Re r\ncontent- length: 110\r\ncache- control: no-cache\ r\ncontent- type: text/html\ r\nconnection: close\r\ n\r\n<html> <body>< h1>408 Re /body>< /html>\ n"; err=<nil>
quest Time-out\
quest Time-out</h1>\nYour browser didn't send a complete request in time.\n<
This is the same error that was mentioned by the bug reporter
Also the Apparmor logs showed errors. Following is the output of the command: sudo apparmor_status:
5 profiles are in complain mode. oopslash soffice code.url- handler snapcraft. snapcraft
libreoffice-
libreoffice-
snap.code.code
snap.
snap.
I think the problem I had was related to multipass. multipass is used by snapcraft to build snaps. The log messages in /var/log/syslog showed that multipass is not able to reserve an ip address via DHCP. My local wireless router was configured to allow 6 devices to get an ip address via DHCP. All ip addresses were allocated and new devices could not be assigned an ip address. I increased the range of DHCP addresses and rebooted the router. I also rebooted my local computer. After that the command: snapcraft --debug worked without problems.
However the sudo apparmor_status command still showed snap.snapcraft. snapcraft in complain mode.