- The problem I’m having:
While attempting to install caddy v 2.7.6 at the 60% mark this message will appear in my command line
Job for caddy.service failed because the control process exited with error code.
See "systemctl status caddy.service" and "journalctl -xe" for details.
at which time the installation process appears to stop.
2. Error messages and/or full log output:
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:49 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:50 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:50 instance-20210603-2006 systemd-fstab-generator[1285190]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:50 instance-20210603-2006 systemd[1285182]: /usr/lib/systemd/system-generators/systemd-fstab-gen
erator failed with exit status 1.
Feb 22 21:28:51 instance-20210603-2006 systemd[1]: Reloading.
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd-fstab-generator[1285217]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:52 instance-20210603-2006 systemd[1285209]: /usr/lib/systemd/system-generators/systemd-fstab-gen
erator failed with exit status 1.
Feb 22 21:28:54 instance-20210603-2006 systemd[1]: Starting Caddy...
-- Subject: A start job for unit caddy.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit caddy.service has begun execution.
--
-- The job identifier is 567981.
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: caddy.HomeDir=/var/lib/caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: caddy.Version=v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.GOOS=linux
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.GOARCH=amd64
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.Compiler=gc
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.NumCPU=2
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.GOMAXPROCS=2
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: runtime.Version=go1.21.5
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: os.Getwd=/
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: LANG=C.UTF-8
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: NOTIFY_SOCKET=/run/systemd/notify
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: HOME=/var/lib/caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: LOGNAME=caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: USER=caddy
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: INVOCATION_ID=0ac0e76b818442d4b617625c54c5f2b1
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: JOURNAL_STREAM=8:113838779
Feb 22 21:28:55 instance-20210603-2006 caddy[1285239]: Error: reading config file: open /etc/caddy/Caddyfile: no such file or directo
ry
Feb 22 21:28:55 instance-20210603-2006 systemd[1]: caddy.service: Main process exited, code=exited, status=1/
FAILURE-
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit caddy.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Feb 22 21:28:55 instance-20210603-2006 systemd[1]: caddy.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit caddy.service has entered the 'failed' state with result 'exit-code'.
Feb 22 21:28:55 instance-20210603-2006 systemd[1]: Failed to start Caddy.
-- Subject: A start job for unit caddy.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit caddy.service has finished with a failure.
--
-- The job identifier is 567981 and the job result is failed.
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd-fstab-generator[1285260]: Failed to create unit file /run/syst
emd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
Feb 22 21:28:55 instance-20210603-2006 systemd[1285252]: /usr/lib/systemd/system-generators/systemd-fstab-gen
erator failed with exit status 1.
- Caddy version:
The Caddy version I am using is version 2.7.6
4. How I installed and ran Caddy:
I made use of the installation instructions as outlined here:
a. System environment:
The system environment used was Canonical Ubuntu 20.04 image within an Oracle Cloud Free Tier server with VM.Standard.E2.1.Micro as the shape for that server.
b. Command:
I haven’t done this yet.
c. Service/unit/compose file:
It comes with systemd, I imagine this is so it can automatically start up upon successful and smooth installation.
d. My complete Caddy config:
I have not set up a Caddy config yet.