LibreQoE / LibreQoS

A Quality of Experience and Smart Queue Management system for ISPs. Leverage CAKE to improve network responsiveness, enforce bandwidth plans, and reduce bufferbloat.
https://libreqos.io/
GNU General Public License v2.0
464 stars 50 forks source link

UISP Integration TypeError: string indices must be integers #413

Closed AwesomePilot828 closed 4 weeks ago

AwesomePilot828 commented 1 year ago

When running python3 integrationUISP.py the following error is returned.

Loading Data from UISP Traceback (most recent call last): File "/opt/libreqos/src/integrationUISP.py", line 486, in importFromUISP() File "/opt/libreqos/src/integrationUISP.py", line 479, in importFromUISP case "full": buildFullGraph() File "/opt/libreqos/src/integrationUISP.py", line 319, in buildFullGraph sites, dataLinks, uispSite = handleMultipleInternetNodes(sites, dataLinks, uispSite) File "/opt/libreqos/src/integrationUISP.py", line 287, in handleMultipleInternetNodes if link['canDelete'] == False: TypeError: string indices must be integers

Running version 1.4

rchac commented 1 year ago

What UISP version are you running?

AwesomePilot828 commented 1 year ago

UISP Version is 1.6.5

rchac commented 1 year ago

Looks like the older UISP version is the culprit. As a workaround, try setting uispSite = "YOUR_ROOT_SITE" in ispConfig.py, replacing YOUR_ROOT_SITE with whatever the exact name of your root site is in UISP. Then reload using sudo systemctl restart lqos_scheduler

AwesomePilot828 commented 1 year ago

Thanks for the suggestion! I will try this and report back next week when I get back to the machine I'm setting up.

I have considered upgrading UISP, but sometimes the new versions aren't ready for primetime... So I keep putting it off waiting for good feedback from the community.

I'll report back early next week.

Thanks!

rchac commented 4 weeks ago

Complete with v1.5