Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance not starting up with saved ami id. #37

Open
anjaliagarwal8 opened this issue Jan 24, 2022 · 0 comments
Open

Instance not starting up with saved ami id. #37

anjaliagarwal8 opened this issue Jan 24, 2022 · 0 comments

Comments

@anjaliagarwal8
Copy link

I started a session and setup the environment in the instance for deploying the model. After testing the code I stopped the instance (not terminated it), saved the ami id and updated the blueprint. When I again tried to use the same ami id to start the instance after a while it said, ami id does not exist.

I used this command too,
neurocaas-contrib remote start-devinstance
Instance i-0d5f45f10dd323cd4 is stopped, not safe to test.
Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/neurocaas/bin/neurocaas-contrib", line 8, in
sys.exit(main())
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/neurocaas_contrib/main.py", line 5, in main
cli()
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/neurocaas_contrib/cli_commands.py", line 1380, in start_devinstance
ami.start_devinstance(timeout = timeout)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/neurocaas_contrib/remote.py", line 438, in start_devinstance
response = ec2_client.start_instances(InstanceIds = [self.instance.instance_id])
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/botocore/client.py", line 337, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/ec2-user/anaconda3/envs/neurocaas/lib/python3.6/site-packages/botocore/client.py", line 656, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InsufficientInstanceCapacity) when calling the StartInstances operation (reached max retries: 4): Insufficient capacity.

I tried with the earlier ami id but it just started a new fresh instance. Can you please guide me on how to start the instance on which I was working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant