clearlinux / swupd-client

Software update client
Other
116 stars 62 forks source link

swupd communicating with server time out #905

Closed chiachuanwu closed 5 years ago

chiachuanwu commented 5 years ago

~$>sudo swupd bundle-list encounter slow response from swupd server , error log as below:

Error: Curl - Communicating with server timed out
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar'
Waiting 10 seconds before retrying the download
Retry #1 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar'
Waiting 20 seconds before retrying the download
Retry #2 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar

Environment (please complete the following information):

$ swupd info
Installed version: 28460
Version URL:       https://download.clearlinux.org/update/
Content URL:       https://download.clearlinux.org/update/
otaviobp commented 5 years ago

This looks like a problem in the network. Can you use curl to download files?

curl https://cdn.download.clearlinux.org/update/version/format27/latest

If not, try to restart the network manager:

sudo systemctl restart NetworkManager

And if you are on a proxy environment check your proxy configurations.

chiachuanwu commented 5 years ago

Hi @otaviobp thanks for reply. i tried steps below , seems not the proxy the configuration problem, not sure is the swupd problem itself.

buildat@clr-kblnuc ~ $
buildat@clr-kblnuc ~ $ curl https://cdn.download.clearlinux.org/update/version/format27/latest
29050
buildat@clr-kblnuc ~ $ sudo swupd bundle-list
Error: Curl - Communicating with server timed out
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar'
Waiting 10 seconds before retrying the download
Retry #1 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar'
Waiting 20 seconds before retrying the download
Retry #2 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar'
Waiting 40 seconds before retrying the download
Retry #3 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
castulo commented 5 years ago

@chiachuanwu can you try running the command with the --debug flag to see if we get more info? $ sudo swupd bundle-list --debug

chiachuanwu commented 5 years ago

hi @castulo thanks for the reply, below is the debug log :

buildat@clr-kblnuc ~ $ sudo swupd bundle-list --debug
2019-04-29 09:15:35 (src/globals.c:786)           Experimental option --debug. Not fully supported yet.
2019-04-29 09:15:35 (src/curl.c:131)              Debug: Curl - check_connection url: https://cdn.download.clearlinux.org/update/
2019-04-29 09:15:35 (src/curl.c:171)              Debug: Curl - Download error - (5) Couldn't resolve proxy name
2019-04-29 09:15:35 (src/curl.c:221)              Debug: Curl - Trying fallback CA path /usr/share/ca-certs/.prebuilt-store/anchors
2019-04-29 09:15:35 (src/curl.c:131)              Debug: Curl - check_connection url: https://cdn.download.clearlinux.org/update/
2019-04-29 09:15:35 (src/curl.c:171)              Debug: Curl - Download error - (5) Couldn't resolve proxy name
2019-04-29 09:15:35 (src/curl.c:232)              Error: Failed to connect to update server: https://cdn.download.clearlinux.org/update/
2019-04-29 09:15:35 (src/curl.c:236)              Possible solutions for this problem are:
        Fix the system clock
        Run 'swupd info' to check if the urls are correct
        Check if the server SSL certificate is trusted by your system ('clrtrust generate' may help)
2019-04-29 09:15:35 (src/curl.c:530)              Debug: Curl - Start sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar
2019-04-29 09:15:35 (src/curl.c:418)              Debug: Curl - process_curl_error_codes - curl_ret = 5
2019-04-29 09:15:35 (src/curl.c:421)              Error: Curl - Could not resolve proxy
2019-04-29 09:15:35 (src/curl.c:539)              Debug: Curl - Complete sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar, status=7
Waiting 10 seconds before retrying the download
Retry #1 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
2019-04-29 09:15:45 (src/curl.c:530)              Debug: Curl - Start sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar
2019-04-29 09:15:45 (src/curl.c:418)              Debug: Curl - process_curl_error_codes - curl_ret = 5
2019-04-29 09:15:45 (src/curl.c:421)              Error: Curl - Could not resolve proxy
2019-04-29 09:15:45 (src/curl.c:539)              Debug: Curl - Complete sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar, status=7
Waiting 20 seconds before retrying the download
Retry #2 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
2019-04-29 09:16:05 (src/curl.c:530)              Debug: Curl - Start sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar
2019-04-29 09:16:05 (src/curl.c:418)              Debug: Curl - process_curl_error_codes - curl_ret = 5
2019-04-29 09:16:05 (src/curl.c:421)              Error: Curl - Could not resolve proxy
2019-04-29 09:16:05 (src/curl.c:539)              Debug: Curl - Complete sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar, status=7
Waiting 40 seconds before retrying the download
Retry #3 downloading from https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar
2019-04-29 09:16:45 (src/curl.c:530)              Debug: Curl - Start sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar
2019-04-29 09:16:45 (src/curl.c:418)              Debug: Curl - process_curl_error_codes - curl_ret = 5
2019-04-29 09:16:45 (src/curl.c:421)              Error: Curl - Could not resolve proxy
2019-04-29 09:16:45 (src/curl.c:539)              Debug: Curl - Complete sync download: https://cdn.download.clearlinux.org/update//28950/Manifest.MoM.tar -> /var/lib/swupd/28950/Manifest.MoM.tar, status=7
Maximum number of retries reached
Failed to retrieve 28950 MoM manifest
Warning: Could not determine which installed bundles are experimental
Babel
NetworkManager
R-basic
R-datasets
R-extras
R-stan
Remmina
Sphinx
acl
acpica-unix2
alsa-utils
ansible
atom
baobab
bc
bcc
binutils
bison
bootloader
c-basic
cabextract
ceph
cheese
cloc
cloud-api
clr-network-troubleshooter
computer-vision-basic
computer-vision-models
containers-basic
cpio
cryptography
curl
darktable
database-basic
desktop
desktop-apps
desktop-apps-extras
desktop-assets
desktop-autostart
desktop-dev
desktop-gnomelibs
desktop-locales
dev-utils
dev-utils-dev
devpkg-GConf
devpkg-LVM2
devpkg-LibRaw
devpkg-NetworkManager
devpkg-R
devpkg-SDL
devpkg-SDL2
devpkg-SDL2_gfx
devpkg-SDL2_image
devpkg-SDL2_mixer
devpkg-SDL2_net
devpkg-SDL2_ttf
devpkg-SDL_gfx
devpkg-SDL_image
devpkg-SDL_mixer
devpkg-SDL_net
devpkg-SDL_ttf
devpkg-acl
devpkg-alsa-lib
devpkg-appstream-glib
devpkg-apr
devpkg-apr-util
devpkg-at-spi2-atk
devpkg-at-spi2-core
devpkg-atk
devpkg-atkmm
devpkg-attr
devpkg-audit
devpkg-babl
devpkg-base
devpkg-bluez
devpkg-boost
devpkg-brotli
devpkg-cairo
devpkg-cairomm
devpkg-cheese
devpkg-clutter
devpkg-clutter-gst
devpkg-cmrt
devpkg-cogl
devpkg-colord
devpkg-compat-enchant-soname1
devpkg-compat-fuse-soname2
devpkg-compat-gegl
devpkg-compat-gtksourceview-soname3
devpkg-cryptsetup
devpkg-cups-filters
devpkg-curl
devpkg-cyrus-sasl
devpkg-dbus
devpkg-dbus-glib
devpkg-e2fsprogs
devpkg-elfutils
devpkg-enchant
devpkg-evolution
devpkg-evolution-data-server
devpkg-exiv2
devpkg-expat
devpkg-fann
devpkg-fftw
devpkg-flac
devpkg-flatpak
devpkg-font-util
devpkg-fontconfig
devpkg-freeglut
devpkg-freetype
devpkg-fribidi
devpkg-fuse
devpkg-fwupd
devpkg-gcab
devpkg-gcr
devpkg-gdk-pixbuf
devpkg-gdm
devpkg-gegl
devpkg-geoclue
devpkg-geocode-glib
devpkg-gexiv2
devpkg-gfbgraph
devpkg-gflags
devpkg-gimp
devpkg-gjs
devpkg-glib
devpkg-glibmm
devpkg-glog
devpkg-glu
devpkg-gmime
devpkg-gnome-autoar
devpkg-gnome-bluetooth
devpkg-gnome-desktop
devpkg-gnome-menus
devpkg-gnome-online-accounts
devpkg-gnome-panel
devpkg-gnome-settings-daemon
devpkg-gnome-software
devpkg-gnome-video-effects
devpkg-gnutls
devpkg-gobject-introspection
devpkg-googletest
devpkg-gperftools
devpkg-graphite
devpkg-grilo
devpkg-grilo-plugins
devpkg-gsettings-desktop-schemas
devpkg-gsl
devpkg-gsound
devpkg-gspell
devpkg-gst-plugins-bad
devpkg-gst-plugins-base
devpkg-gstreamer
devpkg-gtk
devpkg-gtk-doc
devpkg-gtk3
devpkg-gtkmm3
devpkg-gtkplus
devpkg-gtkspell3
devpkg-guile
devpkg-gutenprint
devpkg-harfbuzz
devpkg-hwloc
devpkg-icu4c
devpkg-ipmctl
devpkg-ipset
devpkg-iptables
devpkg-iso-codes
devpkg-json-c
devpkg-json-glib
devpkg-kmod
devpkg-krb5
devpkg-lcms2
devpkg-libX11
devpkg-libXScrnSaver
devpkg-libXau
devpkg-libXcursor
devpkg-libXdamage
devpkg-libXdmcp
devpkg-libXext
devpkg-libXfixes
devpkg-libXfont
devpkg-libXfont2
devpkg-libXft
devpkg-libXmu
devpkg-libXpm
devpkg-libXres
devpkg-libXt
devpkg-libXtst
devpkg-libXv
devpkg-libXvMC
devpkg-libXxf86misc
devpkg-libXxf86vm
devpkg-libarchive
devpkg-libassuan
devpkg-libatasmart
devpkg-libcanberra
devpkg-libcap
devpkg-libcap-ng
devpkg-libcgroup
devpkg-libconfig
devpkg-libcroco
devpkg-libdatrie
devpkg-libdazzle
devpkg-libdrm
devpkg-libepoxy
devpkg-libevdev
devpkg-libevent
devpkg-libexif
devpkg-libffi
devpkg-libfontenc
devpkg-libgd
devpkg-libgdata
devpkg-libgee
devpkg-libgnomekbd
devpkg-libgpg-error
devpkg-libgphoto2
devpkg-libgsystem
devpkg-libgtop
devpkg-libgudev
devpkg-libgusb
devpkg-libgweather
devpkg-libical
devpkg-libidn
devpkg-libidn2
devpkg-libinput
devpkg-libiscsi
devpkg-libjpeg-turbo
devpkg-libmediaart
devpkg-libmicrohttpd
devpkg-libmnl
devpkg-libmspack
devpkg-libmtp
devpkg-libmypaint
devpkg-libndp
devpkg-libnetfilter_conntrack
devpkg-libnetfilter_cthelper
devpkg-libnetfilter_cttimeout
devpkg-libnetfilter_queue
devpkg-libnfnetlink
devpkg-libnftnl
devpkg-libnl
devpkg-libnotify
devpkg-liboauth
devpkg-libogg
devpkg-libosinfo
devpkg-libpcap
devpkg-libpciaccess
devpkg-libpeas
devpkg-libpinyin
devpkg-libpipeline
devpkg-libpng
devpkg-libpsl
devpkg-libpthread-stubs
devpkg-librsvg
devpkg-libsamplerate
devpkg-libsass
devpkg-libseccomp
devpkg-libsecret
devpkg-libsigcplusplus
devpkg-libsmbios
devpkg-libsoup
devpkg-libspectre
devpkg-libsrtp
devpkg-libssh2
devpkg-libstoragemgmt
devpkg-libtasn1
devpkg-libthai
devpkg-libtirpc
devpkg-libunwind
devpkg-libusb
devpkg-libuser
devpkg-libva
devpkg-libwacom
devpkg-libwebp
devpkg-libwnck3
devpkg-libxcb
devpkg-libxkbcommon
devpkg-libxkbfile
devpkg-libxklavier
devpkg-libxml2
devpkg-libxslt
devpkg-libyami
devpkg-libzip
devpkg-llvm
devpkg-lua
devpkg-lz4
devpkg-mediasdk
devpkg-mesa
devpkg-metacity
devpkg-metrics-discovery
devpkg-mozjs52
devpkg-mozjs60
devpkg-mpg123
devpkg-multipath-tools
devpkg-mutter
devpkg-nautilus
devpkg-ncurses
devpkg-ndctl
devpkg-nettle
devpkg-network-manager-applet
devpkg-newt
devpkg-nftables
devpkg-nghttp2
devpkg-nspr
devpkg-nss
devpkg-ntfs-3g
devpkg-open-iscsi
devpkg-opencv
devpkg-openmpi
devpkg-openssl
devpkg-openvswitch
devpkg-opus
devpkg-orc
devpkg-ostree
devpkg-p11-kit
devpkg-pacrunner
devpkg-pango
devpkg-pangomm
devpkg-parted
devpkg-pciutils
devpkg-pcre
devpkg-pcre2
devpkg-pipewire
devpkg-pixman
devpkg-pkcs11-helper
devpkg-pmdk
devpkg-popt
devpkg-postgresql
devpkg-procps-ng
devpkg-protobuf-c
devpkg-pulseaudio
devpkg-pygobject
devpkg-qpdf
devpkg-qtbase
devpkg-qtdeclarative
devpkg-qttools
devpkg-rdma-core
devpkg-readline
devpkg-rest
devpkg-shared-mime-info
devpkg-sqlite-autoconf
devpkg-startup-notification
devpkg-subunit
devpkg-systemd
devpkg-tbb
devpkg-telemetrics-client
devpkg-tiff
devpkg-uhttpmock
devpkg-userspace-rcu
devpkg-util-linux
devpkg-util-macros
devpkg-v4l-utils
devpkg-vala
devpkg-wayland
devpkg-wayland-protocols
devpkg-webkitgtk
devpkg-woff2
devpkg-xapian-core
devpkg-xcb-proto
devpkg-xcb-util-cursor
devpkg-xdg-desktop-portal
devpkg-xf86-input-wacom
devpkg-xkbcomp
devpkg-xkeyboard-config
devpkg-xorg-server
devpkg-xorgproto
devpkg-xtrans
devpkg-xz
devpkg-zlib
devpkg-zstd
diffoscope
diffutils
dnf
docbook-utils
docutils
dosfstools
doxygen
dpdk
editors
emacs
eog
ethtool
evince
evolution
file
file-roller
findutils
fio
firefox
flatpak
flex
fontforge
fonts-basic
fonttools
fuse
fwupdate
games
gdb
geany
gedit
gimp
git
gjs
glibc-locale
glmark2
global
gnome-base-libs
gnome-calculator
gnome-characters
gnome-color-manager
gnome-disk-utility
gnome-font-viewer
gnome-logs
gnome-music
gnome-photos
gnome-screenshot
gnome-system-monitor
gnome-todo
gnome-weather
gnuplot
go-basic
gparted
gpgme
gphoto2
graphviz
gstreamer
gvim
gzip
hardware-gpu
hardware-printing
hardware-uefi
hexchat
htop
httpd
hwloc
iasimage
icdiff
inkscape
inotify-tools
intltool
ipmitool
iproute2
iptables
irssi
java-basic
joe
jq
jupyter
kbd
keepalived
kernel-install
kernel-lts2018
kernel-native
koji
kvm-host
less
lib-imageformat
lib-opengl
lib-openssl
lib-samba
libX11client
libarchive
libglib
libstdcpp
libva-utils
libxml2
libxslt
linux-firmware
linux-firmware-extras
linux-firmware-wifi
linux-tools
llvm
locales
machine-learning-basic
machine-learning-mycroft
machine-learning-pytorch
machine-learning-tensorflow
mail-utils
mail-utils-dev
make
man-pages
mariadb
minetest
minetestserver
minicom
mixer
mkosi
mutt
nasm
nautilus
net-tools
network-basic
network-basic-dev
nfs-utils
nginx
nodejs-basic
notmuch
octave
offlineimap
openblas
openldap
openmpi
openssh-server
openssl
openvswitch
os-clr-on-clr
os-core
os-core-dev
os-core-update
os-core-update-dev
os-core-webproxy
os-installer
os-testsuite
os-testsuite-graphics
os-testsuite-phoronix-desktop
os-testsuite-phoronix-server
p11-kit
package-builder
package-utils
parallel
parted
patch
perl-basic
perl-basic-dev
php-basic
pidgin
plzip
pmdk
polkit
postgresql
powertop
procps-ng
pulseaudio
pxe-server
pygobject
python-data-science
python-extras
python2-basic
python3-basic
python3-tcl
qemu-guest-additions
qt-basic
qt-core
quassel
redis-native
ruby-basic
rust-basic
samba
scons
seahorse
smartmontools
spice-gtk
sqlite
storage-utils
storage-utils-dev
strace
subversion
sudo
sysadmin-basic
sysadmin-basic-dev
syslinux
sysstat
tcl-basic
telemetrics
texinfo
texlive
thermal_daemon
thunderbird
tigervnc
tmux
totem
tzdata
unbundle
unzip
valgrind
vim
vinagre
virt-manager
virt-viewer
vlc
web-server-basic
webkitgtk
weechat
wget
which
wpa_supplicant
x11-server
x11vnc
xemacs
xfce4-desktop
xfsprogs
xz
yasm
znc
zsh
zstd
chiachuanwu commented 5 years ago

I use this workaround, and swupd work as normal:

sudo mkdir /etc/systemd/resolved.conf.d/ && printf "[Resolve]\nDNSSEC=off\n" | sudo tee --append /etc/systemd/resolved.conf.d/dnssec.conf