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

Unknown instance unknown? #2805

Closed
ChillarAnand opened this issue May 30, 2024 · 7 comments
Closed

Unknown instance unknown? #2805

ChillarAnand opened this issue May 30, 2024 · 7 comments

Comments

@ChillarAnand
Copy link

Describe the bug
When running glances, I am noticing this error.

"Unknown Unknown instance Unknown (Unknown)"

Screenshot 2024-05-30 at 12 59 50

To Reproduce
Steps to reproduce the behavior:

Start glances with influxdb2 export and wait for ~10 seconds.

❯ sudo glances -t 5 --export influxdb2 -C ~/.glances.conf

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Screenshot 2024-05-30 at 12 59 50

Environement (please complete the following information)
macOS

❯ sudo glances -V
Glances version:	4.0.7
Glances API version:	4
PsUtil version:		5.9.1
Log file:		/Users/chillaranand/.local/share/glances/glances.log
@nicolargo
Copy link
Owner

Hi @ChillarAnand

can you run the following command line and copy/paste the result:

glances --stdout cloud --stop-after 1

the cloud plugin is disable by default, check in your configuration file (~/.glances.conf) that:

[cloud]
# Documentation: https://glances.readthedocs.io/en/latest/aoa/cloud.html
# This plugin is disabled by default
disable=True

Additional question: why do you run Glances with sudo, it is not secure....

@ChillarAnand
Copy link
Author

❯ glances --stdout cloud --stop-after 1
cloud: {}

I don't have "cloud" section in config.

https://github.com/ChillarAnand/init/blob/main/glances.conf

If I run without sudo, output is as below. Horizontal lines are messed up.

Screenshot 2024-05-30 at 14 08 12

@nicolargo
Copy link
Owner

My advice is to use the default glances.conf file (https://github.com/nicolargo/glances/blob/master/conf/glances.conf) and add your amp section inside it. If you overwrite the glances.conf, some sections (like the cloud one) are missing.

@nicolargo
Copy link
Owner

Concerning the strange behavor with the separators, you can disable its from tge configuration file:

[outputs]
separator=False

Can you copy/paste the result of the following command:

# echo $TERM

# sudo echo $TERM

@ChillarAnand
Copy link
Author

Concerning the strange behavor with the separators, you can disable its from tge configuration file:

[outputs]
separator=False

Can you copy/paste the result of the following command:

# echo $TERM

# sudo echo $TERM
Screenshot 2024-06-02 at 17 17 09

@ChillarAnand
Copy link
Author

My advice is to use the default glances.conf file (master/conf/glances.conf) and add your amp section inside it. If you overwrite the glances.conf, some sections (like the cloud one) are missing.

Even if some sections are missing, should they take "default" values by default?

By using the above config file, "Unknown" issue is resolved now.

@nicolargo
Copy link
Owner

For the separator issue, another issue has been opened: #2817

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

No branches or pull requests

2 participants