-
Notifications
You must be signed in to change notification settings - Fork 80
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
Docker latest version migration issue #34
Comments
Is this a new instance or are you updating an existing one? I created a new one, restarted it 10 times and can't reproduce it. |
This is a new installation on my server running the below command. user@hostname: sudo docker run -p 5000:5000 -v snippet_box:/app/data pawelmalak/snippet-box:latest |
Can you open your database file with DB Browser for SQLite and show me content of |
container never successfully starts, only logs are above in the container, never fully starts. |
Ok. Can you add |
I was just able to reproduce this error on my side. Can you try to mount container data to host directory with path, instead of named volume? |
|
`user@hostname:~$ sudo docker run -p 5000:5000 -v /home/docker/snippet_box:/app/data pawelmalak/snippet-box:latest ` |
Works without a named volume and if it matters i created the volume from command line with this |
I created one with Docker Desktop on Windows and it gave me the same error but when I provided normal path it worked. That would also explain why I wasn't able to reproduce it earlier. Also if you want to format block of code in Markdown you can use ``` instead of a single one `. @kristijanPetr Did you originally try to run container with a named volume? |
so far still running nice and clean, love the interface. |
Will there be a fix to let the container run with named volumes? |
I'm still trying to figure out why is it happening only with named volumes and how to fix it. |
After spending the last ~3 hours googling, I decided to run a couple of experiments:
1 worked as expected, and 2 failed with the above error, as did 3. The interesting one is 4: it ALSO had the same error. 5 did NOT have the error. I believe this is because volumes are managed by Docker and thus there's a permissions error somewhere when running the migrations. This is supported by scenario 4: the bind mount doesn't have perms on the local FS, and yields the same error. I'm not sure why this is the case, however. There's also interesting behavior if there's a bind mount on a folder owned by One (ugly) alternative in 5 is to create the db with a bind mount, then edit the compose file/ Unfortunately, I can't find anyone else with this error: the only StackOverflow post on the topic is the owner of the repo themselves, it seems, and doesn't have an answer. :/ |
when running the migrations throws an error, probably because
isPinned
column is already defined in Snippet model.this is happening when pulling latest image:
pawelmalak/snippet-box:latest
The text was updated successfully, but these errors were encountered: