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

Docker container missing locale and perl is throwing log errors in the container logs #541

Open
vloschiavo opened this issue Nov 15, 2024 · 1 comment

Comments

@vloschiavo
Copy link

I'm currently testing the latest docker container webreaper/damselfly and am in the first stages of generating thumbnails and identifying objects and faces on a "small-ish" library before moving to my production/large image set.

Problem Report
docker logs -f damselfly was repeatedly throwing the following log entries and filling the log:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Tested Fix
I ran the following in the container and this fixed this issue:

apt-get -y install locales
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen

Solution Discussion
Does it make sense for the project to install UTF-8 locales? I doubt it. Perhaps an environment variable in the docker compose/cli that allows the user to specify which locales should be installed.

Test Environment details:

System
.Net Version: v8.0.3
OS Version: Other 1.0.0.0
Client Runtime: Wasm
Server Architecture: Unix 6.8.0.40 (X64)
Processor Count: 1
Photo Collection
Folders: 3343
Images: 122668
Image File Size: 110.11 GB
Tags/Keywords: 176
Recognised Objects: 53973
Faces: 5493
People Identified: 48
Process Queue
Pending Metadata Scans: 5
Pending Thumbnails: 0
Pending AI Scans: 94063
Pending Keyword Updates: 10 (total keywords: 10)

@Webreaper
Copy link
Owner

Interesting. I had no idea I even had any perl dependencies in the docker image! I'm guessing it's from ImageMagick or one of the other packages.

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

2 participants