-
Notifications
You must be signed in to change notification settings - Fork 52
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
[BUG] - Internal server error (conda store server) when system metrics are not available #1028
Labels
Comments
soapy1
added
good first issue
Good for newcomers
type: bug 🐛
Something isn't working
labels
Dec 19, 2024
Hey @soapy1 can i be assigned to this? I would like to contribute. |
Sounds great, it's all yours! Feel free to update the assignee section of the issue. Let me know if you need any clarifications about the bug/how to reproduce it. |
imprvhub
added a commit
to imprvhub/conda-store
that referenced
this issue
Dec 19, 2024
- Add default values for system metrics when None - Add conditional system metrics display in template - Show informative message when metrics unavailable Closes conda-incubator#1028
@soapy1 this fix worked for me. If there's anything else you'd like me to review or adjust, please let me know. 👍 |
imprvhub
added a commit
to imprvhub/conda-store
that referenced
this issue
Dec 19, 2024
- Return raw system_metrics from API without default values - Update user.html template to check for None metrics - Display info message when metrics not available Closes conda-incubator#1028
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
On a fresh instance of conda-store server (eg. with no worker having been setup), navigating to the admin console at
<conda-store url>/admin/user/
results in a 500 Internal server error.The error log from the conda-store server instance
This error shows that the error comes from getting the system metrics. When conda-store does not find what it expects to exist in the database it errors out.
This is because the
conda_store_configuration
table gets populated initially by the conda-store worker. So, on a fresh install, if no worker has been started, this table will not be populated.Expected behavior
Conda store server should render the page
<conda-store url>/admin/user/
without the missing system metrics.How to Reproduce the problem?
To reproduce the problem using docker-compose you need a fresh install of conda-store.
0. reset the db if you have an existing docker compose setup
If you previously were using docker-compose to work on conda-store be sure to clear the db
1. bring up the conda-store services
now start the conda-store services, except for the conda-store-worker
2. log in as the admin user
navigate to http://localhost:8080/conda-store/login/?next=http://localhost:8080/conda-store/ui/
log in as the admin user with the credentials
admin
/password
3. navigate to the admin panel
go to the url http://localhost:8080/conda-store/admin/user/ and notice the internal server error.
The text was updated successfully, but these errors were encountered: