SQLITE issue when using docker
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 70
- Forks
- 104
- Avg merge
- 17h 46m
- Merged PRs (30d)
- 14
Description
Hi Guys,
I followed the example to set up the docker image and when the image starts I get this error in the browser when I open up localhost:8000.
It seems, that it cannot find a table in the SQLite file. Any Idea, how I can fix it?
Request Method: | GET
-- | --
http://localhost:8000/
2.2.14
OperationalError
no such table: workbench_xblockstate
/usr/local/lib/python3.5/dist-packages/django/db/backends/sqlite3/base.py in execute, line 383
/usr/bin/python3
3.5.2
['/usr/local/src/xblock-sdk', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/local/src/xblock-sdk/src/acid-xblock', '/usr/local/src/xblock-sdk', '/usr/lib/python3/dist-packages']
Tue, 15 Sep 2020 05:13:07 -0400
here is the link to the share issue site
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Docker image startup and opening localhost:8000, then inspect how the SQLite database is initialized before the workbench request runs. Trace the missing workbench_xblockstate table and verify that the image startup completes the required database setup; done means the root page loads without this OperationalError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, docker, python, sqlite
- Domain
- backend, database, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100