



Resolution: Change the maxconnection variable in the SQL.properties file located in the InTime Server installation directory. Before running the migration script, click the movie/tv shows/music tabs to generate these tables. : SQLITEBUSY The database file is locked (database is locked) is reported in the InTime Server log, intimeserver-yyyy-mm-dd.log. I could check this out by using the Opendfileview program. Although I get only one connection in my program I close all query results, but it always creates 2 or 3 handles of the database file. Apparently clicking the tabs generate the initial table. Im using sqlite3 database in golang and I got the error: 'database is locked.' I know there cant be multiple threads using same database file.
Sqlite database is locked movie#
The inserts stopped failing once I clicked on the Movie tab and then Tv shows tab on the Ombi GUi. Special note: I noticed the migration failing on inserting to the MySQL database. We will enable this by default in Digi Embedded Linux.
Sqlite database is locked install#
Once you create the Ombi user within the MySQL docker, ensure you can ping the MySQL docker from Ombi, and create the two json files, its just a matter of running the migration script within the Ombi docker (you may need to install the python libraries prior to running) after you restart the Ombi docker (the restart will create the Ombi database and base tables). The kernel must be configured with CONFIGFILELOCKING enabled. Server=MySQLserver1 Port=3306 Database=Ombi User=ombi Password=ombipw", "Type": "MySQL" With that knowledge, that means my connection string for the database.json file becomes something like : Likewise, from the MySQLserver1 container, I can ping Ombi and get a reply. Again, unsure of your knowledge level here but what that means is form within the Ombi docker, I can ping MySQLserver1 and get a reply. In my setup MySQL shares the same network as Ombi so the ip address automatically resolves within the docker container. Note: the paths for the SQLite DB locations is the path within the Ombi docker itself as you will be running the script within the Ombi docker. Follow the guide in your link - the first command creates the database.json schema (provides Ombi the MySQL information), the 2nd creates the migration.json (tells the migration script the location of your SQLite databases), and the 3rd actually runs the migration. It's here you will want to create the database.json file.
Sqlite database is locked code#
The code is the exact same that I used previously for updating a PIN. Ive set breakpoints and the query itself is fine. Not sure if you're using docker-compose files or not but regardless, your SQLite dbs are located wherever you specified your volume location when you spin up your docker. Ive checked to make sure the db connection is closed elsewhere before its opened during this method, its definitely closed before the function is called and opened before any queries. I mention this because I don't know what experience you have dealing with dockers. Within the MySQL docker I created user for Ombi and since the docker volumes are mapped to a location on my system outside of the docker, the user change persists even after a docker restart. So yes, MySQL is running in a separate docker than Ombi. I already have two mysql dockers running, one dedicated to Nextcloud, and one that is under utilized for my setup so a 3rd seemed overkill for just Ombi.
