728x90
반응형

ERROR [4/5] COPY ./django/requirements.txt ./221118_timeattack


  • 에러 사진
  • 해결 : git clone할 때 위치를 잘못 지정했는지 폴더를 하나 더 타고 들어가야 했다. Dockerfile에서 copy할 때 왼쪽 주소를 수정했다 (221118_timeattack/requirements.txt로 수정)
  • 알게 된 점이나 깨달은 것 : 하나하나씩 직접 해보니까 막연하게 이론만 알고 있던 게 조금씩 개념화되는 거 같다.

python: can’t open file ‘/app/manage.py’: [Error 2] No such file or directory


  • 에러 사진
  • 마찬가지로 클론받을 때 위치를…ㅎ
  • 해결 : 경로에 221118_timeattack 추가

타임어택


  • 저번에 강의를 아예 안 들어서 제출을 못 했는데 뒤늦게나마 해봤다.

1번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.sqlite3

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

2번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

3번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

4번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python /usr/local/bin/gunicorn timeattack.wsgi --workers=5 -b 0.0.0.0:8000

ModuleNotFoundError: No module named 'corsheaders’


  • stackoverflow reference
  • requirements.txt에 이미 corsheader가 있는데 왜 에러가 난진 모르겠지만 corsheader 모듈이 없어서 발생한 문제였다.
  • django-cors-headers 를 Dockerfile의 RUN 명령어 부분에서 끝에 추가해줬다.

gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.’


  • 프로젝트명 넣을 때 깃헙 제목이랑 폴더 이름이랑 똑같아서 아빠(ABBBA_OIL_PAINTING_BE.wsgi) 넣었는데 걍 프로젝트 폴더명은 OIL_PAINTING_BE.wsgi 이거여서 wsgi 파일 보고 경로 확인해서 수정했다.

Invalid HTTP_HOST header: ‘backend”8000’.

다행히도 에러 설명이 굉장히 직관적이고 잘 알려줘서 해결. 마찬가지로 wsgi 파일 가서 경로 확인하고 호다닥 고쳤다

ERROR [4/5] COPY ./django/requirements.txt ./221118_timeattack


  • 에러 사진
  • 해결 : git clone할 때 위치를 잘못 지정했는지 폴더를 하나 더 타고 들어가야 했다. Dockerfile에서 copy할 때 왼쪽 주소를 수정했다 (221118_timeattack/requirements.txt로 수정)
  • 알게 된 점이나 깨달은 것 : 하나하나씩 직접 해보니까 막연하게 이론만 알고 있던 게 조금씩 개념화되는 거 같다.

python: can’t open file ‘/app/manage.py’: [Error 2] No such file or directory


  • 에러 사진
  • 마찬가지로 클론받을 때 위치를…ㅎ
  • 해결 : 경로에 221118_timeattack 추가

타임어택


  • 저번에 강의를 아예 안 들어서 제출을 못 했는데 뒤늦게나마 해봤다.

1번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.sqlite3

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

2번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

3번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

4번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python /usr/local/bin/gunicorn timeattack.wsgi --workers=5 -b 0.0.0.0:8000

ModuleNotFoundError: No module named 'corsheaders’


  • stackoverflow reference
  • requirements.txt에 이미 corsheader가 있는데 왜 에러가 난진 모르겠지만 corsheader 모듈이 없어서 발생한 문제였다.
  • django-cors-headers 를 Dockerfile의 RUN 명령어 부분에서 끝에 추가해줬다.

gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.’


  • 프로젝트명 넣을 때 깃헙 제목이랑 폴더 이름이랑 똑같아서 아빠(ABBBA_OIL_PAINTING_BE.wsgi) 넣었는데 걍 프로젝트 폴더명은 OIL_PAINTING_BE.wsgi 이거여서 wsgi 파일 보고 경로 확인해서 수정했다.

Invalid HTTP_HOST header: ‘backend”8000’.

다행히도 에러 설명이 굉장히 직관적이고 잘 알려줘서 해결. 마찬가지로 wsgi 파일 가서 경로 확인하고 호다닥 고쳤다

ERROR [4/5] COPY ./django/requirements.txt ./221118_timeattack


  • 에러 사진
  • 해결 : git clone할 때 위치를 잘못 지정했는지 폴더를 하나 더 타고 들어가야 했다. Dockerfile에서 copy할 때 왼쪽 주소를 수정했다 (221118_timeattack/requirements.txt로 수정)
  • 알게 된 점이나 깨달은 것 : 하나하나씩 직접 해보니까 막연하게 이론만 알고 있던 게 조금씩 개념화되는 거 같다.

python: can’t open file ‘/app/manage.py’: [Error 2] No such file or directory


  • 에러 사진
  • 마찬가지로 클론받을 때 위치를…ㅎ
  • 해결 : 경로에 221118_timeattack 추가

타임어택


  • 저번에 강의를 아예 안 들어서 제출을 못 했는데 뒤늦게나마 해봤다.

1번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.sqlite3

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

2번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

3번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

4번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python /usr/local/bin/gunicorn timeattack.wsgi --workers=5 -b 0.0.0.0:8000

ModuleNotFoundError: No module named 'corsheaders’


  • stackoverflow reference
  • requirements.txt에 이미 corsheader가 있는데 왜 에러가 난진 모르겠지만 corsheader 모듈이 없어서 발생한 문제였다.
  • django-cors-headers 를 Dockerfile의 RUN 명령어 부분에서 끝에 추가해줬다.

gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.’


  • 프로젝트명 넣을 때 깃헙 제목이랑 폴더 이름이랑 똑같아서 아빠(ABBBA_OIL_PAINTING_BE.wsgi) 넣었는데 걍 프로젝트 폴더명은 OIL_PAINTING_BE.wsgi 이거여서 wsgi 파일 보고 경로 확인해서 수정했다.

Invalid HTTP_HOST header: ‘backend”8000’.

다행히도 에러 설명이 굉장히 직관적이고 잘 알려줘서 해결. 마찬가지로 wsgi 파일 가서 경로 확인하고 호다닥 고쳤다

ERROR [4/5] COPY ./django/requirements.txt ./221118_timeattack


  • 에러 사진
  • 해결 : git clone할 때 위치를 잘못 지정했는지 폴더를 하나 더 타고 들어가야 했다. Dockerfile에서 copy할 때 왼쪽 주소를 수정했다 (221118_timeattack/requirements.txt로 수정)
  • 알게 된 점이나 깨달은 것 : 하나하나씩 직접 해보니까 막연하게 이론만 알고 있던 게 조금씩 개념화되는 거 같다.

python: can’t open file ‘/app/manage.py’: [Error 2] No such file or directory


  • 에러 사진
  • 마찬가지로 클론받을 때 위치를…ㅎ
  • 해결 : 경로에 221118_timeattack 추가

타임어택


  • 저번에 강의를 아예 안 들어서 제출을 못 했는데 뒤늦게나마 해봤다.

1번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.sqlite3

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

2번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

3번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

4번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python /usr/local/bin/gunicorn timeattack.wsgi --workers=5 -b 0.0.0.0:8000

ModuleNotFoundError: No module named 'corsheaders’


  • stackoverflow reference
  • requirements.txt에 이미 corsheader가 있는데 왜 에러가 난진 모르겠지만 corsheader 모듈이 없어서 발생한 문제였다.
  • django-cors-headers 를 Dockerfile의 RUN 명령어 부분에서 끝에 추가해줬다.

gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.’


  • 프로젝트명 넣을 때 깃헙 제목이랑 폴더 이름이랑 똑같아서 아빠(ABBBA_OIL_PAINTING_BE.wsgi) 넣었는데 걍 프로젝트 폴더명은 OIL_PAINTING_BE.wsgi 이거여서 wsgi 파일 보고 경로 확인해서 수정했다.

Invalid HTTP_HOST header: ‘backend”8000’.

다행히도 에러 설명이 굉장히 직관적이고 잘 알려줘서 해결. 마찬가지로 wsgi 파일 가서 경로 확인하고 호다닥 고쳤다

ERROR [4/5] COPY ./django/requirements.txt ./221118_timeattack


  • 에러 사진
  • 해결 : git clone할 때 위치를 잘못 지정했는지 폴더를 하나 더 타고 들어가야 했다. Dockerfile에서 copy할 때 왼쪽 주소를 수정했다 (221118_timeattack/requirements.txt로 수정)
  • 알게 된 점이나 깨달은 것 : 하나하나씩 직접 해보니까 막연하게 이론만 알고 있던 게 조금씩 개념화되는 거 같다.

python: can’t open file ‘/app/manage.py’: [Error 2] No such file or directory


  • 에러 사진
  • 마찬가지로 클론받을 때 위치를…ㅎ
  • 해결 : 경로에 221118_timeattack 추가

타임어택


  • 저번에 강의를 아예 안 들어서 제출을 못 했는데 뒤늦게나마 해봤다.

1번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.sqlite3

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

2번 문제 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : 3.34.123.37

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

3번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python manage.py runserver 0.0.0.0:8000

4번 답

hello world!!

연결된 데이터베이스 : django.db.backends.postgresql

접속 경로 : backend:8000

프로젝트 실행 명령어 : python /usr/local/bin/gunicorn timeattack.wsgi --workers=5 -b 0.0.0.0:8000

ModuleNotFoundError: No module named 'corsheaders’


  • stackoverflow reference
  • requirements.txt에 이미 corsheader가 있는데 왜 에러가 난진 모르겠지만 corsheader 모듈이 없어서 발생한 문제였다.
  • django-cors-headers 를 Dockerfile의 RUN 명령어 부분에서 끝에 추가해줬다.

gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.’


  • 프로젝트명 넣을 때 깃헙 제목이랑 폴더 이름이랑 똑같아서 아빠(ABBBA_OIL_PAINTING_BE.wsgi) 넣었는데 걍 프로젝트 폴더명은 OIL_PAINTING_BE.wsgi 이거여서 wsgi 파일 보고 경로 확인해서 수정했다.

Invalid HTTP_HOST header: ‘backend”8000’.

다행히도 에러 설명이 굉장히 직관적이고 잘 알려줘서 해결. 마찬가지로 wsgi 파일 가서 경로 확인하고 호다닥 고쳤다

반응형

+ Recent posts