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

Opening a model solution fails if the course has not been loaded to the cache yet #18

Open
markkuriekkinen opened this issue Jul 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@markkuriekkinen
Copy link
Contributor

If a course is not yet loaded in the gitmanager cache, then when a user opens a model solution in the A+ front, loading the model solution to A+ fails. Does gitmanager crash or just time out when loading the course takes several seconds?

This occurred at least in the O1 course after the server upgrade (v1.15 June 2022).

@markkuriekkinen markkuriekkinen added the bug Something isn't working label Jul 4, 2022
@lainets
Copy link
Contributor

lainets commented Jul 4, 2022

This is due to the request timing out as the loading of a config takes around 9 seconds on O1. I believe NGINX is what times out the request but it may also be A+. The only 'real' solution would be to load the configs on start up. The time out could also be increased in NGINX/A+ but that only works as long as the config loading time doesn't increase (e.g. due to a larger course).

This is also quite a rare situation as it only happens if the cache is cleared (i.e. restarted) and the config hasn't been loaded yet (i,e, the course hasn't been accessed in any way).

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

2 participants