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

agent register panics on missing discover data #1387

Open
DataMark-911 opened this issue Jun 7, 2024 · 4 comments
Open

agent register panics on missing discover data #1387

DataMark-911 opened this issue Jun 7, 2024 · 4 comments
Labels

Comments

@DataMark-911
Copy link

DataMark-911 commented Jun 7, 2024

[root@XXXXXXX ~]# sudo -u postgres temboard-agent -c /etc/temboard-agent/15/pg5432/temboard-agent.conf register --groups linux
INFO:  app: Using config file /etc/temboard-agent/15/pg5432/temboard-agent.conf.
WARNING:  configuration: Can't move back to /root: [Errno 13] Permission denied: '/root'
INFO:  register: Working for agent listening at https://XXXXXXXX:2345.
INFO:  register: Discovering system and PostgreSQL ...
ERROR:  app: Unhandled error:
        Traceback (most recent call last):
          File "/usr/lib/python3.6/site-packages/temboardagent/toolkit/app.py", line 351, in entrypoint
            retcode = self.main(argv, environ)
          File "/usr/lib/python3.6/site-packages/temboardagent/cli/app.py", line 135, in main
            return command.main(args)
          File "/usr/lib/python3.6/site-packages/temboardagent/cli/register.py", line 90, in main
            discover['postgres']['version_summary'],
        KeyError: 'version_summary'
ERROR:  app: temboardagent version is 8.2.1.
**ERROR:  app: This is a bug!**
ERROR:  app: Please report traceback to https://github.com/dalibo/temboard/issues/new! Thanks!
@bersace bersace added the bug label Jun 7, 2024
@bersace
Copy link
Member

bersace commented Jun 7, 2024

Execute sudo -u postgres temboard-agent -c /etc/temboard-agent/15/pg5432/temboard-agent.conf discover to refresh discover data as a workaround.

Please keep this issue open, temBoard should handle gently this situation.

@bersace
Copy link
Member

bersace commented Jun 7, 2024

Note that we recommend using temboard register-instance on UI side rather than registering on agent side. This avoids asking for admin credentials on UI and prevent agent to UI request initiation.

@bersace bersace changed the title bug agent register panics on missing discover data Jun 7, 2024
@DataMark-911
Copy link
Author

my pg_hba.conf file was not configured to go out.
I modified and restarted, i added on UI, it's ok now
Thank you bersace

@bersace
Copy link
Member

bersace commented Jun 7, 2024

What was the log message of temboard agent ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants