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

CertBot No such file or directory #2679

Closed
lucassmacedo opened this issue Aug 12, 2020 · 13 comments
Closed

CertBot No such file or directory #2679

lucassmacedo opened this issue Aug 12, 2020 · 13 comments

Comments

@lucassmacedo
Copy link

Problem to generate cert on localhost

docker-compose up certbot

Starting laradock_certbot_1 ... done
Attaching to laradock_certbot_1
certbot_1 | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1 | Plugins selected: Authenticator webroot, Installer None
certbot_1 | Unable to register an account with ACME server
certbot_1 | cp: cannot stat '/etc/letsencrypt/archive/app.test/cert1.pem': No such file or directory
certbot_1 | cp: cannot stat '/etc/letsencrypt/archive/app.test/privkey1.pem': No such file or directory
laradock_certbot_1 exited with code 1

Certbot

certbot:
build:
context: ./certbot
volumes:
- ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt
environment:
- CN=app.test
- EMAIL="test@app.test"
networks:
- frontend

@bestlong
Copy link
Member

check debug log /var/log/letsencrypt/letsencrypt.log

@lucassmacedo
Copy link
Author

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/main.py", line 520, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 182, in register
regr = perform_registration(acme, config, tos_cb)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 214, in perform_registration
raise errors.Error(msg)
certbot.errors.Error: The ACME server believes "test@app.test" is an invalid email address. Please ensure it is a valid email and attempt registration again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/letsencrypt", line 11, in
load_entry_point('certbot==0.27.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1364, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1238, in certonly
le_client = _init_le_client(config, auth, installer)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 641, in _init_le_client
acc, acme = _determine_account(config)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 526, in _determine_account
"Unable to register an account with ACME server")
certbot.errors.Error: Unable to register an account with ACME server

@lucassmacedo
Copy link
Author

It's on localhost

@stale
Copy link

stale bot commented Nov 11, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Nov 11, 2020
@lucassmacedo
Copy link
Author

Hi. Not working yet.

@stale stale bot removed the Stale label Nov 11, 2020
@china-enoch
Copy link

Hi. Not working yet.

I had the same problem, Have you solved it ?
473829BC-AFF5-433A-A288-B257CD5204D2

@lucassmacedo
Copy link
Author

Not yet.. a have the same error

@stale
Copy link

stale bot commented Mar 28, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Mar 28, 2021
@lucassmacedo
Copy link
Author

Not yet.. a have the same error

@stale stale bot removed the Stale label Mar 30, 2021
@bestlong
Copy link
Member

bestlong commented Apr 6, 2021

This error message

certbot.errors.Error: The ACME server believes "test@app.test" is an invalid email address. Please ensure it is a valid email and attempt registration again.

u must use real email address and real web address.

@mtauhn
Copy link

mtauhn commented Apr 27, 2021

Certbot can't create folder archive
certbot_1 | drwx------ 3 root root 4096 Apr 27 14:43 accounts
certbot_1 | -rw-r--r-- 1 root root 121 Feb 11 2019 cli.ini
certbot_1 | drwxr-xr-x 5 root root 4096 Apr 27 14:43 renewal-hooks

@stale
Copy link

stale bot commented Jul 26, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jul 26, 2021
@stale
Copy link

stale bot commented Aug 16, 2021

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants