Hello,
I’m currently in the process of installing MedCATTrainer v2.12.3 via Dockerhub. While running docker-compose up
, I encountered an sqlite3.OperationalError
. The issue seems to be related to the RESUBMIT_ALL_ON_STARTUP
environment variable, which is set to 1
by default in the env file. The problem appears to be resolved when I set this variable to 0
. However, as a relative newcomer to Docker, I’m unsure if this is a safe change. Should I keep it as 0
and look into modifying it later, or are there alternative solutions to address this issue?
log message for reference:
medcattrainer | INFO 2023-11-07 12:06:32,072 apps.py l:17:Found env var RESUBMIT_ALL_ON_STARTUP is True. Attempting to resubmit all currently submitted state documents
medcattrainer | Traceback (most recent call last):
medcattrainer | File “/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py”, line 84, in _execute
medcattrainer | return self.cursor.execute(sql, params)
medcattrainer | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
medcattrainer | File “/usr/local/lib/python3.11/site-packages/django/db/backends/sqlite3/base.py”, line 383, in execute
medcattrainer | return Database.Cursor.execute(self, query, params)
medcattrainer | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
medcattrainer | sqlite3.OperationalError: no such table: api_projectannotateentities
Thanks for the assistance