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

All "spectra" menu options yield 500 Internal Server Error messages #255

Open
dstndstn opened this issue Jan 27, 2022 · 5 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sbailey sbailey added the bug Something isn't working label Jan 28, 2022
@sybenzvi
Copy link
Contributor

sybenzvi commented Jan 31, 2022

The spectra menu does work at the KPNO instance of Nightwatch but not at NERSC. On the other hand, the guide image menu works at NERSC but not KPNO, though even at NERSC the JavaScript callback used to advance through the list of guide frames is broken. I suspect we have some bokeh version inconsistencies between the sites in addition to obsolete code. Will investigate.

@jose-bermejo
Copy link
Contributor

I'm trying to track back what's going on with this issue and I noticed that in line 64 of script.py the import of main_webapp is inside a condition. When moving it to the beginning and running nightwatch on NERSC using the desiconda environment, it complains about the lack of the 'flask' module, which seems to be needed for the spectra according to webapp.py. Could this lack of 'flask' be related to the issue?

@sybenzvi
Copy link
Contributor

Thanks for finding this @jose-bermejo. It seems we have two options:

  1. Get flask installed in the Rancher Spin service and hope that fixes the problem. @sbailey can help with this, though we should both sign up for Spin training.
  2. See if we can figure out another way to provide access to the spectra without flask. To be honest, I'm not 100% sure why it's needed here.

@dstndstn
Copy link
Author

It looks like it's generating the HTML for the spectra web pages dynamically
https://github.com/desihub/nightwatch/blob/master/py/nightwatch/webapp.py#L118
so my guess is you definitely need flask installed. Not sure how it passed any of its unit tests or basic liveness tests if flask isn't available in the spin container.

@sybenzvi
Copy link
Contributor

Fix for this is in #319. The docker image at NERSC is just obsolete. Will close the ticket when the image is updated on rancher2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants