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

empty topic tree when DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True #4109

Closed
66eli77 opened this issue Jul 16, 2015 · 8 comments
Closed

empty topic tree when DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True #4109

66eli77 opened this issue Jul 16, 2015 · 8 comments
Assignees
Milestone

Comments

@66eli77
Copy link
Contributor

66eli77 commented Jul 16, 2015

steps to reproduce:

  1. delete the topics.json_en.cache file in your data/khan folder
  2. set DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True in local_settings.py or your way of assigning tags
  3. start kalite server
  4. go to learn page and you will see an empty sidebar
@radinamatic
Copy link
Member

Since @66eli77 labeled this with bug bash I'm guessing he was experiencing it on 0.14. Just to confirm it's happening on develop too.

@benjaoming
Copy link
Contributor

I'm seeing the same in alpha9.

@benjaoming
Copy link
Contributor

Problem is this:

WARNING:kalite:Annotated exercise cache file failed in saving with error [Errno 13] Permission denied: '/usr/share/kalite/data/khan/exercises.json_en.cache'
INFO:kalite:Preloading content data for language en.
WARNING:kalite:Annotated content cache file failed in saving with error [Errno 13] Permission denied: '/usr/share/kalite/data/khan/contents.json_en.cache'
INFO:kalite:Preloading topic tree data for language en.
WARNING:kalite:Annotated topic cache file failed in saving with error [Errno 13] Permission denied: '/usr/share/kalite/data/khan/topics.json_en.cache'

These files cannot be in that location, they have to be treated as user data.

@benjaoming
Copy link
Contributor

Okay I'm going to work on the issue about saving cache files in a system-location.

@rtibbles if there are other causes of this bug, feel free to work on them concurrently, otherwise I'll let you know if this resolves the issue...

@benjaoming benjaoming assigned benjaoming and unassigned rtibbles Jul 20, 2015
benjaoming added a commit to benjaoming/ka-lite that referenced this issue Jul 20, 2015
benjaoming added a commit to benjaoming/ka-lite that referenced this issue Jul 20, 2015
benjaoming added a commit to benjaoming/ka-lite that referenced this issue Jul 20, 2015
@benjaoming
Copy link
Contributor

Issue is resolved in the PR, I made a bunch of commit amendments, hence the odd list of commits above.

This was referenced Jul 20, 2015
MCGallaspy added a commit that referenced this issue Jul 22, 2015
@MCGallaspy
Copy link
Contributor

@66eli77 can you try to reproduce this now that #4122 has been merged into develop I mean 0.14.x?

@66eli77
Copy link
Contributor Author

66eli77 commented Jul 24, 2015

@MCGallaspy I git pull from 0.14.x, then make sure there is no topics.json_en.cache in my data/khan folder, then set DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True in local_settings.py and start the server with ./bin/kalite start, when open the learn page, the sidebar is populated.

@benjaoming
Copy link
Contributor

@66eli77 FYI the cache files have been moved, that was part of the fix: They now live in ~/.kalite/cache

@benjaoming benjaoming removed the has PR label Jul 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants