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

Error if the node is under contract #36

Open
CodeExplorerX opened this issue Jul 31, 2024 · 7 comments
Open

Error if the node is under contract #36

CodeExplorerX opened this issue Jul 31, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@CodeExplorerX
Copy link

If the node is under maintenance, then pterodactyl_exporter returns an error and stops scanning all servers, spamming the error console.

2024-07-31 17:06:55 | Init successful!
2024-07-31 17:07:05 | An error occurred:
Fetch metrics for Server Name

@CodeExplorerX CodeExplorerX added the bug Something isn't working label Jul 31, 2024
@CodeExplorerX
Copy link
Author

CodeExplorerX commented Jul 31, 2024

mostly an error on my part since I'm using an old version of Pterodactyl. And if the server has the status “supsended” or the node is undergoing technical work. Then /api/client/servers/{server.id}/resources returns a response with code 409.
image

What helped me fix the error was not a big change in http_client: https://pastebin.com/PQvK1NGT

@LOENS2
Copy link
Owner

LOENS2 commented Jul 31, 2024

Ok. I remember, that the were several problems with nodes in maintenance mode. I'll add an additional check to only process the data from nodes that return 200.

@CodeExplorerX
Copy link
Author

Ok. I remember, that the were several problems with nodes in maintenance mode. I'll add an additional check to only process the data from nodes that return 200.

One more thing in Grafana there is a warning in Network Trafics, but it collects information about the network
image

@LOENS2
Copy link
Owner

LOENS2 commented Jul 31, 2024

I don't exactly know what the problem is with that. I've already asked the Grafana devs about it and they told me that this is because I don't stick to the conventions. You can ignore that if everything works as expected.

@LOENS2
Copy link
Owner

LOENS2 commented Jul 31, 2024

Could you please tell me witch version of the Pterodactyl Panel you are using, because I'm not able to replicate the problem on my testing system.

I get the:

2024-07-31 17:06:55 | Init successful!
2024-07-31 17:07:05 | An error occurred:

But the exporter successfully keeps on exporting the other nodes' metrics, so that error is likely exclusive to your specific panel version.

@CodeExplorerX
Copy link
Author

CodeExplorerX commented Jul 31, 2024

Could you please tell me witch version of the Pterodactyl Panel you are using, because I'm not able to replicate the problem on my testing system.

I get the:

2024-07-31 17:06:55 | Init successful!
2024-07-31 17:07:05 | An error occurred:

But the exporter successfully keeps on exporting the other nodes' metrics, so that error is likely exclusive to your specific panel version.

1.11.3

@LOENS2
Copy link
Owner

LOENS2 commented Aug 3, 2024

Unfortunately, I'm not able to recreate that error. I've switched versions of the panel and wings all throughout the 1.11.x versions and nothing. All works as expected. The exporter doesn't restart, and the panel doesn't return code 409 either.
I'm starting to wonder if this has its origins in the general installation of the panel. I use Caddy as a web server, but I've also tested the ginx installation and both work fine, no matter which panel version is used.
Could you please tell me which web server you are using? And what is holding you back from updating your panel to the newest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants