Since the beginning of January (following a fresh install from a minimal KDE image to a new build PC) I have been getting errors related to pkgfile-update.service
. Looking at journalctl -u pkgfile-update
the errors were:
Feb 16 08:48:10 manjaro-desktop systemd[1]: Starting pkgfile database update...
Feb 16 08:48:10 manjaro-desktop pkgfile[877]: warning: download failed: http://manjaro.mirrors.uk2.net/testing/core/x86_>
Feb 16 08:48:10 manjaro-desktop pkgfile[877]: warning: download failed: http://manjaro.mirrors.uk2.net/testing/extra/x86>
Feb 16 08:48:10 manjaro-desktop pkgfile[877]: warning: download failed: http://manjaro.mirrors.uk2.net/testing/community>
Feb 16 08:48:10 manjaro-desktop pkgfile[877]: warning: download failed: http://manjaro.mirrors.uk2.net/testing/multilib/>
Feb 16 08:48:10 manjaro-desktop systemd[1]: pkgfile-update.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 08:48:10 manjaro-desktop systemd[1]: pkgfile-update.service: Failed with result 'exit-code'.
Feb 16 08:48:10 manjaro-desktop systemd[1]: Failed to start pkgfile database update.
I was, however, able to run the service manually and it would alway complete succesfully. I therefore thought the issue was due to my WIFI not being up at the the service was triggered by the timer, but looking at the service both After=network-online.target
and Wants=network-online.target
were present.
I managed to workaround this by adding RandomizedDelaySec=600
to the [Timer]
section of the timer unit. I don’t know if this was the appropriate workaround or if anyone has a better idea?
Edited to add: I also tried switching mirrors and it made no difference.