Q&A
책을 따라하다가 막히는 부분이 있나요?
질문을 남겨주세요.
하지만, 책을 끝까지 읽고 나면 이 페이지도 만드실 수 있을거에요.
letsencrypt 사용 후 홈페이지 열리지 않음
3 years, 2 months ago
poinguinie일단 letsencrypt를 적용하기 전까지는 링크에 들어가면 홈페이지가 떳었지만
적용 후 홈페이지가 뜨지 않습니다.
docker-compose logs를 사용해서 봤을 때
certbot_1 |
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
certbot_1 | Processing /etc/letsencrypt/renewal/poinguinie-django.com.conf
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
certbot_1 | Certificate not yet due for renewal
certbot_1 |
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
certbot_1 | The following certificates are not due for renewal yet:
certbot_1 | /etc/letsencrypt/live/poinguinie-django.com/fullchain.pem expires on 2021-1
1-19 (skipped)
certbot_1 | No renewals were attempted.
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
certbot_1 | Saving debug log to /var/log/letsencrypt/letsencrypt.log
db_1 | 2021-09-08 20:48:33.537 UTC [1] LOG: starting PostgreSQL 12.0 on x86_64-pc-l
inux-musl, compiled by gcc (Alpine 8.3.0) 8.3.0, 64-bit
db_1 | 2021-09-08 20:48:33.537 UTC [1] LOG: listening on IPv4 address "0.0.0.0", po
rt 5432
db_1 | 2021-09-08 20:48:33.538 UTC [1] LOG: listening on IPv6 address "::", port 54
32
db_1 | 2021-09-08 20:48:33.540 UTC [1] LOG: listening on Unix socket "/var/run/post
gresql/.s.PGSQL.5432"
db_1 | 2021-09-08 20:48:33.565 UTC [19] LOG: database system was shut down at 2021-
09-08 20:48:32 UTC
db_1 | 2021-09-08 20:48:33.571 UTC [1] LOG: database system is ready to accept conn
ections
nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to pe
rform configuration
nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-de
fault.sh
nginx_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not
a file or does not exist
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-template
s.sh
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processe
s.sh
nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: using the "epoll" event method
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: nginx/1.21.1
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: built by gcc 8.3.0 (Debian 8.3.0-6)
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: OS: Linux 4.14.238-182.422.amzn2.x86_64
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1024:4096
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: start worker processes
nginx_1 | 2021/09/08 20:48:36 [notice] 1#1: start worker process 22
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: signal 1 (SIGHUP) received from 23, reconfiguring
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: reconfiguring
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: using the "epoll" event method
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: start worker processes
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: start worker process 29
nginx_1 | 2021/09/08 20:48:49 [notice] 22#22: gracefully shutting down
nginx_1 | 2021/09/08 20:48:49 [notice] 22#22: exiting
nginx_1 | 2021/09/08 20:48:49 [notice] 22#22: exit
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: signal 17 (SIGCHLD) received from 22
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: worker process 22 exited with code 0
nginx_1 | 2021/09/08 20:48:49 [notice] 1#1: signal 29 (SIGIO) received
nginx_1 | 209.17.97.122 - - [08/Sep/2021:20:51:52 +0000] "\x16\x03\x01\x00\xE1\x01\x00\
x00\xDD\x03\x03\x94K2" 400 157 "-" "-" "-"
web_1 | [2021-09-08 20:48:35 +0000] [1] [INFO] Starting gunicorn 20.1.0
web_1 | [2021-09-08 20:48:35 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
web_1 | [2021-09-08 20:48:35 +0000] [1] [INFO] Using worker: sync
web_1 | [2021-09-08 20:48:35 +0000] [8] [INFO] Booting worker with pid: 8
라고 뜹니다. 교재와 똑같이 코딩을 하였는데 어디서 에러가 발생하는건지 모르겠습니다.
홈페이지 들어갈 시
사이트에 연결할 수 없음
www.poinguinie-django.com에서 응답하는 데 시간이 너무 오래 걸립니다.
라고만 뜹니다
목록보기
taegon 3 years, 2 months ago
안녕하세요.
사이트로 접속하실 때 로그는 어떻게 뜨나요?
docker-compose up 할때, -d옵션을 주지 않으시면, 로그를 계속 보실 수 있습니다.
aws lightsail 웹사이트에서 네트워크 포트(https, 443) 는 열어주셨나요?
안되시면, nginx.conf 파일을 공유해 주실 수 있을까요?
고맙습니다.
김태곤 드림
Updated: Sept. 9, 2021, 4:07 p.m.
Leave a Comment: