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 remove validation file: No such file or directory - error when forced to renew #148

Open
tometzky opened this issue Jun 27, 2021 · 0 comments
Labels

Comments

@tometzky
Copy link
Contributor

When simp_le 0.18.1 is forced to renew a recently created certificate with "--valid_min=7776000" (for testing), it renews the cert successfully, but before finishing, it fails with an error (names changed for privacy):

simp_le \
	--verbose \
	--vhost example.com:/var/www/example.com \
	--email tometzky@example.com \
	--valid_min 7776000 \
	-f account_key.json \
	-f account_reg.json \
	-f key.pem \
	-f full.pem
…
2021-06-27 14:48:34,595:INFO:simp_le:401: Saving key.pem
2021-06-27 14:48:34,595:INFO:simp_le:401: Saving full.pem
2021-06-27 14:48:34,596:DEBUG:simp_le:1134: Removing validation file at /var/www/example.com/.well-known/acme-challenge/UjNWdVYzSj_R3VuV3J6YXV3NXhVcmNiRnhPb1VUZUpX
2021-06-27 14:48:34,596:ERROR:simp_le:1138: Could not remove validation file at /var/www/example.com/.well-known/acme-challenge/UjNWdVYzSj_R3VuV3J6YXV3NXhVcmNiRnhPb1VUZUpX : [Errno 2] No such file or directory: '/var/www/aws.ato.waw.pl/.well-known/acme-challenge/UjNWdVYzSj_R3VuV3J6YXV3NXhVcmNiRnhPb1VUZUpX'

It looks like the program is trying to remove validation file even if it did not need to create one. Based on /var/www/example.com/.well-known/acme-challenge/ timestamp, it was not created while renewing. I suppose validation for the account was still valid from the previous renewal.

@zenhack zenhack added the bug label Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants