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

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

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



배포과정에서 오류가 떠서 튜터님께서 알려주신대로 eb restore을 했는데

ERROR: NotFoundError - No terminated environments found.

Environments are available for six weeks after termination라고 뜨고

선택할 수 있는 환경이 나오지 않아요....조언대로 aws도 다시 설정했는데 아무런 변화가 없구요





source /Users/jiyoonkim/Desktop/sparta/projects/05.fan/venv/bin/activate
jiyoonkim@Jiyoons-MacBookAir 05.fan % source /Users/jiyoonkim/Desktop/sparta/projects/05.fan/venv/bin/activate
(venv) jiyoonkim@Jiyoons-MacBookAir 05.fan % pip install --upgrade pip


Collecting pip
  Downloading https://files.pythonhosted.org/packages/08/e3/57d4c24a050aa0bcca46b2920bff40847db79535dc78141eb83581a52eb8/pip-23.1.2-py3-none-any.whl (2.1MB)
     |████████████████████████████████| 2.1MB 1.3MB/s 
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-23.1.2
(venv) jiyoonkim@Jiyoons-MacBookAir 05.fan % pip install awsebcli


Collecting awsebcli
  Using cached awsebcli-3.20.6.tar.gz (268 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting botocore<1.29.100,>1.23.41 (from awsebcli)
  Using cached botocore-1.29.99-py3-none-any.whl (10.5 MB)
Collecting cement==2.8.2 (from awsebcli)
  Using cached cement-2.8.2.tar.gz (165 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting colorama<0.4.4,>=0.2.5 (from awsebcli)
  Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting pathspec==0.10.1 (from awsebcli)
  Using cached pathspec-0.10.1-py3-none-any.whl (27 kB)
Collecting python-dateutil<3.0.0,>=2.1 (from awsebcli)
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting requests<=2.26,>=2.20.1 (from awsebcli)
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Requirement already satisfied: setuptools>=20.0 in ./venv/lib/python3.8/site-packages (from awsebcli) (41.2.0)
Collecting semantic-version==2.8.5 (from awsebcli)
  Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Collecting six<1.15.0,>=1.11.0 (from awsebcli)
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting termcolor==1.1.0 (from awsebcli)
  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting wcwidth<0.2.0,>=0.1.7 (from awsebcli)
  Using cached wcwidth-0.1.9-py2.py3-none-any.whl (19 kB)
Collecting PyYAML<5.5,>=5.3.1 (from awsebcli)
  Using cached PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl (253 kB)
Collecting urllib3>=1.26.5 (from awsebcli)
  Using cached urllib3-2.0.2-py3-none-any.whl (123 kB)
Collecting docker-compose<1.26.0,>=1.25.2 (from awsebcli)
  Using cached docker_compose-1.25.5-py2.py3-none-any.whl (139 kB)
Collecting blessed>=1.9.5 (from awsebcli)
  Using cached blessed-1.20.0-py2.py3-none-any.whl (58 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from botocore<1.29.100,>1.23.41->awsebcli)
  Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting urllib3>=1.26.5 (from awsebcli)
  Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Collecting cached-property<2,>=1.2.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting docker[ssh]<5,>=3.7.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached docker-4.4.4-py2.py3-none-any.whl (147 kB)
Collecting dockerpty<1,>=0.4.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached dockerpty-0.4.1.tar.gz (13 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting docopt<1,>=0.6.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting jsonschema<4,>=2.5.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting texttable<2,>=0.9.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached texttable-1.6.7-py2.py3-none-any.whl (10 kB)
Collecting websocket-client<1,>=0.32.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.8/site-packages (from requests<=2.26,>=2.20.1->awsebcli) (2022.12.7)
Collecting charset-normalizer~=2.0.0 (from requests<=2.26,>=2.20.1->awsebcli)
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5 (from requests<=2.26,>=2.20.1->awsebcli)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting paramiko>=2.4.2 (from docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached paramiko-3.1.0-py3-none-any.whl (211 kB)
Collecting attrs>=17.4.0 (from jsonschema<4,>=2.5.1->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting pyrsistent>=0.14.0 (from jsonschema<4,>=2.5.1->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Downloading pyrsistent-0.19.3-cp38-cp38-macosx_10_9_universal2.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.5/82.5 kB 1.0 MB/s eta 0:00:00
Collecting bcrypt>=3.2 (from paramiko>=2.4.2->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Downloading bcrypt-4.0.1-cp36-abi3-macosx_10_10_universal2.whl (473 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 473.4/473.4 kB 1.2 MB/s eta 0:00:00
Collecting cryptography>=3.3 (from paramiko>=2.4.2->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached cryptography-40.0.2-cp36-abi3-macosx_10_12_x86_64.whl (2.8 MB)
Collecting pynacl>=1.5 (from paramiko>=2.4.2->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Downloading PyNaCl-1.5.0-cp36-abi3-macosx_10_10_universal2.whl (349 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 349.9/349.9 kB 162.3 kB/s eta 0:00:00
Collecting cffi>=1.12 (from cryptography>=3.3->paramiko>=2.4.2->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached cffi-1.15.1-cp38-cp38-macosx_10_9_x86_64.whl (178 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=3.3->paramiko>=2.4.2->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: awsebcli, cement, termcolor, dockerpty, docopt
  Building wheel for awsebcli (pyproject.toml) ... done
  Created wheel for awsebcli: filename=awsebcli-3.20.6-py3-none-any.whl size=361001 sha256=1293f9340a38e775e88eeb19ccf9a8046eb44649175c15f2f564c77c75dc3430
  Stored in directory: /Users/jiyoonkim/Library/Caches/pip/wheels/0a/31/2d/f1ed06e0c6055375d5c84c35278e1614aea72e822f5234d6f0
  Building wheel for cement (pyproject.toml) ... done
  Created wheel for cement: filename=cement-2.8.2-py3-none-any.whl size=99504 sha256=4a864ad6a42d65f23
(venv) jiyoonkim@Jiyoons-MacBookAir 05.fan % 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) il-central-1 : Middle East (Israel)
23) af-south-1 : Africa (Cape Town)
24) ap-southeast-3 : Asia Pacific (Jakarta)
25) ap-northeast-3 : Asia Pacific (Osaka)
(default is 3): 10


You have not yet set up your credentials or your credentials are incorrect 
You must provide your credentials.
(aws-access-id): AKIASAP3ZIZNS7ZSF2I4
(aws-secret-key): BUshRxm/EbSejkt9QwG0dI0qQ6T+2B9QM5PM0NzQ


Enter Application Name
(default is "05.fan"): 
Application 05.fan has been created.


It appears you are using Python. Is this correct?
(Y/n): Y
Select a platform branch.
1) Python 3.11 running on 64bit Amazon Linux 2023
2) Python 3.9 running on 64bit Amazon Linux 2023
3) Python 3.8 running on 64bit Amazon Linux 2
4) 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): 


Type a keypair name.
(Default is aws-eb): 
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/jiyoonkim/.ssh/aws-eb
Your public key has been saved in /Users/jiyoonkim/.ssh/aws-eb.pub
The key fingerprint is:
SHA256:i5FvyO2c8BxdwKll3qx0phIm39S7r2G05yhgIaaopaQ aws-eb
The key's randomart image is:
+---[RSA 3072]----+
|                 |
|         . .     |
|          *      |
|      o..= =     |
|   . o+.S.+ O    |
| .o .. XoB B o   |
|o+    =.O.= = .  |
|E      B +.. *   |
|        *  .+oo  |
+----[SHA256]-----+
WARNING: Uploaded SSH public key for "aws-eb" into EC2 for region ap-northeast-2.
(venv) jiyoonkim@Jiyoons-MacBookAir 05.fan % eb create myweb


^[[ACreating application version archive "app-230507_010658450809".
Uploading: [##################################################] 100% Done...
Environment details for: myweb
  Application name: 05.fan
  Region: ap-northeast-2
  Deployed Version: app-230507_010658450809
  Environment ID: e-ssa7mammdd
  Platform: arn:aws:elasticbeanstalk:ap-northeast-2::platform/Python 3.11 running on 64bit Amazon Linux 2023/4.0.0
  Tier: WebServer-Standard-1.0
  CNAME: UNKNOWN
  Updated: 2023-05-06 16:12:44.321000+00:00
Printing Status:
2023-05-06 16:12:42    INFO    createEnvironment is starting.
2023-05-06 16:12:44    INFO    Using elasticbeanstalk-ap-northeast-2-138503865947 as Amazon S3 storage bucket for environment data.
2023-05-06 16:13:12    INFO    Created security group named: sg-0f9ddf7b8f27f5b61
2023-05-06 16:13:28    INFO    Created security group named: awseb-e-ssa7mammdd-stack-AWSEBSecurityGroup-5134DHS6X1FM
2023-05-06 16:13:28    INFO    Created target group named: arn:aws:elasticloadbalancing:ap-northeast-2:138503865947:targetgroup/awseb-AWSEB-QDFDJ95KCNK6/e9639e1fd7b5acba
2023-05-06 16:13:28    INFO    Created Auto Scaling launch configuration named: awseb-e-ssa7mammdd-stack-AWSEBAutoScalingLaunchConfiguration-UpRTFemItD0B
2023-05-06 16:14:14    INFO    Created Auto Scaling group named: awseb-e-ssa7mammdd-stack-AWSEBAutoScalingGroup-FZAF38XRT1AC
2023-05-06 16:14:14    INFO    Waiting for EC2 instances to launch. This may take a few minutes.
2023-05-06 16:14:29    INFO    Created Auto Scaling group policy named: arn:aws:autoscaling:ap-northeast-2:138503865947:scalingPolicy:5d18c6be-7004-4c2a-be09-5b546eba186e:autoScalingGroupName/awseb-e-ssa7mammdd-stack-AWSEBAutoScalingGroup-FZAF38XRT1AC:policyName/awseb-e-ssa7mammdd-stack-AWSEBAutoScalingScaleDownPolicy-i5t4Av2l0Kwk
2023-05-06 16:14:29    INFO    Created Auto Scaling group policy named: arn:aws:autoscaling:ap-northeast-2:138503865947:scalingPolicy:8d4bbef5-3b52-404d-b925-663eefdae3ad:autoScalingGroupName/awseb-e-ssa7mammdd-stack-AWSEBAutoScalingGroup-FZAF38XRT1AC:policyName/awseb-e-ssa7mammdd-stack-AWSEBAutoScalingScaleUpPolicy-uJmTyo5M79iW
2023-05-06 16:14:30    INFO    Created CloudWatch alarm named: awseb-e-ssa7mammdd-stack-AWSEBCloudwatchAlarmLow-1NJCQLFUCSHUW
2023-05-06 16:14:30    INFO    Created CloudWatch alarm named: awseb-e-ssa7mammdd-stack-AWSEBCloudwatchAlarmHigh-1W5WS21IN0OL0
2023-05-06 16:15:20    INFO    Created load balancer named: arn:aws:elasticloadbalancing:ap-northeast-2:138503865947:loadbalancer/app/awseb-AWSEB-1PA5247Y4B7DL/634cf8601c57dedf
2023-05-06 16:15:20    INFO    Created Load Balancer listener named: arn:aws:elasticloadbalancing:ap-northeast-2:138503865947:listener/app/awseb-AWSEB-1PA5247Y4B7DL/634cf8601c57dedf/473c809ea67388d3
2023-05-06 16:15:40    ERROR   Instance deployment failed. For details, see 'eb-engine.log'.
2023-05-06 16:15:41    ERROR   [Instance: i-0ecc59125d02e23ad] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..


ERROR: NotFoundError - No terminated environments found.
Environments are available for six weeks after termination.
(venv) jiyoonkim@Jiyoons-MacBookAir deploy % 





















































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