Open rpavlik opened 1 month ago
Looks like there's a wrong env set for the rootless image. Add the following ENV to your docker-compose and it should resolve the issue. I'll get this fixed in the next release.
HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=journal_mode=WAL&_fk=1
That seems to have helped, thanks! (I still got a "failed to create location" error but I think that is unrelated...)
First Check
Homebox Version
0.10.3
What is the issue you are experiencing?
When importing a CSV file with about 40-50 items, the whole file gets parsed, but the actual import is often terminated prematurely by a "database is locked (5) (SQLITE_BUSY)" error. If every line has an import_ref it's OK to try to import repeatedly, and eventually you'll get most if not all of it imported.
How can the maintainer reproduce the issue?
Generate an inventory CSV with about 40-50 items. (Sorry I cannot share mine, it's actually based on an export of my work snipe-it.) Import while looking at the logs. On the browser you'll get an "import failed" as well as "import success" message, while in the logs you'll see some number of SQLITE_BUSY errors.
Deployment
Docker (Linux)
Deployment Details
Rootless container, directory for the /data volume. Using basically the suggested docker-compose file.