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

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


aws 배포 수업 후, 다시 해보려고 인스턴스를 삭제 후 재배포를 진행하는 과정에서 에러가 뜹니다.

초기설정인 eb deploy myweb 이후 에러가 뜬 상황입니다.



스파르타 즉문즉답





작성한 코드 및 에러 메세지

(venv)

J@DESKTOP-21PAMI9 MINGW64 /d/code/sparta/projects/05.fan

$ cd deploy

(venv)

J@DESKTOP-21PAMI9 MINGW64 /d/code/sparta/projects/05.fan/deploy

(venv) 

J@DESKTOP-21PAMI9 MINGW64 /d/code/sparta/projects/05.fan/deploy

$ eb init


Select a default region

1) us-east-1 : US East (N. Virginia)     

2) us-west-1 : US West (N. California)    

3) us-west-2 : US West (Oregon)

4) eu-west-1 : EU (Ireland)

5) eu-central-1 : EU (Frankfurt)

6) ap-south-1 : Asia Pacific (Mumbai)    

7) ap-southeast-1 : Asia Pacific (Singapore)

8) ap-southeast-2 : Asia Pacific (Sydney)  

9) ap-northeast-1 : Asia Pacific (Tokyo)   

10) ap-northeast-2 : Asia Pacific (Seoul)  

11) sa-east-1 : South America (Sao Paulo)  

12) cn-north-1 : China (Beijing)

13) cn-northwest-1 : China (Ningxia)     

14) us-east-2 : US East (Ohio)

15) ca-central-1 : Canada (Central)

16) eu-west-2 : EU (London)

17) eu-west-3 : EU (Paris)

18) eu-north-1 : EU (Stockholm)

19) eu-south-1 : EU (Milano)

20) ap-east-1 : Asia Pacific (Hong Kong)   

21) me-south-1 : Middle East (Bahrain)    

22) af-south-1 : Africa (Cape Town)

23) ap-southeast-3 : Asia Pacific (Jakarta) 

24) ap-northeast-3 : Asia Pacific (Osaka)  

(default is 3): 10



Enter Application Name

(default is "deploy"):

Application deploy has been created.


It appears you are using Python. Is this correct?

(Y/n): Y

Select a platform branch.

1) Python 3.8 running on 64bit Amazon Linux 2

2) Python 3.7 running on 64bit Amazon Linux 2

(default is 1):


Cannot setup CodeCommit because there is no Source Control setup, continuing with initialization

Do you want to set up SSH for your instances?

(Y/n): Y


Select a keypair.

1) aws-eb

2) aws-eb2

3) [ Create new KeyPair ]

(default is 2): 3



Type a keypair name.

(Default is aws-eb3): 

Generating public/private rsa key pair.

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in C:\Users\J\.ssh\aws-eb3

Your public key has been saved in C:\Users\J\.ssh\aws-eb3.pub

The key fingerprint is:

SHA256:bMO8b8jkLkG7gSy2dRItjBRpjnlUE+lb2M4wMDDFGLo aws-eb3

The key's randomart image is:

+---[RSA 3072]----+

|+*o++o      |

|o.O ..      |

|.B * +      |

|o.+ O =+     |

|E. . % .S    |

| o * B..o    |

| . + o B..    |

| .  o +..   |

|    o...   |

+----[SHA256]-----+

WARNING: Uploaded SSH public key for "aws-eb3" into EC2 for region ap-northeast-2.

(venv) 

J@DESKTOP-21PAMI9 MINGW64 /d/code/sparta/projects/05.fan/deploy

$ eb create myweb

Creating application version archive "app-230416_162828888928".

Uploading deploy/app-230416_162828888928.zip to S3. This may take a while.

Upload Complete.

Environment details for: myweb

 Application name: deploy

 Region: ap-northeast-2

 Deployed Version: app-230416_162828888928

 Environment ID: e-9xn8bdfhfw

 Platform: arn:aws:elasticbeanstalk:ap-northeast-2::platform/Python 3.8 running on 64bit Amazon Linux 2/3.5.1

 Tier: WebServer-Standard-1.0

 CNAME: UNKNOWN

 Updated: 2023-04-16 07:28:31.738000+00:00

Printing Status:

2023-04-16 07:28:30  INFO  createEnvironment is starting.

2023-04-16 07:28:31  INFO  Using elasticbeanstalk-ap-northeast-2-855959385356 as Amazon S3 storage bucket for environment data.

EBAutoScalingGroup-1BF2EURCQAHLN:policyName/awseb-e-9xn8bdfhfw-stack-AWSEBAutoScalingScaleUpPolicy-oc9ys63heZgE                                                       6JPSQII

2023-04-16 07:29:38  INFO  Created Auto Scaling group policy named: arn:aws:autoscaling:ap-northeast-2:85585356:targetgroup/awseb-AWSEB-FBBLQVQ3MNFJ/70a7c0ff6e959385356:scalingPolicy:b7b43761-bda2-455c-b114-763aea005e88:autoScalingGroupName/awseb-e-9xn8bdfhfw-stack-AWSEBAutoScalingGroup-1BF2EURCQAHLN:policyName/awseb-e-9xn8bdfhfw-stack-AWSEBAutoScalingScaleDownPolicy-7cbG5OjhWAutoScalingLaunchConfiguration-N14goTphfrLgBgm                                                      p-1BF2EURCQAHLN

2023-04-16 07:29:38  INFO  Created CloudWatch alarm named: awseb-e-9xn8bdfhfw-stack-AWSEBCloudwatchAlarmHigh-EJ2MEPM40LEZ                                                959385356:scalingPolicy:6ed7d34a-cdd3-4302-a61e-ac510

2023-04-16 07:29:39  INFO  Created CloudWatch alarm named: awseb-e-9xn8bdfhfw-stack-AWSEBCloudwatchAlarmLo9xn8bdfhfw-stack-AWSEBAutoScalingScaleUpPolicy-oc9ys3w-13KMODW67SU6E

2023-04-16 07:30:59  INFO  Created load balancer named: arn:aws:elasticloadbalancing:ap-northeast-2:855959959385356:scalingPolicy:b7b43761-bda2-455c-b114-763ae385356:loadbalancer/app/awseb-AWSEB-V3O7N5WNNCEC/2564aca2881cff59                       9xn8bdfhfw-stack-AWSEBAutoScalingScaleDownPolicy-7cb5

2023-04-16 07:30:59  INFO  Created Load Balancer listener named: arn:aws:elasticloadbalancing:ap-northeast-2:855959385356:listener/app/awseb-AWSEB-V3O7N5WNNCEC/2564aca2881cff59/cb29ccb3dfb3b1c5            gh-EJ2MEPM40LEZ

2023-04-16 07:31:08  ERROR  Instance deployment failed. For details, see 'eb-engine.log'.         w-13KMODW67SU6E

2023-04-16 07:31:08  ERROR  Instance deployment failed to install application dependencies. The deployment 385356:loadbalancer/app/awseb-AWSEB-V3O7N5WNNCEC/2564

failed.

2023-04-16 07:31:10  ERROR  [Instance: i-0b6386e7fc6ee6b83] Command failed on instance. Return code: 1 Outp-2:855959385356:listener/app/awseb-AWSEB-V3O7N5WNNCECut: Engine execution has encountered an error..

2023-04-16 07:31:10  INFO  Command execution completed on all instances. Summary: [Successful: 0, Failed: 

1].                                                      failed.

2023-04-16 07:32:13  ERROR  Create environment operation is complete, but with errors. For more informationut: Engine execution has encountered an error..   , see troubleshooting documentation.                                     1].

                                                       , see troubleshooting documentation.

ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.                                          ubleshooting documentation.

(venv)

J@DESKTOP-21PAMI9 MINGW64 /d/code/sparta/projects/05.fan/deploy

$




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