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

eb health throws if env not yet ready #519

Open
glensc opened this issue Jul 24, 2024 · 0 comments
Open

eb health throws if env not yet ready #519

glensc opened this issue Jul 24, 2024 · 0 comments

Comments

@glensc
Copy link

glensc commented Jul 24, 2024

Description

Created new eb environment and tried to ssh to it with eb ssh, it said it's not running try eb health, but that gave exception.

Elastic Beanstalk is launching your environment. This will take a few minutes.

Steps to reproduce

Provide steps to replicate. This should include: exact ebcli commands, any relevant configuration files(sanitized), platform version, region, as well as any additional information you think is relevant.

Observed result

Exception in thread Thread-1 (_poll_for_health_data):
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.11/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/Cellar/python@3.11/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/homebrew/Cellar/aws-elasticbeanstalk/3.20.10_4/libexec/lib/python3.11/site-packages/ebcli/display/data_poller.py", line 141, in _poll_for_health_data
    raise e
  File "/opt/homebrew/Cellar/aws-elasticbeanstalk/3.20.10_4/libexec/lib/python3.11/site-packages/ebcli/display/data_poller.py", line 115, in _poll_for_health_data
    data = self._get_health_data()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aws-elasticbeanstalk/3.20.10_4/libexec/lib/python3.11/site-packages/ebcli/display/traditional.py", line 126, in _get_health_data
    'environment': self.assemble_environment_data(ids_of_all_instances, instances_registered_with_elb)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aws-elasticbeanstalk/3.20.10_4/libexec/lib/python3.11/site-packages/ebcli/display/traditional.py", line 42, in assemble_environment_data
    env = elasticbeanstalk.get_environment(app_name=self.app_name, env_name=self.env_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aws-elasticbeanstalk/3.20.10_4/libexec/lib/python3.11/site-packages/ebcli/lib/elasticbeanstalk.py", line 618, in get_environment
    raise NotFoundError('Environment "' + env_str + '" not Found.')
ebcli.objects.exceptions.NotFoundError: Environment "metabase-v2-env" not Found.

Expected result

Something nice, like error only without a trace.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS:
  2. EBCLI version:
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