Solved

Running into an issue saying "IndexError: tuple index out of range" while setting up the Tosca Dashboard

  • 29 September 2023
  • 2 replies
  • 48 views

Userlevel 3
Badge

Hi,

I run into an issue saying while setting up the Tosca Dashboard.

After we run this command, sudo docker-compose run --rm init import-all

We faced this issue, Creating tosca-dashboards_init_run ... done
Traceback (most recent call last):
  File "/usr/src/app/./init.py", line 10, in <module>
    settings = DockerSecretOrEnviron("superset_secret")
  File "/usr/src/app/docker_secret_or_environ.py", line 17, in __init__
    self.values[t[0]] = t[1]
IndexError: tuple index out of range

Let me kindly ask for your help how we can solve this!

This is the documentation link " https://documentation.tricentis.com/tosca_dashboards/100/en/content/cover_web.htm " we referenced.

In the attached screenshot, the highlighted step is where we are.

 

[Originally asked and solved on Support Hub]

icon

Best answer by Community Administrator 29 September 2023, 15:44

View original

2 replies

Userlevel 4
Badge +2

I had the same issue while setting it up.

For me, one of the configuration files was not correct. I had some whitespaces or line breaks in there. 

I guess that your "superset.secret" file is not well formed and make sure that it is absolutely correct. No hidden invisible characters anywhere. Just like the provided example by Tricentis. 

I hope that helps :)

Userlevel 3
Badge

I had the same issue while setting it up.

For me, one of the configuration files was not correct. I had some whitespaces or line breaks in there. 

I guess that your "superset.secret" file is not well formed and make sure that it is absolutely correct. No hidden invisible characters anywhere. Just like the provided example by Tricentis. 

I hope that helps :)

I am really glad to receive your reply.

You are correct. In my "superset.secret" file, I put one extra space before the information of Tosca Data database. After removing it, the issue was solved.

This was really helpful.

Thank you so much for your time and effort!

Reply