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

UISP Integration TypeError: string indices must be integers #413

Open
AwesomePilot828 opened this issue Oct 31, 2023 · 4 comments
Open

UISP Integration TypeError: string indices must be integers #413

AwesomePilot828 opened this issue Oct 31, 2023 · 4 comments

Comments

@AwesomePilot828
Copy link

AwesomePilot828 commented Oct 31, 2023

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
Copy link
Member

rchac commented Nov 3, 2023

What UISP version are you running?

@AwesomePilot828
Copy link
Author

UISP Version is 1.6.5

@rchac
Copy link
Member

rchac commented Nov 3, 2023

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
Copy link
Author

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!

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

No branches or pull requests

2 participants