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: Add log message for versions < 10.5.10 with broken table name resolution MDEV-25362 #1544

Closed
kalon33 opened this issue Sep 23, 2021 · 26 comments
Assignees
Labels
bug Something isn't working released Available in the stable release

Comments

@kalon33
Copy link
Sponsor

kalon33 commented Sep 23, 2021

After updating to preview from stable version, I get these errors:

photoprism    | time="2021-09-23T08:51:12Z" level=warning msg="metadata: Error 1054: Unknown column 'subjects.subj_uid' in 'on clause' (update counts)"
photoprism    | time="2021-09-23T08:51:13Z" level=error msg="metadata: Error 1054: Unknown column 'albums.album_uid' in 'on clause' (update previews)"

How could I fix them?

Thanks for your help, and your very great project.

@lastzero
Copy link
Member

Thanks for reporting this!

  • Can you check how the subjects table looks?
  • Do you use MariaDB, MySQL or SQLite?
  • How old is the schema (what version did you start with)?
  • Did you use other preview versions in between or only the stable version so far?

@lastzero lastzero self-assigned this Sep 23, 2021
@lastzero lastzero added bug Something isn't working waiting Impediment / blocked / waiting labels Sep 23, 2021
@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

I use MariaDB, the schema is from the stable version (current), and I used the stable version only so far.

@lastzero
Copy link
Member

Ok, so when I install the stable version and then upgrade, I should see the same error?

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

I hope so

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

when I installed the stable, in Docker hub it seemed stable was from 4months ago.

@lastzero
Copy link
Member

I'll try... can you test this too?

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

Test a fresh reinstall? Basically my install is from last weekend when I wanted to test photoprism stable, and migration to preview was from this morning.

@lastzero
Copy link
Member

Yes, just to be sure. Sounds like schema migrations didn't run (they should every time photoprism starts). The subjects table is new, so it's very strange the column doesn't exist at all.

@lastzero
Copy link
Member

Does it work when you enable experimental features (advanced settings or in docker-compose.yml) and then restart?

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

It was already enabled (I enabled it when on stable), and at start I only have this in the logs:

$ docker-compose up
Starting photoprism ... 
Starting photoprism ... done
Attaching to photoprism
photoprism    | running as uid 0
photoprism    | photoprism start
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="http: enabling gzip compression"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="webdav: /originals/ enabled, waiting for requests"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="webdav: /import/ enabled, waiting for requests"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="http: starting web server at 0.0.0.0:2342"

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

I still have the error when importing after a restart:

$ docker-compose up
Starting photoprism ... 
Starting photoprism ... done
Attaching to photoprism
photoprism    | running as uid 0
photoprism    | photoprism start
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="http: enabling gzip compression"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="webdav: /originals/ enabled, waiting for requests"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="webdav: /import/ enabled, waiting for requests"
photoprism    | time="2021-09-23T14:14:47Z" level=info msg="http: starting web server at 0.0.0.0:2342"
photoprism    | time="2021-09-23T14:23:41Z" level=info msg="1 fichiers chargés en 30 s"
photoprism    | time="2021-09-23T14:24:22Z" level=info msg="1 fichiers chargés en 40 s"
photoprism    | time="2021-09-23T14:25:00Z" level=info msg="1 fichiers chargés en 37 s"
photoprism    | time="2021-09-23T14:25:22Z" level=info msg="1 fichiers chargés en 22 s"
photoprism    | time="2021-09-23T14:25:56Z" level=info msg="1 fichiers chargés en 33 s"
photoprism    | time="2021-09-23T14:27:35Z" level=info msg="1 fichiers chargés en 99 s"
photoprism    | time="2021-09-23T14:28:02Z" level=info msg="1 fichiers chargés en 26 s"
photoprism    | time="2021-09-23T14:28:02Z" level=error msg="failed updating folder previews: Error 1054: Unknown column 'albums.album_path' in 'on clause'"
photoprism    | time="2021-09-23T14:28:02Z" level=info msg="Déplacement de fichiers depuis 1632406990404"
photoprism    | time="2021-09-23T14:28:02Z" level=info msg="classify: loading nasnet"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="classify: loading labels from labels.txt"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: no .ppignore file found"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: added folder /upload/1632406990404"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190519.jpg was taken at 2020-08-23 17:05:20 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190519.jpg is identical to 2020/08/20200823_170520_2EC4A4C7.jpg (sha1 f5bc4ab4cd00900fa7c7030073ea546b5e79040e)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190454.jpg was taken at 2020-08-23 17:04:56 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190519.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190454.jpg is identical to 2020/08/20200823_170456_B94430ED.jpg (sha1 5142d3bf8af2001c10e8ede19f6557f515abbb94)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190454.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190522.jpg was taken at 2020-08-23 17:05:23 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190522.jpg is identical to 2020/08/20200823_170523_4E8F4500.jpg (sha1 334c51711a0a685b92d86e681c7199f1bc9dce22)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190522.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190527.jpg was taken at 2020-08-23 17:05:28 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190527.jpg is identical to 2020/08/20200823_170528_4862A8E1.jpg (sha1 d422415633205f619509f2b0bd5e9a69b5050aa9)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190527.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190530.jpg was taken at 2020-08-23 17:05:32 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190530.jpg is identical to 2020/08/20200823_170532_D2FF6C38.jpg (sha1 86e2dff85555d70ef509f11c006519bbe7b46325)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190530.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190536.jpg was taken at 2020-08-23 17:05:38 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190536.jpg is identical to 2020/08/20200823_170538_F0251DAC.jpg (sha1 8f154ced2358ac87d257804ead347dfe4548415f)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190536.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="media: IMG_20200823_190539_1.jpg was taken at 2020-08-23 17:05:41 +0000 UTC (meta)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: IMG_20200823_190539_1.jpg is identical to 2020/08/20200823_170541_8A046280.jpg (sha1 b72de1b1560eae09dc829123071ba9ea98bc9805)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted IMG_20200823_190539_1.jpg (already exists)"
photoprism    | time="2021-09-23T14:28:05Z" level=error msg="import: Error 1054: Unknown column 'subjects.subj_uid' in 'on clause' (update counts)"
photoprism    | time="2021-09-23T14:28:05Z" level=info msg="import: deleted empty folder /photoprism/import/upload/1632406990404"
photoprism    | time="2021-09-23T14:28:06Z" level=info msg="Importation terminée en 3 s"
photoprism    | time="2021-09-23T14:28:06Z" level=error msg="import: Error 1054: Unknown column 'albums.album_uid' in 'on clause' (update previews)"
photoprism    | time="2021-09-23T14:29:47Z" level=info msg="metadata: optimized 5 photos"
photoprism    | time="2021-09-23T14:29:47Z" level=warning msg="metadata: Error 1054: Unknown column 'subjects.subj_uid' in 'on clause' (update counts)"
photoprism    | time="2021-09-23T14:29:47Z" level=error msg="metadata: Error 1054: Unknown column 'albums.album_uid' in 'on clause' (update previews)"

@lastzero
Copy link
Member

I assume you're using version 10.5 of MariaDB with the same settings as shown in our docker-compose.yml example?

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

I use mysql Ver 15.1 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2, from local filesystem, with the same settings.

@lastzero
Copy link
Member

So this release? https://mariadb.com/kb/en/mariadb-10148-release-notes/

We haven't tested it as it's not a supported version anymore: https://endoflife.date/mariadb

I'll try to figure out what the issue with this version is then...

@lastzero
Copy link
Member

From my understanding, the following features might be missing in 10.1 for our thumbnail update query to work:

https://mariadb.com/kb/en/mariadb-1032-release-notes/#notable-changes

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

ok, will try to update my system mariadb to 10.5, migrating my other services.

@kvalev
Copy link
Contributor

kvalev commented Sep 23, 2021

I have been having the same issues with 10.5, so it's probably unrelated.

@kalon33
Copy link
Sponsor Author

kalon33 commented Sep 23, 2021

ok thanks for the feedback :)

lastzero added a commit that referenced this issue Sep 23, 2021
@lastzero
Copy link
Member

PhtoPrism will now show more helpful error messages in case somebody is using a deprecated database server. I've also added docker-compose config files for older versions of PhtoPrism, MariaDB, and MySQL for testing.

@lastzero lastzero added invalid Works as documented or cannot be reproduced and removed waiting Impediment / blocked / waiting labels Sep 23, 2021
@lastzero lastzero changed the title Database errors after updating to preview MariaDB 10.1 is not compatible with PhotoPrism Sep 23, 2021
@lastzero
Copy link
Member

lastzero commented Sep 23, 2021

I have been having the same issues with 10.5, so it's probably unrelated.

We're using 10.5 for development and never saw this. I've just tested all versions down to 10.1 and it only happend with 10.1, even 10.2 was working. How can we reproduce the issue?

