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

Permission error when executing dts code editor #100

Open
LeoLi1223 opened this issue Sep 26, 2023 · 0 comments
Open

Permission error when executing dts code editor #100

LeoLi1223 opened this issue Sep 26, 2023 · 0 comments

Comments

@LeoLi1223
Copy link

I'm using Ubuntu 22.0, trying to execute this command, and I got this error.

dts : Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
: httplib_response = self._make_request(
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
: conn.request(method, url, **httplib_request_kw)
: File "/usr/lib/python3.10/http/client.py", line 1283, in request
: self._send_request(method, url, body, headers, encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
: self.endheaders(body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
: self._send_output(message_body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
: self.send(msg)
: File "/usr/lib/python3.10/http/client.py", line 976, in send
: self.connect()
: File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
: sock.connect(self.unix_socket)
: PermissionError: [Errno 13] Permission denied
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
: resp = conn.urlopen(
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
: retries = retries.increment(
: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment
: raise six.reraise(type(error), error, _stacktrace)
: File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
: raise value.with_traceback(tb)
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
: httplib_response = self._make_request(
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
: conn.request(method, url, **httplib_request_kw)
: File "/usr/lib/python3.10/http/client.py", line 1283, in request
: self._send_request(method, url, body, headers, encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
: self.endheaders(body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
: self._send_output(message_body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
: self.send(msg)
: File "/usr/lib/python3.10/http/client.py", line 976, in send
: self.connect()
: File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
: sock.connect(self.unix_socket)
: urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
: return self.version(api_version=False)["ApiVersion"]
: File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
: return self._result(self._get(url), json=True)
: File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
: return f(self, *args, **kwargs)
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in get
: return self.get(url, **self.set_request_timeout(kwargs))
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 557, in get
: return self.request('GET', url, **kwargs)
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in request
: resp = self.send(prep, **send_kwargs)
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in send
: r = adapter.send(request, **kwargs)
: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
: raise ConnectionError(err, request=request)
: requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/home/leo/.local/lib/python3.10/site-packages/dt_shell/main.py", line 41, in cli_main
: cli_main
()
: File "/home/leo/.local/lib/python3.10/site-packages/dt_shell/main.py", line 183, in cli_main

: shell.onecmd(cmdline)
: File "/usr/lib/python3.10/cmd.py", line 217, in onecmd
: return func(arg)
: File "/home/leo/.local/lib/python3.10/site-packages/dt_shell/cli.py", line 288, in
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File "/home/leo/.local/lib/python3.10/site-packages/dt_shell/dt_command_abs.py", line 41, in do_command
: cls.commands[word].do_command(cls.commands[word], shell, " ".join(parts[1:]))
: File "/home/leo/.local/lib/python3.10/site-packages/dt_shell/dt_command_abs.py", line 54, in do_command
: cls.command(shell, args)
: File "/home/leo/.dt-shell/commands-multi/daffy/code/editor/command.py", line 153, in command
: arch: str = get_endpoint_architecture()
: File "/home/leo/.dt-shell/commands-multi/daffy/utils/docker_utils.py", line 94, in get_endpoint_architecture
: dockerOLD.from_env()
: File "/usr/lib/python3/dist-packages/docker/client.py", line 96, in from_env
: return cls(
: File "/usr/lib/python3/dist-packages/docker/client.py", line 45, in init
: self.api = APIClient(*args, **kwargs)
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in init
: self._version = self._retrieve_server_version()
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
: raise DockerException(
: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

The shell debug info is:

commands-version: daffy
dt-authentication-daffy: 0.1.16
dt-data-api-daffy: 1.2.0
duckietown-docker-utils-daffy: 6.1.1
duckietown-shell: 5.5.10
duckietown-shell-commands: 5.4.5
encodings:
locale: UTF-8
stderr: utf-8
stdout: utf-8
python: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]

How can I solve the error?

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