By: Walddys Emmanuel Dorrejo Cespedes user 17 Jan 2021 at 9:13 p.m. CST

2 Responses
Walddys Emmanuel Dorrejo Cespedes gravatar
Hello, i am trying to install gluu using docker but this fail. i did: ./pygluu-compose.pyz init got this files: ``` tree . . ├── couchbase.crt ├── couchbase_password ├── couchbase_superuser_password ├── docker-compose.yml ├── gcp_kms_creds.json ├── gcp_kms_stanza.hcl ├── jackrabbit_admin_password ├── job.persistence.yml ├── pygluu-compose.pyz ├── svc.casa.yml ├── svc.cr_rotate.yml ├── svc.fido2.yml ├── svc.jackrabbit.yml ├── svc.ldap.yml ├── svc.oxauth.yml ├── svc.oxd_server.yml ├── svc.oxpassport.yml ├── svc.oxshibboleth.yml ├── svc.oxtrust.yml ├── svc.radius.yml ├── svc.redis.yml ├── svc.scim.yml ├── svc.vault_autounseal.yml ├── vault_gluu_policy.hcl ├── vault_role_id.txt └── vault_secret_id.txt 0 directories, 26 files ``` when i do ./pygluu-compose.pyz up got this: ``` Traceback (most recent call last): File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib64/python3.8/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib64/python3.8/http/client.py", line 950, in send self.connect() File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/transport/unixconn.py", line 43, in connect sock.connect(self.unix_socket) FileNotFoundError: [Errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/util/retry.py", line 531, in increment raise six.reraise(type(error), error, _stacktrace) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib64/python3.8/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib64/python3.8/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib64/python3.8/http/client.py", line 950, in send self.connect() File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/transport/unixconn.py", line 43, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/api/client.py", line 214, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/api/client.py", line 237, in _get return self.get(url, **self._set_request_timeout(kwargs)) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "pygluu-compose.pyz/__main__.py", line 3, in <module> File "pygluu-compose.pyz/_bootstrap/__init__.py", line 241, in bootstrap File "pygluu-compose.pyz/_bootstrap/__init__.py", line 36, in run File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context().obj, *args, **kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/pygluu/compose/cli.py", line 74, in up app.up() File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/pygluu/compose/app.py", line 496, in up self.check_ports() File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/pygluu/compose/app.py", line 566, in check_ports with self.top_level_cmd() as tlc: File "/usr/lib64/python3.8/contextlib.py", line 113, in __enter__ return next(self.gen) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/pygluu/compose/app.py", line 217, in top_level_cmd project = get_project(os.getcwd(), config_path, environment=env) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/compose/cli/command.py", line 131, in get_project client = get_client( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/compose/cli/docker_client.py", line 41, in get_client client = docker_client( File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/compose/cli/docker_client.py", line 170, in docker_client client = APIClient(**kwargs) File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/api/client.py", line 197, in __init__ self._version = self._retrieve_server_version() File "/root/.shiv/pygluu-compose_8939b1d254480005cd9f8f5f4129a673f6aa4df1fdf6b02a1ae80f76461decd7/site-packages/docker/api/client.py", line 221, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) ```

By Isman Firmansyah staff 18 Jan 2021 at 12:41 a.m. CST

Isman Firmansyah gravatar
Hi Walddys, The error seems from docker connection. Do you have a running docker daemon? Try run `docker info` first.

By Walddys Emmanuel Dorrejo Cespedes user 21 Jan 2021 at 6:16 p.m. CST

Walddys Emmanuel Dorrejo Cespedes gravatar
Hello, was a issue with the network adapter and permission, thank you for the help.