@rickysarraf
Copy link
Contributor

rickysarraf commented Sep 24, 2021

I've been seeing this on the development/preview branch too.

Starting photoprism_mariadb_1      ... done                                                                                                                                                                                                                                                          
Recreating photoprism_photoprism_1 ... done                                                                                                                                                                                                                                                          
Attaching to photoprism_mariadb_1, photoprism_photoprism_1                                                                                                                                                                                                                                           
photoprism_1  | running as uid 1000                                                                                                                                                                                                                                                                  
photoprism_1  | photoprism start                                                                                                                                                                                                                                                                     
mariadb_1     | 2021-09-24 08:13:05+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started.                                                                                                                                                                      
mariadb_1     | 2021-09-24 08:13:05+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'                                                                                                                                                                                                   
mariadb_1     | 2021-09-24 08:13:05+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started.                                                                                                                                                                      
mariadb_1     | 2021-09-24  8:13:06 0 [Note] mysqld (mysqld 10.5.9-MariaDB-1:10.5.9+maria~focal) starting as process 1 ...                                                                                                                                                                           
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Uses event mutexes                                                                                                                                                                                                                              
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Compressed tables use zlib 1.2.11                                                                                                                                                                                                               
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Number of pools: 1                                                                                                                                                                                                                              
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions                                            
mariadb_1     | 2021-09-24  8:13:06 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)                                                                                                                                                                                  
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Using Linux native AIO                                                          
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728                                                                                                                                                                        
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Completed initialization of buffer pool                                                                                                                                                                                                         
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().                                   
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: The log sequence number 58071535 in the system tablespace does not match the log sequence number 380978571 in the ib_logfile0!                        
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: 128 rollback segments are active.                                                                                                                                                                                                               
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"                                                                                                                                                                                                
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Creating shared tablespace for temporary tables                                                                                                                                                                                                 
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...                                                                                                                                                        
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.                                                                                                                                                                                                              
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: 10.5.9 started; log sequence number 380978571; transaction id 1131261                                                                                                                                                                           
mariadb_1     | 2021-09-24  8:13:06 0 [Note] Plugin 'FEEDBACK' is disabled.                                                                                                                                                                                                                          
mariadb_1     | 2021-09-24  8:13:06 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool                                                                                                                                                                                       
mariadb_1     | 2021-09-24  8:13:07 0 [Note] Server socket created on IP: '::'.                                                                                                                                                                                                                      
mariadb_1     | 2021-09-24  8:13:08 0 [Warning] 'proxies_priv' entry '@% root@679898ef027e' ignored in --skip-name-resolve mode.                                                                                                                                                                     
mariadb_1     | 2021-09-24  8:13:09 0 [Note] Reading of all Master_info entries succeeded                                                                                                                                                                                                            
mariadb_1     | 2021-09-24  8:13:09 0 [Note] Added new Master_info '' to hash table                                                                                                                                                                                                                  
mariadb_1     | 2021-09-24  8:13:09 0 [Note] mysqld: ready for connections.                                                                                                                                                                                                                          
mariadb_1     | Version: '10.5.9-MariaDB-1:10.5.9+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution                                                                                                                                                       
mariadb_1     | 2021-09-24  8:13:10 0 [Note] InnoDB: Buffer pool(s) load completed at 210924  8:13:10                                                                                                                                                                                                
photoprism_1  | time="2021-09-24T08:13:11Z" level=info msg="http: enabling gzip compression"
photoprism_1  | time="2021-09-24T08:13:11Z" level=info msg="webdav: server disabled"
photoprism_1  | time="2021-09-24T08:13:11Z" level=info msg="http: starting web server at 0.0.0.0:2342"
                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                     
