NotGitRepository at /course/applicant-quiz1/ - after delete of local cache #918
Replies: 3 comments 8 replies
-
I agree that such a thing could be implemented. That said, I have tended towards viewing the course repos in Relate as "authoritative" information, rather than "cached" information, and future changes that I have planned are headed further into that direction, such as with a built-in dev environment that allows you to make changes (i.e. commit to the repo) from within the web UI. So, operationally, I would recommend backing up those repos (and not viewing them as caches). |
Beta Was this translation helpful? Give feedback.
-
@inducer re. the operational part - it should detech such discrepancies (out of sync with master git repo or master git repo gone) and display alert to teachers, staff, admins IMHO. Or atleast that should be an option to do so, so one notices and is enticed to fix it before its too late. Its also an unnecessary operational problem, that if the local copy of these repos are gone - even though upstream git repos works just fine - and it could just pull data from there - it doesn't even try, or offer an opportunity to do so, forcing one to delete all course data (in pg too) and recreating course :( |
Beta Was this translation helpful? Give feedback.
-
@inducer I totally understand that - and if I were you I would be happy to have relate tell the operator (you) that a specific course no longer is consistent "on the git end" - so you can do something about it - ensuring you have the code (and history of it) you need - which is also what documents copyright etc. - and if relate helps you ensure all courses HAVE a working "git repo" - AND you ensure pgsql db backup - you're well set. You really should prefer that as well. In automatic scaling land (k8s :) - you would preferrably NOT split the same filesystem amongst all webservers - as that would be a common bottleneck - which means your current view is bad for scaling - and it would be much better if the system could just scale up - and then automaticly (or by way of run-script commands) ensure a new set of webservers work - when scaleup is suddenly needed (around exam time f.ex. :) |
Beta Was this translation helpful? Give feedback.
-
if I delete local cache (because I am running on k8s and pod restarts) - relate does not DL course again - it just fails with:
"NotGitRepository at /course/applicant-quiz1/"
is there a command to "re-download" cached courses - I could run at pod startup to fix this? instead of having to use persistent storage to keep cache forever (which would also mean it was necessary to have a backup of a cache (highly unusual and should really be unnecessary) - for otherwise things won't work, unless I delete all courses and recreate them - possibly loosing previous exam results?)
Beta Was this translation helpful? Give feedback.
All reactions