Closed yllekz closed 3 years ago
Does it happen each time you restart the container. It's ok if it fails the first time as the manual migrations should fix it afterwards.
Yeah I've done full restarts of each container, one by one, both, and the entire host. It never recovers from this state, infinitely looping.
Okay.
Truncated incorrect INTEGER value: ''
It looks like it has problems converting an empty string ''
to an integer.
Maybe the migration tool should take that into account and make them NULL instead.
Can you try to run UPDATE media_exif SET flash=NULL WHERE flash="";
on your database?
If you are using the default docker-compose.yml
file, you should be able to get a mysql shell by running the following command.
$ docker-compose exec db mysql -uphotoview -pphotosecret
Sure, I'll see if I can do that. I'm not sure if I'm using the default docker-compose.yml file though. I was able to use Portainer to break into a console for mariaDB but weirdly enough the only database it will show me is information_schema. (EDIT: fixed, see below)
Your fix worked @viktorstrate !
Doing this via Portainer meant I had to change up the process a bit, but it was still fixable.
Here's what I had to do to get to the mySQL prompt and run your command (which fixed the photoview container errors):
Portainer->Console->bin/ash (or bin/sh)->Connect
Specify user "mysql" then checking "use custom command" and entering this into the "command" box:
mysql -u mysql
From there, running this was successful:
USE photoview;
UPDATE media_exif SET flash=NULL WHERE flash="";
So it seems my flash
column also didn't migrate to integer
type. I imagine it was due as @yllekz showed to some flash values at ''
. :)
Describe the bug Photoview will not start after updating. The container is complaining that the database migration failed. It seems the actual database container is fine but photoview itself is throwing a fit. It was fine until a recent update. I do know it successfully migrated to the 2.0 version so this seems to be a smaller update that somehow broke the database
To Reproduce Steps to reproduce the behavior:
Expected behavior Container should launch
Logs
Your environment: Raspberry Pi 4B, "Latest" tag
Additional context Add any other context about the problem here.