Check that Kolibri does not fail to start when deleting the home folder contents
See original GitHub issueObserved behavior
During the testing of Kolibri mac installer I found this issue when deleting the home folder contents will cause an error and kolibri can’t start the server. here’s the issue I reported on mac installer repo
@kollivier has a comment about this issue here https://github.com/learningequality/kolibri-installer-mac/issues/51#issuecomment-582021971:
It turns out that the issue is that when you delete the contents of
~/.kolibri
from Finder, it leaves the hidden.data_version
file, and Kolibri uses that file to determine when it needs to run migrations
Expected behavior
If Kolibri finds a .data_version
file but no database, perhaps it should clear the file?
User-facing consequences
In some situations, user might think they have reset Kolibri but get into a stuck state. I believe if they delete the entire .kolibri
folder this would not happen.
Errors and logs
Steps to reproduce
Delete all non-hidden files from ~/.kolibri
Context
Tell us about your environment, including:
- Kolibri version: 0.13
- Operating system: macOS 10.14.6
- Browser
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top GitHub Comments
It’s a user story to confirm that this bug still exists or not (Richard seems to have gone through the story himself and found the bug doesn’t exist anymore).
We can just add it to the list of Gherkins, esp. with the proper variations for Windows.
Have just posted in #7952 - I was unable to replicate that issue either.