wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exec format errors

pmol200 opened this issue · comments

When executing the script as mentioned, the following Errors occur:

Creating dummy certificate for <my.domain> ...

Creating nginx_certbot_run ... done
exec /usr/bin/openssl: exec format error
ERROR: 1

Deleting dummy certificate for <my.domain> ...

Creating nginx_certbot_run ... done
exec /bin/rm: exec format error
ERROR: 1

Requesting Let's Encrypt certificate for <my.domain> ...

Creating nginx_certbot_run ... done
exec /usr/local/bin/certbot: exec format error
ERROR: 1

Reloading nginx ...

Error response from daemon: Container 9b5726ddaa8a2524cf0ce0c5e0035b9b5511588b6796bac3b0d1df2e1182593f is restarting, wait until the container is running


The docker container log shows the following

cannot load certificate "/etc/letsencrypt/live/my.domain/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/my.domain/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/my.domain/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/my.domain/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)


Any suggestions how I can finx this?

commented

I'm getting the same error. Did you fix it yet?