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

Problem on enabling temboard agent #1543

Open
jmarsac opened this issue Dec 4, 2024 · 3 comments
Open

Problem on enabling temboard agent #1543

jmarsac opened this issue Dec 4, 2024 · 3 comments

Comments

@jmarsac
Copy link

jmarsac commented Dec 4, 2024

System :

Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

I get following error (I used Guillaume's guide )

sde22@srvsdesig:~$ sudo -u postgres temboard-agent -c /etc/temboard-agent/13/main/temboard-agent.conf fetch-key
INFO:  app: Starting temboard-agent 9.0.0.
INFO:  app: Using config file /etc/temboard-agent/13/main/temboard-agent.conf.
INFO:  fetch_key: Requesting public key from https://localhost.localdomain:8888.
ERROR:  app: Unhandled error:
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/temboardagent/toolkit/app.py", line 312, in entrypoint
            retcode = self.main(argv, environ)
          File "/usr/lib/python3/dist-packages/temboardagent/cli/app.py", line 127, in main
            return command.main(args)
          File "/usr/lib/python3/dist-packages/temboardagent/cli/fetch_key.py", line 43, in main
            response = ui_client.get("/signing.key")
          File "/usr/lib/python3/dist-packages/temboardagent/toolkit/http.py", line 129, in get
            return self.request("GET", path, headers)
          File "/usr/lib/python3/dist-packages/temboardagent/toolkit/http.py", line 110, in request
            conn.request(method, path, body, headers)
          File "/usr/lib/python3.9/http/client.py", line 1259, in request
            self._send_request(method, url, body, headers, encode_chunked)
          File "/usr/lib/python3.9/http/client.py", line 1305, in _send_request
            self.endheaders(body, encode_chunked=encode_chunked)
          File "/usr/lib/python3.9/http/client.py", line 1254, in endheaders
            self._send_output(message_body, encode_chunked=encode_chunked)
          File "/usr/lib/python3.9/http/client.py", line 1014, in _send_output
            self.send(msg)
          File "/usr/lib/python3.9/http/client.py", line 954, in send
            self.connect()
          File "/usr/lib/python3.9/http/client.py", line 1421, in connect
            super().connect()
          File "/usr/lib/python3.9/http/client.py", line 925, in connect
            self.sock = self._create_connection(
          File "/usr/lib/python3.9/socket.py", line 822, in create_connection
            for res in getaddrinfo(host, port, 0, SOCK_STREAM):
          File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
            for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
        socket.gaierror: [Errno -2] Name or service not known
ERROR:  app: temboardagent version is 9.0.0.
ERROR:  app: This is a bug!
ERROR:  app: Please report traceback to https://github.com/dalibo/temboard/issues/new! Thanks!

Thanks in advance for your help

@bersace
Copy link
Member

bersace commented Dec 5, 2024

Bonjour Jean-Marie,

Quel est le retour de getent hosts localhost.localdomain ?

Corriger ui_url dans temboard-agent.conf pour pointer vers l'UI. Vérifier l'URL avec curl avant.

Peux-tu laisser le ticket ouvert ? Nous la fermerons lorsque cette trace sera gérée.

Merci.

@jmarsac
Copy link
Author

jmarsac commented Dec 5, 2024

Bonjour Etienne,

Au temps pour moi, localhost.localdomain était absent de hosts et getent ne me rendait pas la main.

@jmarsac
Copy link
Author

jmarsac commented Dec 5, 2024

Je laisse ouvert en attendant la gestion de ce cas de configuration.

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

2 participants