Bug 2035664 - error: cannot list snaps: cannot communicate with server: timeout exceeded while waiting for response
Summary: error: cannot list snaps: cannot communicate with server: timeout exceeded wh...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: snapd
Version: epel8
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-26 16:39 UTC by Yuping Zuo
Modified: 2022-01-05 02:11 UTC (History)
4 users (show)

Fixed In Version: snapd-2.54.1-1.fc34 snapd-2.54.1-1.el8 snapd-2.54.1-1.fc35 snapd-2.54.1-1.el7
Clone Of:
Environment:
Last Closed: 2022-01-05 01:22:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Yuping Zuo 2021-12-26 16:39:50 UTC
Description of problem:
Using the latest version of snapd provided by EPEL causes the service to become unresponsive. An error is printed in the console stating that timeout exceeded. Downgrading snapd would resolve this issue.

Version-Release number of selected component (if applicable):
2.53.4-1

How reproducible:
Always.

Steps to Reproduce:
1. dnf install snapd
2. systemctl enable --now snapd.socket
3. If you run `snap list` right now, it works fine.
4. snap install core

Actual results:
The last command (step 4) is stuck for a long time, after which an error is printed:
error: cannot communicate with server: timeout exceeded while waiting for response
After this, any command (including snap list) would output a similar error message.

Expected results:
The command succeed without any error.

Additional info:
- It appears that this happens in not just EL8 but EL7 as well. Also, according to Google "snapd 2.53.4 timeout exceeded", a number of related posts all from EL-derivative users are created in the last week.
- Following this post on CentOS forum, I have downloaded an older version of snapd from EPEL archive, i.e. running `dnf install https://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/Packages/s/snapd-2.43.3-1.el8.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/Packages/s/snap-confine-2.43.3-1.el8.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/Packages/s/snapd-selinux-2.43.3-1.el8.noarch.rpm` in step 1 instead, and it works. Source: https://forums.centos.org/viewtopic.php?f=48&p=330085

Comment 1 Maciek Borzecki 2021-12-26 21:01:37 UTC
Were you able to collect any logs from snapd? Specifically `journalctl -u snapd` would help.

Comment 2 Maciek Borzecki 2021-12-27 09:00:00 UTC
Also reported here: https://bugs.launchpad.net/snapd/+bug/1955580 The problem is caused by a missing bit in the SELinux policy. An enhancement was cherry picked to 2.53.4 but a patch that updated the policy was missed in the process. I'll update to 2.54.1 which includes all the needed changes.

Comment 3 Fedora Update System 2021-12-27 10:37:31 UTC
FEDORA-2021-867fb68ad1 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-867fb68ad1

Comment 4 Fedora Update System 2021-12-27 10:37:32 UTC
FEDORA-2021-9ec6906fc9 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9ec6906fc9

Comment 5 Fedora Update System 2021-12-27 10:38:13 UTC
FEDORA-EPEL-2021-38fd34170a has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-38fd34170a

Comment 6 Fedora Update System 2021-12-27 10:38:14 UTC
FEDORA-EPEL-2021-e2d02fdf27 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-e2d02fdf27

Comment 7 Fedora Update System 2021-12-28 01:25:52 UTC
FEDORA-2021-9ec6906fc9 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9ec6906fc9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9ec6906fc9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-12-28 01:35:43 UTC
FEDORA-EPEL-2021-38fd34170a has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-38fd34170a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-12-28 01:47:40 UTC
FEDORA-EPEL-2021-e2d02fdf27 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-e2d02fdf27

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-12-28 01:58:58 UTC
FEDORA-2021-867fb68ad1 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-867fb68ad1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-867fb68ad1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2022-01-05 01:22:41 UTC
FEDORA-2021-9ec6906fc9 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2022-01-05 01:44:43 UTC
FEDORA-EPEL-2021-38fd34170a has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-01-05 02:04:01 UTC
FEDORA-2021-867fb68ad1 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2022-01-05 02:11:25 UTC
FEDORA-EPEL-2021-e2d02fdf27 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.