커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
AWS배포 오류
undefined주차
북마크
조*연
댓글
3
추천
0
조회수
22
조회수
22
답변 완료


AWS배포중 오류 발생하여 로그 첨부드립니다




스파르타 즉문즉답



스파르타 즉문즉답



작성한 코드 및 에러 메세지



$ eb logs

Retrieving logs...

============= i-00f02d7851cfaa3ab ==============

----------------------------------------

/var/log/eb-engine.log

----------------------------------------

2023/03/31 02:32:19.515191 [INFO] Download latest app version manifest

2023/03/31 02:32:19.515250 [INFO] resources/environments/e-2x5hnyksrj/_runtime/versions/manifest

2023/03/31 02:32:19.557593 [INFO] latestManifest key *: resources/environments/e-2x5hnyksrj/_runtime/versions/manifest_1680229775800


2023/03/31 02:32:19.560589 [INFO] Downloading: bucket: elasticbeanstalk-ap-northeast-2-597231365284, object: /resources/environments/e-2x5hnyksrj/_runtime/versions/manifest_1680229775800

2023/03/31 02:32:19.573128 [INFO] Download successful139bytes downloaded

2023/03/31 02:32:19.573205 [INFO] Trying to read and parse version manifest...

2023/03/31 02:32:19.573262 [INFO] Downloading: bucket: elasticbeanstalk-ap-northeast-2-597231365284, object: /resources/environments/e-2x5hnyksrj/_runtime/_versions/deploy/app-230331_112925816615

2023/03/31 02:32:19.588229 [INFO] Download successful6161bytes downloaded

2023/03/31 02:32:19.588455 [INFO] Executing instruction: ElectLeader

2023/03/31 02:32:19.588461 [INFO] Running leader election for instance i-00f02d7851cfaa3ab...

2023/03/31 02:32:19.588463 [INFO] Calling the cfn-elect-cmd-leader to elect the command leader.

2023/03/31 02:32:19.588475 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-elect-cmd-leader --stack arn:aws:cloudformation:ap-northeast-2:597231365284:stack/awseb-e-2x5hnyksrj-stack/e11c9330-cf6b-11ed-97cf-02ec082ac3f0 --command-name ElasticBeanstalkCommand-AWSEBAutoScalingGroup --invocation-id 0198b3a5-5505-4f76-8c1c-88fd1d9902cf --listener-id i-00f02d7851cfaa3ab --region ap-northeast-2

2023/03/31 02:32:19.869528 [INFO] Instance is Leader.

2023/03/31 02:32:19.869598 [INFO] Executing instruction: stopSqsd

2023/03/31 02:32:19.869603 [INFO] This is a web server environment instance, skip stop sqsd daemon ...

2023/03/31 02:32:19.869606 [INFO] Executing instruction: PreBuildEbExtension

2023/03/31 02:32:19.869609 [INFO] Starting executing the config set Infra-EmbeddedPreBuild.

2023/03/31 02:32:19.869623 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-init -s arn:aws:cloudformation:ap-northeast-2:597231365284:stack/awseb-e-2x5hnyksrj-stack/e11c9330-cf6b-11ed-97cf-02ec082ac3f0 -r AWSEBAutoScalingGroup --region ap-northeast-2 --configsets Infra-EmbeddedPreBuild

2023/03/31 02:32:20.223250 [INFO] Finished executing the config set Infra-EmbeddedPreBuild.


2023/03/31 02:32:20.223267 [INFO] Executing instruction: StageApplication

2023/03/31 02:32:20.223756 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/

2023/03/31 02:32:20.223770 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/ap

p/staging/

2023/03/31 02:32:20.227358 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully   

2023/03/31 02:32:20.227809 [INFO] Executing instruction: RunAppDeployPreBuildHooks

2023/03/31 02:32:20.227843 [INFO] Executing platform hooks in .platform/hooks/prebuild/

2023/03/31 02:32:20.227855 [INFO] The dir .platform/hooks/prebuild/ does not exist

2023/03/31 02:32:20.227858 [INFO] Finished running scripts in /var/app/staging/.platform/hooks/prebuild

2023/03/31 02:32:20.227862 [INFO] Executing instruction: InstallDependency

2023/03/31 02:32:20.227866 [INFO] checking dependencies file

2023/03/31 02:32:20.227875 [INFO] Installing dependencies with requirements.txt by using Pip

2023/03/31 02:32:20.227884 [INFO] Running command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt

2023/03/31 02:32:22.846673 [INFO] Collecting beautifulsoup4==4.12.0

 Downloading beautifulsoup4-4.12.0-py3-none-any.whl (132 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.2/132.2 KB 12.5 MB/s eta 0:00:00

Collecting bs4==0.0.1

 Downloading bs4-0.0.1.tar.gz (1.1 kB)

 Preparing metadata (setup.py): started

 Preparing metadata (setup.py): finished with status 'done'

Collecting certifi==2022.12.7

 Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)

Collecting charset-normalizer==3.1.0

 Downloading charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (195 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.9/195.9 KB 39.3 MB/s eta 0:00:00

Collecting click==8.1.3

 Downloading click-8.1.3-py3-none-any.whl (96 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 24.0 MB/s eta 0:00:00

Collecting colorama==0.4.6

 Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)

Collecting dnspython==2.3.0

 Downloading dnspython-2.3.0-py3-none-any.whl (283 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.7/283.7 KB 35.3 MB/s eta 0:00:00

Collecting Flask==2.2.3

 Downloading Flask-2.2.3-py3-none-any.whl (101 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.8/101.8 KB 31.1 MB/s eta 0:00:00

Collecting idna==3.4

 Downloading idna-3.4-py3-none-any.whl (61 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 17.1 MB/s eta 0:00:00

Collecting importlib-metadata==6.1.0

 Downloading importlib_metadata-6.1.0-py3-none-any.whl (21 kB)

Collecting itsdangerous==2.1.2

 Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)

Collecting Jinja2==3.1.2

 Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 30.1 MB/s eta 0:00:00

Collecting MarkupSafe==2.1.2

 Downloading MarkupSafe-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)

Collecting pymongo==4.3.3

 Downloading pymongo-4.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (501 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 501.4/501.4 KB 51.0 MB/s eta 0:00:00

Collecting pypiwin32==223

 Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)


2023/03/31 02:32:22.846723 [INFO] ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)

ERROR: No matching distribution found for pywin32==306


2023/03/31 02:32:22.846738 [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. 

Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r 

requirements.txt failed with error exit status 1. Stderr:ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)

ERROR: No matching distribution found for pywin32==306



2023/03/31 02:32:22.846741 [INFO] Executing cleanup logic

2023/03/31 02:32:22.846823 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp":1680229942846,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1680229942846,"severity":"ERROR"}]}]}


2023/03/31 02:32:22.846972 [INFO] Platform Engine finished execution on command: app-deploy


2023/03/31 02:34:58.340194 [INFO] Starting...

2023/03/31 02:34:58.340233 [INFO] Starting EBPlatform-PlatformEngine

2023/03/31 02:34:58.340250 [INFO] reading event message file

2023/03/31 02:34:58.340369 [INFO] Engine received EB command cfn-hup-exec


2023/03/31 02:34:58.400911 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:597231365284:stack/awseb-e-2x5hnyksrj-stack/e11c9330-cf6b-11ed-97cf-02ec082ac3f0 -r AWSEBAutoScalingGroup --region ap-northeast-2

2023/03/31 02:34:58.845735 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:597231365284:stack/awseb-e-2x5hnyksrj-stack/e11c9330-cf6b-11ed-97cf-02ec082ac3f0 -r AWSEBBeanstalkMetadata --region ap-northeast-2

2023/03/31 02:34:59.159307 [INFO] checking whether command tail-log is applicable to this instance...

2023/03/31 02:34:59.159318 [INFO] this command is applicable to the instance, thus instance should execute command

2023/03/31 02:34:59.159321 [INFO] Engine command: (tail-log)


2023/03/31 02:34:59.159367 [INFO] Executing instruction: GetTailLogs

2023/03/31 02:34:59.159370 [INFO] Tail Logs...

2023/03/31 02:34:59.159594 [INFO] Running command /bin/sh -c tail -n 100 /var/log/eb-engine.log



----------------------------------------

/var/log/eb-hooks.log

----------------------------------------



(venv) 


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