openedx / openedx/xblock-sdk

SQLITE issue when using docker

Open
#191 3 comments 0 reactions 0 assignees View on GitHub

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

https://dpaste.com/B5E8EH76M

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.