Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caddy restart after creating the cfg file has failed #27

Open
zctmdc opened this issue Apr 2, 2019 · 2 comments
Open

caddy restart after creating the cfg file has failed #27

zctmdc opened this issue Apr 2, 2019 · 2 comments

Comments

@zctmdc
Copy link

zctmdc commented Apr 2, 2019

CentOS Linux release 7.6.1810 (Core) 
Linux version 3.10.0-957.10.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon 3月18日 15:06:45 UTC 2019 

第一步,创建配置文件/Create a cfg file
第二步,调用caddy restart重启caddy
第三步,journalctl -xe

--
-- A new session with the ID 201 has been created for the user root.
--
-- The leading process of the session is 7907.
4月02日 17:55:53 aliyun.zctmdc.cn sshd[7907]: pam_unix(sshd:session): session opened for user root by (uid=0)
4月02日 17:56:02 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8042:9803695 (system bus name :1.428 [/usr/bin/pkttyagent --
4月02日 17:56:02 aliyun.zctmdc.cn systemd[1]: Stopping Caddy HTTP/2 web server...
-- Subject: Unit caddy.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has begun shutting down.
4月02日 17:56:02 aliyun.zctmdc.cn systemd[1]: Stopped Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has finished shutting down.
4月02日 17:56:02 aliyun.zctmdc.cn polkitd[2235]: Unregistered Authentication Agent for unix-process:8042:9803695 (system bus name :1.428, object path /org/fre
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8102:9804006 (system bus name :1.429 [/usr/bin/pkttyagent --
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: start request repeated too quickly for caddy.service
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Failed to start Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
--
-- The result is failed.
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Unit caddy.service entered failed state.
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: caddy.service failed.
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Unregistered Authentication Agent for unix-process:8102:9804006 (system bus name :1.429, object path /org/fre
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8118:9804010 (system bus name :1.430 [/usr/bin/pkttyagent --
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: start request repeated too quickly for caddy.service
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Failed to start Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
--
-- The result is failed.

但是手动使用 caddy stop + caddy start 是可以使用的
But manually using caddy stop + caddy start is working.

OR
systemctl restart caddy 也可以/can work

@vjsdhyygy
Copy link

怀化的老乡好,我特么看不懂你说的啥

@zctmdc
Copy link
Author

zctmdc commented Apr 23, 2019

怀化的老乡好,我特么看不懂你说的啥

哈 你好啊,我遇到了修改配置文件后,使用 caddy restart重启caddy就失败的问题.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants