-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite not working #227
Comments
CC @haplo |
Sorry I'm late. @Blechlawine Shynet with SQLite is working in my personal instance, so there must be something wrong with your configuration. I suggest you check the permissions and owner of not just the DB file but the directories containing it. When I was getting it to work I discovered that the parent directory had to be writable, otherwise SQLite would fail even if the file itself was writable. |
The weird thing is that it's also not working if I don't mount the directory, then permissions should just be the default as in the docker image. Also, the parent directory is also writable by the user the container is running as, since its writable by everyone. |
One question @haplo: what os are you running? |
My Shynet instance is running on Debian 11 using podman. |
Ok, so I tried running it on windows 10, with docker desktop for windows, with the engine running in wsl. I don't know if that is the problem, but in the wsl terminal the permissions looked correct, but I couldn't change them, and in windows cmd they were wrong and I couldn't change them. I dual booted into linux/ubuntu and while windows and wsl said my user owned the folder, linux dual booted said it belonged to root. And again, I can't change it... Which has apparently something to do with how the drive is mounted. |
Hey, I had the same issue here, I think it's because you pull from I built the project from the Dockerfile and it worked. The |
That's a good idea, I haven't tried that yet. I'll see if it works for me. Thanks! |
Update: I tried the edge tag and got it running, but creating an admin user (command: Then I tried building the docker image from source. I couldn't find anything in the guide so I just winged it with
|
It is possible to run the container from source, I don't know how you do run yours but for me the following is working just fine: |
FYI: The fix has been merged |
Its working with edge docker image for me now 👍 |
Good! |
In which image version is the fix? I just tried to use your project and got also "django.db.utils.OperationalError: could not connect to server: No such file or directory" with the :latest tag. |
Try :edge tag. |
I tried setting up a local instance of shynet, to test it, but the setup with SQLite did not work. I uncommented the sqlite settings in the .env template file and commented the postgres settings. I tried the command mentioned in the setup guide (
docker run --env-file=.env milesmcc/shynet
), which threw an error:It threw the same error without mounting the folder with the database file into the container, and it also failed with mounting the database file directly (
./database/db.sqlite3:/var/local/shynet/db/db.sqlite3:rw
)This docker-compose, which should do the same if I'm not mistaken, did also fail with the same error
I have no idea where the problem could be, because I don't know how django handles databases.
The text was updated successfully, but these errors were encountered: