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

Could not stop/restart Caddy on Windows Server 2008 #2331

Closed
chinkung opened this issue Oct 30, 2018 · 2 comments
Closed

Could not stop/restart Caddy on Windows Server 2008 #2331

chinkung opened this issue Oct 30, 2018 · 2 comments

Comments

@chinkung
Copy link

1. What version of Caddy are you using (caddy -version)?

Caddy 0.11.0

2. What are you trying to do?

Try to stop/restart Caddy after change configuration file on Windows Server 2008 but it did not stop.

3. What is your entire Caddyfile?

https://example.com {
	gzip
	push
	tls C:/caddy/certs/example.crt C:/caddy/certs/example.key {
		ciphers ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256 ECDHE-ECDSA-WITH-CHACHA20-POLY1305 ECDHE-RSA-WITH-CHACHA20-POLY1305 ECDHE-RSA-AES128-CBC-SHA ECDHE-ECDSA-AES128-CBC-SHA RSA-AES128-CBC-SHA
		curves X25519 p256
	}
	header / {
		X-XSS-Protection "1; mode=block"
		X-Content-Type-Options "nosniff"
		X-Frame-Options "SAMEORIGIN"
		Strict-Transport-Security "max-age=31536000;"
		-Server
		-X-Powered-By
	}
	proxy / http://example.com {
		transparent
	}
}

4. How did you run Caddy (give the full command and describe the execution environment)?

caddy -service install -quic -conf c:\caddy\Caddyfile -name caddy

and start/stop Caddy using Administrative Tools > Services

I have tried to run with command line by open cmd.exe and run caddy.exe directly and found this problem happen after Caddy run for a while and there is connection open with the client, if you press Ctrl+C, Caddy didn't response to kill signal and leave caddy.exe running (Caddy did not receive new connection anymore after your press Ctrl+C on console, just running and you need to restart server to make it run again).

5. Please paste any relevant HTTP request(s) here.

N/A

6. What did you expect to see?

Can stop/restart Caddy without problem

7. What did you see instead (give full error messages and/or log)?

There is no error log, Caddy just failed to stop and leave caddy.exe process that could not be killed and finally need to restart server to make Caddy run and receive connection again.

8. How can someone who is starting from scratch reproduce the bug as minimally as possible?

N/A

@mholt
Copy link
Member

mholt commented Oct 30, 2018

Hi, thanks for filling out the issue template. However, this looks more like a bug with the service plugin, which is not maintained by us. Please take a moment to open this issue on the service plugin's repository. Thanks! /cc @hacdias

@chinkung
Copy link
Author

Thanks for suggestion @mholt , I have opened hacdias/caddy-v1-service#23

The reason I open issue here because I can reproduce this issue using command line by run caddy.exe through Windows command prompt and wait for a while until there is a connection open with multiple client, if you press Ctrl+C, Caddy didn't response to kill signal and leave caddy.exe running (Caddy did not receive new connection anymore after your press Ctrl+C on console, just running and you need to restart server to make it run again)

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