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

Connectivity Matrix not working #31

Closed
mark-hgb opened this issue Apr 30, 2023 · 3 comments
Closed

Connectivity Matrix not working #31

mark-hgb opened this issue Apr 30, 2023 · 3 comments

Comments

@mark-hgb
Copy link

Dear all,

I am using your Mini Internet Software for a lecture on Advanced Routing. It is just great, thanks for your efforts!

I currently have some troubles with the Connectivity Matrix feature. I start a Mini Internet with 24 ASes all fully configured ("Config" in C3 in "AS_config.txt"). The MATRIX container is working (unpause) and collecting data (I can see the files when connecting directly to the container). In the web frontend I get the message "Sorry, no data is available! Please check in later." when accessing the Connectivity Matrix feature (this originates from the Flask [?] template for this page). When looking at the webserver logs ("docker logs web") I get the following error all the time:

Traceback (most recent call last):
File "/server/routing_project_server/app.py", line 280, in loop
raise RuntimeError(
RuntimeError: Worker prepare_matrix crashed! Restarting.
Traceback (most recent call last):
File "/server/routing_project_server/app.py", line 277, in loop
function(*args, **kwargs)
File "/server/routing_project_server/app.py", line 320, in prepare_matrix
config['LOCATIONS']['matrix_stats']
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'matrix_stats'

AFAIK "matrix_stats" refers to a stats.txt file, which does exist on the MATRIX container but nowhere else. Any help would be much appreciated!

@NotSpecial
Copy link
Contributor

NotSpecial commented May 1, 2023

Hi! First of all, I'm sorry for the inconvenience. We are currently in the progress of merging our latest updates back into the main branch (see #29 ). We mixed up some steps of the process, and now the containers on docker hub are already updated while the branch is not yet merged. This leads to the errors you observe.

The issue you are facing comes from the fact that the setup scripts on the main branch do not make the stats file available to the web container.

You could do the following:

  • Use the commnet-23 branch from the merge request above, which uses all updated files (soon part of the main branch)
  • Copy over the matrix and website setup files from the dev branch to your local branch. With those two setup parts updated, the stats file should be available.

@mark-hgb
Copy link
Author

mark-hgb commented May 1, 2023

Thx for the quick reply! Using the commnet-23 branch works like a charm, the Connectivity Matrix gets displayed now! Great!

@NotSpecial
Copy link
Contributor

Happy to hear that!

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