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

ccertbot can't start up #2417

Closed
liminworks opened this issue Dec 8, 2019 · 4 comments
Closed

ccertbot can't start up #2417

liminworks opened this issue Dec 8, 2019 · 4 comments

Comments

@liminworks
Copy link

Info:

Docker version ($ docker --version):
Docker version 18.06.1-ce, build e68fc7a

Laradock commit ($ git rev-parse HEAD):
83a24ef

System info (Mac, PC, Linux):
Linux

System info disto/version:
Ubuntu 18.04.1 LTS

Issue:

Certbot exited with code 1

vagrant@bogon:/www/web/laradock(master⚡) » docker-compose up certbot
WARNING: The WORKSPACE_INSTALL_IONCUBE variable is not set. Defaulting to a blank string.
WARNING: The PHP_FPM_INSTALL_IONCUBE variable is not set. Defaulting to a blank string.
Starting laradock_certbot_1 ... done
Attaching to laradock_certbot_1
certbot_1 | /root/certbot/run-certbot.sh: line 2: $'\r': command not found
certbot_1 | usage:
certbot_1 | certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
certbot_1 |
certbot_1 | Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
certbot_1 | it will attempt to use a webserver both for obtaining and installing the
certbot_1 | certificate.
certbot_1 | certbot: error: unrecognized arguments: --text
certbot_1 | /root/certbot/run-certbot.sh: line 4: $'\r': command not found
certbot_1 | cp: cannot stat '/etc/letsencrypt/archive/laravel.test/cert1.pem': No such file or directory
certbot_1 | cp: cannot stat '/etc/letsencrypt/archive/laravel.test/privkey1.pem': No such file or directory
laradock_certbot_1 exited with code 1

Relevant Code:

mk@mkubus-Vostro-5568:~/workspace/laradock$ cat docker-compose.yml |grep -i certbot -A 5

Certbot

certbot:
build:
context: ./certbot
volumes:
- ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt
environment:
- CN=mydomain.pl
- EMAIL=my.email@gmail.com
networks:
- frontend

nginx:
build:
context: ./nginx
args:

  • PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
  • PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
    volumes:
  • ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
  • ${NGINX_HOST_LOG_PATH}:/var/log/nginx
  • ${NGINX_SITES_PATH}:/etc/nginx/sites-available
  • ./data/certbot/certs/:/var/certs
  • ./certbot/letsencrypt/:/var/www/letsencrypt
    ports:
  • "${NGINX_HOST_HTTP_PORT}:80"
  • "${NGINX_HOST_HTTPS_PORT}:443"
    depends_on:
  • php-fpm
    networks:
  • frontend
  • backend
@pbebbo
Copy link

pbebbo commented Apr 8, 2020

Why was this closed Im also getting this issue?

@moreishi
Copy link

I'm getting this issue as well. Any solution?

@lucassmacedo
Copy link

Hello
i have a problem with LaraDock + CertBot
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
any knows how to fix this?

@Simoon-F
Copy link

had the same problem。

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

5 participants