-
1. What is not working as documented?Indexing fails (moments generation) with the below error messages:
2. How can we reproduce it?Steps to reproduce the behavior:
I've got about 55 000 photos indexed. 90% are JPEGs. I changed thumbnail quality to 70% 3. What behavior do you expect?No error message 4. What could be the cause of your problem?Perhaps directory names may be causing this. I use polish diactric characters in them. Altough I think in year 2024 software should not have any issues with internationalization and languages as these things are nothing special nor new. I think this is related to some background worker that is not directly part of the indexing process - e.g. facial recognition (it's the only one I'm aware of that Photoprism is running separately and periodically) as these messages appear after the indexing process finished and they appear more less every 15 minutes. 5. Can you provide us with example files for testing, error logs, or screenshots?Sure, but which ones? My photos use about 2.5TB disk space. I have not uploaded them via Photoprism. I only index originals with Photoprism. 6. Which software versions do you use?(a) PhotoPrism Architecture & Build Number: AMD64 Build 231128-f48ff16ef (b) Database Type & Version: MariaDB hosted on a separate machine (c) Operating System Types & Versions: Windows 10 + Docker Desktop using WSL2 backend based on Ubuntu (d) Browser Types & Versions: Firefox, Chrome (e) Ad Blockers, Browser Plugins, and/or Firewall Software? No blockers 7. On what kind of device is PhotoPrism installed?This is especially important if you are reporting a performance, import, or indexing issue. You can skip this if you're reporting a problem you found in our public demo, or if it's a completely unrelated issue, such as incorrect page layout. (a) Device / Processor Type: Windows 10 PC i5-4670K (b) Physical Memory & Swap Space in GB: 32 GB RAM (c) Storage Type: SSD (d) Anything else that might be helpful to know? 8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?No |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 6 replies
-
Thank you for your feedback! I just tested indexing folders with diactric characters and did not observe any errors. Do you use our default docker-compose example or a custom mariadb? If you are not using our default configuration please see: https://docs.photoprism.app/getting-started/troubleshooting/mariadb/#unicode-support |
Beta Was this translation helpful? Give feedback.
-
Hello @graciousgrey,
I can see that the Thanks in advance for your reply! |
Beta Was this translation helpful? Give feedback.
-
As @graciousgrey, we are not aware of any issues and my tests also confirm that: Key Differences:
So it is best to use utf8mb4_unicode_ci and not mix utf8mb4_unicode_ci and utf8mb4_general_ci, as this could cause issues that are not covered by our free community support. Also note that tables and columns MAY use different character sets and collations than the server and the database as a whole. Should you then still experience problems and be sure that it is an issue with our software and not with the MariaDB instance you are using, please provide us with a ZIP archive containing sample files and folders that trigger this error with your instance so that we can test it and provide a fix if necessary. Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
One more note: Windows uses UCS2 internally and not UTF8. It is also Unicode, but a different encoding. Since Linux, your database and our software only support UTF8, there is a small chance that at least some path names are not encoded correctly when using WSL2. However, figuring this out is beyond the scope of our community support and it is quite possible that the problem then needs to be fixed in e.g. WSL2 and/or the Go programming language and not in our software. If you have any other information and there is something we need to change, we will be happy to look into it. |
Beta Was this translation helpful? Give feedback.
-
Actually I think this is not WSL2 or Windows specific. Later on I moved my photoprism instance to Linux (Synology DSM) and it was reporting the same error. All these folders were created within Linux (DSM). All the originals are hosted on this linux as well. My photoprism inctsnce in DSM accesses them via local DSM volume, whereas my previous Windows instance accessed them via CIFS network share form this DSM server. I changed the settings of my MariaDB server and the database to the recommended ones (unicode_ci) . Let's see if this helps. Thank you for your support. |
Beta Was this translation helpful? Give feedback.
-
It didn't solve it :( Still the same error - reported by by linux/DSM instace:
MariaDB variables:
Can you help me to understand what this means? I restarted photprism docker after applying these changes to the db. |
Beta Was this translation helpful? Give feedback.
-
Did you also check the character set used for the specific table and column as that may be different, especially if you've changed the defaults at a later time? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Allright thanks! I will try to use your docker-compose file to get it up and running and let's see how it goes. I will just modify the port for mariadb to avoid a conflict with my existing MariaDB. |
Beta Was this translation helpful? Give feedback.
-
Update for the ones seeking a solution to this in the future:
And that solved it for me! From that moment onwards Photoprism is able to scan all my folders and no more errors related to invalid file and folder names. All fine with Photoprism code! I stayed with Photoprism for my daily usage, altough discovered immich, but despite it does the indexing twice as fast with superior AI recognition accuracy and looks more modern - it's not as stable as Photoprism is and it's built on top of too modern architecture that requires the newest software to run correctly, so it doesn't run correctly on my TV for example. Photoprism is a stable and mature product and runs well everywhere. It doesn't try to be the next Google Photos and I find it a good solution for browsing my family library. If you guys manage to improve the AI recognition to match immich or other self-hosted solutions - it will be the perfect solution then! Keep up the good work! |
Beta Was this translation helpful? Give feedback.
Update for the ones seeking a solution to this in the future:
I used the official docker-compose, set it up and all worked fine. Then I though this maybe related to some old Maria version I had (10.3) although doubted as this is a mature product. I upgraded my db to the newest one - same image as the official docker-compose. That unfortunately also didn't solve it. And then I inspected files from the container point of view. I used both DD and terminal connected to the container. And I observed the same weird, invalid file names. Started googling and found that this happens for CIFS volumes unless you specify the encoding explicitly in the CIFS driver settings using this:
iocharset=utf8
.…