[GH-ISSUE #16] Unable to run #7

Closed
opened 2026-02-26 17:46:05 +03:00 by kerem · 1 comment
Owner

Originally created by @swartjie on GitHub (Aug 27, 2023).
Original GitHub issue: https://github.com/cvk98/Proxmox-load-balancer/issues/16

hey Guys,

I have been trying to get the script to work.

I keep seeing:
INFO | START Load-balancer!
Traceback (most recent call last):
File "/root/Proxmox-load-balancer-main/plb.py", line 491, in
main()
File "/root/Proxmox-load-balancer-main/plb.py", line 461, in main
cluster = Cluster(server_url)
File "/root/Proxmox-load-balancer-main/plb.py", line 95, in init
self.cl_nodes: dict = self.cluster_hosts() # All cluster nodes
File "/root/Proxmox-load-balancer-main/plb.py", line 167, in cluster_hosts
self.master_node = rr.json()['data']['manager_status']['master_node']
KeyError: 'master_node'

I have disabled the only_on_master variable by leaving it on OFF abut it's still not working...
I'm currently running PVE 7.4-15

Any advise on how to get it to work will be amazing?

Originally created by @swartjie on GitHub (Aug 27, 2023). Original GitHub issue: https://github.com/cvk98/Proxmox-load-balancer/issues/16 hey Guys, I have been trying to get the script to work. I keep seeing: INFO | START ***Load-balancer!*** Traceback (most recent call last): File "/root/Proxmox-load-balancer-main/plb.py", line 491, in <module> main() File "/root/Proxmox-load-balancer-main/plb.py", line 461, in main cluster = Cluster(server_url) File "/root/Proxmox-load-balancer-main/plb.py", line 95, in __init__ self.cl_nodes: dict = self.cluster_hosts() # All cluster nodes File "/root/Proxmox-load-balancer-main/plb.py", line 167, in cluster_hosts self.master_node = rr.json()['data']['manager_status']['master_node'] KeyError: 'master_node' I have disabled the `only_on_master` variable by leaving it on `OFF` abut it's still not working... I'm currently running PVE `7.4-15` Any advise on how to get it to work will be amazing?
kerem closed this issue 2026-02-26 17:46:05 +03:00
Author
Owner

@cvk98 commented on GitHub (Aug 28, 2023):

Hello.

  1. Try print(ONLY_ON_MASTER) after line 34 to find out if the parameter from the config was read correctly.
  2. Comment out 2 lines (167, 168):
    self.master_node = rr.json()['data']['manager_status']['master_node']
    self.quorate = (rr.json()['data']['quorum']['quorate'] == "1")
<!-- gh-comment-id:1696225260 --> @cvk98 commented on GitHub (Aug 28, 2023): Hello. 1. Try print(ONLY_ON_MASTER) after line 34 to find out if the parameter from the config was read correctly. 2. Comment out 2 lines (167, 168): self.master_node = rr.json()['data']['manager_status']['master_node'] self.quorate = (rr.json()['data']['quorum']['quorate'] == "1")
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxmox-load-balancer#7
No description provided.