photoprism_1  | time="2021-09-24T08:14:05Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 order:newest merged:true [98.226347ms]"
photoprism_1  | time="2021-09-24T08:14:06Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 offset:60 order:newest merged:true [187.547896ms]"
photoprism_1  | time="2021-09-24T08:14:06Z" level=info msg="photos: found 360 results for public:true dist:20 year:0 month:0 quality:3 count:360 order:newest merged:true [263.790865ms]"
photoprism_1  | time="2021-09-24T08:14:49Z" level=info msg="photos: found 0 results for public:true dist:20 year:0 month:0 quality:3 review:true count:60 order:newest merged:true [43.333308ms]"        
photoprism_1  | time="2021-09-24T08:15:01Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 face:new count:60 order:newest merged:true [1.441700521s]"                             
photoprism_1  | time="2021-09-24T08:15:02Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 face:new count:60 offset:60 order:newest merged:true [148.242905ms]"           
photoprism_1  | time="2021-09-24T08:15:02Z" level=info msg="photos: found 360 results for public:true dist:20 year:0 month:0 face:new count:360 order:newest merged:true [200.679981ms]"
photoprism_1  | time="2021-09-24T08:15:24Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 order:newest merged:true [96.516179ms]"
photoprism_1  | time="2021-09-24T08:15:24Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 offset:60 order:newest merged:true [113.837813ms]"
photoprism_1  | time="2021-09-24T08:15:24Z" level=info msg="photos: found 360 results for public:true dist:20 year:0 month:0 quality:3 count:360 order:newest merged:true [161.780074ms]"
photoprism_1  | time="2021-09-24T08:15:27Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 offset:120 order:newest merged:true [95.810294ms]"
photoprism_1  | time="2021-09-24T08:16:04Z" level=error msg="faces: Error 1054: Unknown column 'subjects.subj_uid' in 'on clause' (update counts)" 
photoprism_1  | time="2021-09-24T08:16:04Z" level=info msg="photos: found 1 results for id:pqzvi1r1zqo45sn0 merged:true [1.472543ms]"
photoprism_1  | time="2021-09-24T08:16:04Z" level=info msg="Changes successfully saved"
photoprism_1  | time="2021-09-24T08:16:13Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 offset:180 order:newest merged:true [97.575109ms]"
photoprism_1  | time="2021-09-24T08:16:15Z" level=info msg="photos: found 60 results for public:true dist:20 year:0 month:0 quality:3 count:60 offset:240 order:newest merged:true [99.538791ms]"
photoprism_1  | time="2021-09-24T08:16:22Z" level=info msg="photos: found 2 results for id:pqzvsyohayvozn51 merged:true [1.712151ms]"

@rickysarraf
Copy link
Contributor

Now with the latest changes, I get the misleading error message:

photoprism_1  | time="2021-09-24T10:58:22Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:22Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:22Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:22Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:23Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:23Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:24Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:25Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:25Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:25Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:25Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:26Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:26Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:26Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:27Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:27Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:27Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:27Z" level=info msg="metadata: merged pqzw3nb3mduthzg2"
photoprism_1  | time="2021-09-24T10:58:27Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:28Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:28Z" level=info msg="metadata: merged pqzw3o5zz3kwq68g"
photoprism_1  | time="2021-09-24T10:58:28Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:29Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:29Z" level=info msg="metadata: merged pqzw3ouynu2npf97"
photoprism_1  | time="2021-09-24T10:58:29Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:29Z" level=info msg="metadata: merged pqzw3pm2k3htbd01"
photoprism_1  | time="2021-09-24T10:58:29Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:29Z" level=info msg="metadata: merged pqzw3q0357728nfh"
photoprism_1  | time="2021-09-24T10:58:29Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:29Z" level=info msg="metadata: merged pqzw3relk3d7k83b"
photoprism_1  | time="2021-09-24T10:58:30Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:30Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"
photoprism_1  | time="2021-09-24T10:58:30Z" level=error msg="counts: failed updating subjects, deprecated or unsupported database"

@lastzero
Copy link
Member

See community chat. Seems the issues are gone when upgrading from 10.5.x to 10.5.12, so may be a MariaDB bug as MySQL is working great. I started reading the bug list to figure out details, but it's too long.

@lastzero
Copy link
Member

Screenshot_20210924_154150

@lastzero
Copy link
Member

Looks like this is an official MariaDB bug:
https://jira.mariadb.org/browse/MDEV-25362

@lastzero
Copy link
Member

The error message is now:

counts: failed updating subjects, incompatible database version

Acceptable?

@lastzero lastzero changed the title MariaDB 10.1 is not compatible with PhotoPrism MariaDB: Incorrect name resolution for subqueries in ON expressions MDEV-25362 Sep 24, 2021
@lastzero lastzero added please-test Ready for acceptance test and removed invalid Works as documented or cannot be reproduced labels Sep 24, 2021
@lastzero lastzero changed the title MariaDB: Incorrect name resolution for subqueries in ON expressions MDEV-25362 MariaDB: Add log message for versions < 10.5.10 with broken table name resolution MDEV-25362 Sep 25, 2021
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels Sep 26, 2021
lastzero added a commit that referenced this issue Oct 1, 2021
Also fixes issues with older versions of MariaDB, see #1544
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

5 participants