2 글 보임 - 1 에서 2 까지 (총 2 중에서)
-
글쓴이글
-
2024년 6월 26일 15:09 #126631
김다선참가자aws 배포 에러가 해결이 안되어 질문드립니다. 제가 했던 업로드 과정부터 말씀드리겠습니다. 1. zip 폴더 준 - 사용했던 작업폴더는 수업 중 만든 forum 폴더를 업로드 했습니다. - vscode에서 터미널을 열어 npm run build를 했습니다. - 이후에 forum 안에 있는 폴더 중에 node_modules 폴더를 제외하고 새폴더에 넣어, zip 폴더를 만들었습니다.
이후에는 강의에 글로 올려주신 가이드를 보고, 업로드를 했습니다. t2.micro와 t2.small도 모두 해봤지만, 같은 문제가 일어납니다.
폴더 내부도 함께 보내드립니다.
로그 마지막 100줄도 함께 보내드립니다.
---------------------------------------- /var/log/eb-engine.log ---------------------------------------- 2024/06/26 05:59:22.257814 [INFO] Running command: systemctl enable aws-eb.target 2024/06/26 05:59:22.879790 [INFO] Running command: systemctl start aws-eb.target 2024/06/26 05:59:22.908308 [INFO] Running command: systemctl enable cfn-hup.service 2024/06/26 05:59:23.459563 [INFO] Created symlink /etc/systemd/system/multi-user.target.wants/cfn-hup.service �� /etc/systemd/system/cfn-hup.service.
2024/06/26 05:59:23.459602 [INFO] Running command: systemctl is-active cfn-hup.service 2024/06/26 05:59:23.480720 [INFO] cfn-hup process is not running, starting it now 2024/06/26 05:59:23.480760 [INFO] Running command: systemctl show -p PartOf cfn-hup.service 2024/06/26 05:59:23.503408 [INFO] Running command: systemctl is-active cfn-hup.service 2024/06/26 05:59:23.520657 [INFO] Running command: systemctl start cfn-hup.service 2024/06/26 05:59:23.616212 [INFO] Instance has NOT been bootstrapped 2024/06/26 05:59:23.616244 [INFO] Executing instruction: SetupPublishLogCronjob 2024/06/26 05:59:23.616249 [INFO] Setup publish logs cron job... 2024/06/26 05:59:23.616254 [INFO] Copying file /opt/elasticbeanstalk/config/private/logtasks/cron/publishlogs to /etc/cron.d/publishlogs 2024/06/26 05:59:23.618968 [INFO] Instance has NOT been bootstrapped 2024/06/26 05:59:23.618977 [INFO] Executing instruction: MarkBootstrapped 2024/06/26 05:59:23.618981 [INFO] Starting MarkBootstrapped 2024/06/26 05:59:23.618987 [INFO] Instance has NOT been bootstrapped 2024/06/26 05:59:23.619054 [INFO] Marked instance as Bootstrapped 2024/06/26 05:59:23.619060 [INFO] Executing instruction: Save CFN Stack Info 2024/06/26 05:59:23.619225 [INFO] Executing cleanup logic 2024/06/26 05:59:23.619242 [INFO] Platform Engine finished execution on command: env-launch
2024/06/26 05:59:42.352657 [INFO] Starting... 2024/06/26 05:59:42.352708 [INFO] Starting EBPlatform-PlatformEngine 2024/06/26 05:59:42.352739 [INFO] reading event message file 2024/06/26 05:59:42.352898 [INFO] Engine received EB command cfn-hup-exec
2024/06/26 05:59:42.436214 [INFO] Running command: /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd -r AWSEBAutoScalingGroup --region ap-northeast-2 2024/06/26 05:59:42.795526 [INFO] Running command: /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd -r AWSEBBeanstalkMetadata --region ap-northeast-2 2024/06/26 05:59:43.149280 [INFO] checking whether command app-deploy is applicable to this instance... 2024/06/26 05:59:43.149296 [INFO] this command is applicable to the instance, thus instance should execute command 2024/06/26 05:59:43.149300 [INFO] Engine command: (app-deploy)
2024/06/26 05:59:43.149305 [INFO] Downloading EB Application... 2024/06/26 05:59:43.149309 [INFO] Region: ap-northeast-2 2024/06/26 05:59:43.149312 [INFO] envID: e-vx3crz3gdx 2024/06/26 05:59:43.149316 [INFO] envBucket: elasticbeanstalk-ap-northeast-2-471112665894 2024/06/26 05:59:43.149339 [INFO] Using manifest file name from command request 2024/06/26 05:59:43.149348 [INFO] Unable to get version manifest file. 2024/06/26 05:59:43.149352 [INFO] Downloading latest manifest available. 2024/06/26 05:59:43.149355 [INFO] Download latest app version manifest 2024/06/26 05:59:43.149468 [INFO] resources/environments/e-vx3crz3gdx/_runtime/versions/manifest 2024/06/26 05:59:43.197351 [INFO] latestManifest key *: resources/environments/e-vx3crz3gdx/_runtime/versions/manifest_1719381496899
2024/06/26 05:59:43.197598 [INFO] Downloading: bucket: elasticbeanstalk-ap-northeast-2-471112665894, object: /resources/environments/e-vx3crz3gdx/_runtime/versions/manifest_1719381496899 2024/06/26 05:59:43.214151 [INFO] Download successful116bytes downloaded 2024/06/26 05:59:43.214270 [INFO] Trying to read and parse version manifest... 2024/06/26 05:59:43.214396 [INFO] Downloading: bucket: elasticbeanstalk-ap-northeast-2-471112665894, object: /resources/environments/e-vx3crz3gdx/_runtime/_versions/forumtest/version1.0 2024/06/26 05:59:43.478435 [INFO] Download successful55893656bytes downloaded 2024/06/26 05:59:43.479631 [INFO] Executing instruction: ElectLeader 2024/06/26 05:59:43.479643 [INFO] Running leader election for instance i-0c30ab5c28d562b69... 2024/06/26 05:59:43.479647 [INFO] Calling the cfn-elect-cmd-leader to elect the command leader. 2024/06/26 05:59:43.479659 [INFO] Running command: /opt/aws/bin/cfn-elect-cmd-leader --stack arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd --command-name ElasticBeanstalkCommand-AWSEBAutoScalingGroup --invocation-id fa6c4c55-4a92-40f1-aed0-bf58549b7478 --listener-id i-0c30ab5c28d562b69 --region ap-northeast-2 2024/06/26 05:59:43.829021 [INFO] Instance is Leader. 2024/06/26 05:59:43.829081 [INFO] Executing instruction: stopSqsd 2024/06/26 05:59:43.829088 [INFO] This is a web server environment instance, skip stop sqsd daemon ... 2024/06/26 05:59:43.829092 [INFO] Executing instruction: PreBuildEbExtension 2024/06/26 05:59:43.829096 [INFO] Starting executing the config set Infra-EmbeddedPreBuild. 2024/06/26 05:59:43.829108 [INFO] Running command: /opt/aws/bin/cfn-init -s arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd -r AWSEBAutoScalingGroup --region ap-northeast-2 --configsets Infra-EmbeddedPreBuild 2024/06/26 05:59:44.200567 [INFO] Finished executing the config set Infra-EmbeddedPreBuild.
2024/06/26 05:59:44.200592 [INFO] Executing instruction: StageApplication 2024/06/26 05:59:44.200746 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ 2024/06/26 05:59:44.200760 [INFO] Running command: /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/ 2024/06/26 05:59:45.062020 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully 2024/06/26 05:59:45.066809 [INFO] Executing instruction: RunAppDeployPreBuildHooks 2024/06/26 05:59:45.066943 [INFO] Executing platform hooks in .platform/hooks/prebuild/ 2024/06/26 05:59:45.066965 [INFO] The dir .platform/hooks/prebuild/ does not exist 2024/06/26 05:59:45.066969 [INFO] Finished running scripts in /var/app/staging/.platform/hooks/prebuild 2024/06/26 05:59:45.066976 [INFO] Executing instruction: Install customer specified node.js version 2024/06/26 05:59:45.067047 [INFO] Executing instruction: Use NPM to install dependencies 2024/06/26 05:59:45.067060 [INFO] there is no package.json file, skip installing dependencies 2024/06/26 05:59:45.067063 [INFO] Executing instruction: check Procfile 2024/06/26 05:59:45.067067 [INFO] checking Procfile 2024/06/26 05:59:45.067073 [INFO] no Procfile found, generating Procfile 2024/06/26 05:59:45.067083 [INFO] checking package.json file 2024/06/26 05:59:45.067090 [INFO] checking app.js file from source 2024/06/26 05:59:45.067097 [INFO] checking server.js file from source 2024/06/26 05:59:45.067140 [ERROR] An error occurred during execution of command [app-deploy] - [check Procfile]. Stop running the command. Error: node.js may have issues starting. Please provide a package.json file or add server.js/app.js file in source bundle
2024/06/26 05:59:45.067152 [INFO] Executing cleanup logic 2024/06/26 05:59:45.067449 [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 generate a 'Procfile' for Node.js. Provide one of these files: 'package.json', 'server.js', or 'app.js'. The deployment failed.","timestamp":1719381585067,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1719381585067,"severity":"ERROR"}]}]}
2024/06/26 05:59:45.071029 [INFO] Platform Engine finished execution on command: app-deploy
2024/06/26 06:07:59.891189 [INFO] Starting... 2024/06/26 06:07:59.891268 [INFO] Starting EBPlatform-PlatformEngine 2024/06/26 06:07:59.891294 [INFO] reading event message file 2024/06/26 06:07:59.891511 [INFO] Engine received EB command cfn-hup-exec
2024/06/26 06:07:59.980960 [INFO] Running command: /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd -r AWSEBAutoScalingGroup --region ap-northeast-2 2024/06/26 06:08:00.334609 [INFO] Running command: /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:ap-northeast-2:471112665894:stack/awseb-e-vx3crz3gdx-stack/155c4120-3381-11ef-8d57-0a55080a9ffd -r AWSEBBeanstalkMetadata --region ap-northeast-2 2024/06/26 06:08:00.679892 [INFO] checking whether command tail-log is applicable to this instance... 2024/06/26 06:08:00.679908 [INFO] this command is applicable to the instance, thus instance should execute command 2024/06/26 06:08:00.679911 [INFO] Engine command: (tail-log)
2024/06/26 06:08:00.679965 [INFO] Executing instruction: GetTailLogs 2024/06/26 06:08:00.679970 [INFO] Tail Logs... 2024/06/26 06:08:00.680442 [INFO] Running command: tail -n 100 /var/log/eb-engine.log
---------------------------------------- /var/log/eb-hooks.log ----------------------------------------
감사합니다.
2024년 6월 26일 16:35 #126636
codingapple키 마스터package.json package-lock.json 파일 빼고올렸다는 에러같습니다 아니면 next.js 버전이 너무 높아서 그럴수도요 낮춰봅시다
-
글쓴이글
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
- 답변은 로그인 후 가능합니다.