[certbot/snapd] error: cannot list snaps: cannot communicate with server
snapd.service가 멈추어 있을 때 이런 오류가 나올 수 있다.
# snap list
error: cannot list snaps: cannot communicate with server: Get "http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: no such file or directory
snapd를 통하여 letsencrypt를 쓰고 있을 때에도 오류가 나올 수 있다.
# certbot
cannot snap-exec: cannot exec "/var/lib/snapd/snap/certbot/4482/bin/python3": no such file or directory
이런 때에는 snapd.service를 시작해 준다.
# systemctl start snapd.service
# snap list
Name Version Rev Tracking Publisher Notes
certbot 3.3.0 4482 latest/stable certbot-eff✓ classic
certbot-dns-rfc2136 3.3.0 4066 latest/stable certbot-eff✓ -
core20 20250213 2501 latest/stable canonical✓ base
core24 20241217 739 latest/stable canonical✓ base,disabled
snapd 2.67.1 23771 latest/stable canonical✓ snapd
아래처럼 snapd.socket만 재시작하면 아래와 같은 오류가 나기도 하는데, 그런 때에는 위처럼 snapd.service를 띄우거나 "snap refresh"로 구성 요소를 판올림하면 문제가 풀리기도 한다.
# snap list
error: cannot list snaps: cannot communicate with server: Get "http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: connection refused
# snap refresh
certbot-dns-rfc2136 4.0.0 from Certbot Project (certbot-eff✓) refreshed
덧글을 달아 주세요