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

Core: Compose: compose.yml does not build development environment #3030

Open
andrewkwolek opened this issue Dec 15, 2024 · 4 comments
Open

Comments

@andrewkwolek
Copy link

I tried using docker to build the development environment but found that the cloud-telemetry image does not exist. The current image in the master branch is cloud-telemetry: image: public.ecr.aws/h4c9p1o0/blueos-cloud-agent-dev.

I found an active image in AWS ECR called public.ecr.aws/blueos/bcloud-agent which allowed me to successfully pull and run the environment. However, I received an exception in cloud-telemetry about non-existent files.

Is public.ecr.aws/blueos/bcloud-agent the correct image for cloud-telemetry or does it no longer exist?

Thanks!

@patrickelectric
Copy link
Member

Ping @voorloopnul

@voorloopnul
Copy link
Contributor

voorloopnul commented Dec 18, 2024

Hello Andrew, you are right, the correct image is: public.ecr.aws/blueos/bcloud-agent
Can you share the error you are receiving?

@andrewkwolek
Copy link
Author

This is the issue I am receiving. I see you made a PR so I can try that as well.

blueos-cloud-telemetry | Traceback (most recent call last):
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 789, in urlopen
blueos-cloud-telemetry | response = self._make_request(
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 495, in _make_request
blueos-cloud-telemetry | conn.request(
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 441, in request
blueos-cloud-telemetry | self.endheaders()
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 1281, in endheaders
blueos-cloud-telemetry | self._send_output(message_body, encode_chunked=encode_chunked)
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 1041, in _send_output
blueos-cloud-telemetry | self.send(msg)
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 979, in send
blueos-cloud-telemetry | self.connect()
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/transport/unixconn.py", line 26, in connect
blueos-cloud-telemetry | sock.connect(self.unix_socket)
blueos-cloud-telemetry | FileNotFoundError: [Errno 2] No such file or directory
blueos-cloud-telemetry |
blueos-cloud-telemetry | During handling of the above exception, another exception occurred:
blueos-cloud-telemetry |
blueos-cloud-telemetry | Traceback (most recent call last):
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 667, in send
blueos-cloud-telemetry | resp = conn.urlopen(
blueos-cloud-telemetry | ^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 843, in urlopen
blueos-cloud-telemetry | retries = retries.increment(
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/util/retry.py", line 474, in increment
blueos-cloud-telemetry | raise reraise(type(error), error, _stacktrace)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/util/util.py", line 38, in reraise
blueos-cloud-telemetry | raise value.with_traceback(tb)
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 789, in urlopen
blueos-cloud-telemetry | response = self._make_request(
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 495, in _make_request
blueos-cloud-telemetry | conn.request(
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 441, in request
blueos-cloud-telemetry | self.endheaders()
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 1281, in endheaders
blueos-cloud-telemetry | self._send_output(message_body, encode_chunked=encode_chunked)
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 1041, in _send_output
blueos-cloud-telemetry | self.send(msg)
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/http/client.py", line 979, in send
blueos-cloud-telemetry | self.connect()
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/transport/unixconn.py", line 26, in connect
blueos-cloud-telemetry | sock.connect(self.unix_socket)
blueos-cloud-telemetry | urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
blueos-cloud-telemetry |
blueos-cloud-telemetry | During handling of the above exception, another exception occurred:
blueos-cloud-telemetry |
blueos-cloud-telemetry | Traceback (most recent call last):
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/api/client.py", line 223, in _retrieve_server_version
blueos-cloud-telemetry | return self.version(api_version=False)["ApiVersion"]
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/api/daemon.py", line 181, in version
blueos-cloud-telemetry | return self._result(self._get(url), json=True)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/utils/decorators.py", line 44, in inner
blueos-cloud-telemetry | return f(self, *args, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/api/client.py", line 246, in _get
blueos-cloud-telemetry | return self.get(url, **self._set_request_timeout(kwargs))
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 602, in get
blueos-cloud-telemetry | return self.request("GET", url, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
blueos-cloud-telemetry | resp = self.send(prep, **send_kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
blueos-cloud-telemetry | r = adapter.send(request, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 682, in send
blueos-cloud-telemetry | raise ConnectionError(err, request=request)
blueos-cloud-telemetry | requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
blueos-cloud-telemetry |
blueos-cloud-telemetry | The above exception was the direct cause of the following exception:
blueos-cloud-telemetry |
blueos-cloud-telemetry | Traceback (most recent call last):
blueos-cloud-telemetry | File "/opt/app/major_tom.py", line 36, in <module>
blueos-cloud-telemetry | cli()
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
blueos-cloud-telemetry | return self.main(*args, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
blueos-cloud-telemetry | rv = self.invoke(ctx)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
blueos-cloud-telemetry | return _process_result(sub_ctx.command.invoke(sub_ctx))
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
blueos-cloud-telemetry | return ctx.invoke(self.callback, **ctx.params)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
blueos-cloud-telemetry | return __callback(*args, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/opt/app/major_tom.py", line 28, in cloud
blueos-cloud-telemetry | from src.cloud import cloud as Cloud
blueos-cloud-telemetry | File "/opt/app/src/cloud/cloud.py", line 13, in <module>
blueos-cloud-telemetry | from src.cloud.container_task import ContainerTask
blueos-cloud-telemetry | File "/opt/app/src/cloud/container_task.py", line 5, in <module>
blueos-cloud-telemetry | client = docker.from_env()
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/client.py", line 94, in from_env
blueos-cloud-telemetry | return cls(
blueos-cloud-telemetry | ^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/client.py", line 45, in __init__
blueos-cloud-telemetry | self.api = APIClient(*args, **kwargs)
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/api/client.py", line 207, in __init__
blueos-cloud-telemetry | self._version = self._retrieve_server_version()
blueos-cloud-telemetry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blueos-cloud-telemetry | File "/usr/local/lib/python3.11/site-packages/docker/api/client.py", line 230, in _retrieve_server_version
blueos-cloud-telemetry | raise DockerException(
blueos-cloud-telemetry | docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
blueos-cloud-telemetry exited with code 1

@patrickelectric
Copy link
Member

@andrewkwolek can you try the latest master ?

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

3 participants