Skip to content
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

MariaDB Change in Latest Update #2382

Closed
simoncoul opened this issue May 30, 2022 · 8 comments
Closed

MariaDB Change in Latest Update #2382

simoncoul opened this issue May 30, 2022 · 8 comments

Comments

@simoncoul
Copy link

Hello,

My unraid system was showing a lot of instability due to my docker image filling up. I tracked it down to the MariaDB log file that was increasing at ~1GB a day. It keeps giving these two errors repeatedly:

2022-05-30 11:40:36 320 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').

2022-05-30 11:40:36 320 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).

I am wondering if there was a change to photoprism or if something was changed on the offical MariaDB docker image.

Thanks
Sikmon

@gyto6
Copy link
Contributor

gyto6 commented May 30, 2022

You're not alone. As an Unraid user too, my MariaDB docker display the same message.

But once I stop my NextCloud docker, the logs stops.

Check this command in MariaSQL to get rid of it.

mysql_upgrade --user=root --password=<root_pwd>

@lastzero
Copy link
Member

Does your docker-compose.yml include these environment variables for the mariadb service as shown in our example on dl.photoprism.app?

environment:
      MARIADB_AUTO_UPGRADE: "1"
      MARIADB_INITDB_SKIP_TZINFO: "1"

@gyto6
Copy link
Contributor

gyto6 commented May 31, 2022

Does your docker-compose.yml include these environment variables for the mariadb service as shown in our example on dl.photoprism.app?

environment:
      MARIADB_AUTO_UPGRADE: "1"
      MARIADB_INITDB_SKIP_TZINFO: "1"

It doesn't concerning to me...

I'm setting them by now.

@simoncoul
Copy link
Author

simoncoul commented May 31, 2022

The container template did not have those variables. I manually added both, restarted Maria and Photoprism however it is still throwing the same error in Maria.

@gyto6
Copy link
Contributor

gyto6 commented May 31, 2022

The container template did not have those variables. I manually added both, restarted Maria and Photoprism however it is still throwing the same error in Maria.

I've attached the template, perhaps there is something else missing? unraid_container_template.pdf

The variables must be added to MariaDB container, not Photoprism.

@lastzero
Copy link
Member

The MariaDB troubleshooting guide in our docs has been updated to include more detailed instructions:

@simoncoul
Copy link
Author

@gyto6 Thank you. Adding the variables to the MariaDB container fixed the issue.

@lastzero Thank you for updating the documentation.

lastzero added a commit to photoprism/photoprism-docs that referenced this issue Jun 1, 2022
photoprism/photoprism#2382
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero
Copy link
Member

lastzero commented Jun 1, 2022

We found a few more places in our docs that needed updating... let us know if anything is still unclear or missing! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants