Tinkerhell
Tinkerhell
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
so... no chance of any help for an arm system?
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
I was afraid of that... I dont have a ton of images, so thought I'd give it a try. It just seems like a strange error because it looks like a problem within the code, since python throws it. It may only be in the arm image
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
An rpi specific issue, maybe? Anyone running on that?
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
I'm not sure it's Kubernetes related, though. It could be an architecture thing, since I'm running on Raspberry Pi
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
Thanks so much! Okay, great possibilities for success, then 😅
19 replies
IImmich
Created by Tani on 4/17/2025 in #help-desk-support
Machine learning failing second instance
Hi, sorry to hijack here, but i created my first ever post on here at it's not getting commented on at all, so was wondering i you could check if I did something wrong, thanks https://discord.com/channels/979116623879368755/1049703391762321418/threads/1361678076764881139
22 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
No one? Any maintainers around who can replicate?
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
Complete python error:
$ kubectl logs -n immich immich-machine-learning-d74bb5d4-dknhq
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/immich_ml/__main__.py", line 6, in <module>
from .config import log, non_prefixed_settings, settings
File "/usr/src/immich_ml/config.py", line 105, in <module>
non_prefixed_settings = NonPrefixedSettings()
^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/pydantic_settings/main.py", line 176, in __init__
super().__init__(
File "/opt/venv/lib/python3.11/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for NonPrefixedSettings
immich_port
Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='tcp://10.43.86.160:2283', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/int_parsing
$ kubectl logs -n immich immich-machine-learning-d74bb5d4-dknhq
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/immich_ml/__main__.py", line 6, in <module>
from .config import log, non_prefixed_settings, settings
File "/usr/src/immich_ml/config.py", line 105, in <module>
non_prefixed_settings = NonPrefixedSettings()
^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/pydantic_settings/main.py", line 176, in __init__
super().__init__(
File "/opt/venv/lib/python3.11/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for NonPrefixedSettings
immich_port
Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='tcp://10.43.86.160:2283', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/int_parsing
19 replies
IImmich
Created by Tinkerhell on 4/15/2025 in #help-desk-support
Python error on machine learning pod
My values files:
## This chart relies on the common library chart from bjw-s
## You can find it at https://github.com/bjw-s/helm-charts/tree/main/charts/library/common
## Refer there for more detail about the supported values

# These entries are shared between all the Immich components

env:
REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
DB_HOSTNAME: postgresql-rw # "{{ .Release.Name }}-postgresql"
DB_USERNAME: immich # "{{ .Values.postgresql.global.postgresql.auth.username }}"
DB_DATABASE_NAME: immich # "{{ .Values.postgresql.global.postgresql.auth.database }}"
# -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
DB_PASSWORD: password # "{{ .Values.postgresql.global.postgresql.auth.password }}"
IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'

image:
tag: v1.131.3
[...]
# Dependencies
redis:
enabled: true
architecture: standalone
auth:
enabled: false

# Immich components

server:
enabled: true
image:
repository: ghcr.io/immich-app/immich-server
pullPolicy: IfNotPresent
env:
IMMICH_PORT: 2283
ingress:
main:
enabled: false
annotations:
# proxy-body-size is set to 0 to remove the body limit on file uploads
nginx.ingress.kubernetes.io/proxy-body-size: "0"
hosts:
- host: immich.local
paths:
- path: "/"
tls: []

machine-learning:
enabled: true
image:
repository: ghcr.io/immich-app/immich-machine-learning
pullPolicy: IfNotPresent
env:
TRANSFORMERS_CACHE: /cache
IMMICH_PORT: 2283 # Tried with and without this
persistence:
cache:
enabled: true
size: 10Gi
# Optional: Set this to pvc to avoid downloading the ML models every start.
#type: emptyDir
accessMode: ReadWriteMany
storageClass: rook-ceph-block
## This chart relies on the common library chart from bjw-s
## You can find it at https://github.com/bjw-s/helm-charts/tree/main/charts/library/common
## Refer there for more detail about the supported values

# These entries are shared between all the Immich components

env:
REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
DB_HOSTNAME: postgresql-rw # "{{ .Release.Name }}-postgresql"
DB_USERNAME: immich # "{{ .Values.postgresql.global.postgresql.auth.username }}"
DB_DATABASE_NAME: immich # "{{ .Values.postgresql.global.postgresql.auth.database }}"
# -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
DB_PASSWORD: password # "{{ .Values.postgresql.global.postgresql.auth.password }}"
IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'

image:
tag: v1.131.3
[...]
# Dependencies
redis:
enabled: true
architecture: standalone
auth:
enabled: false

# Immich components

server:
enabled: true
image:
repository: ghcr.io/immich-app/immich-server
pullPolicy: IfNotPresent
env:
IMMICH_PORT: 2283
ingress:
main:
enabled: false
annotations:
# proxy-body-size is set to 0 to remove the body limit on file uploads
nginx.ingress.kubernetes.io/proxy-body-size: "0"
hosts:
- host: immich.local
paths:
- path: "/"
tls: []

machine-learning:
enabled: true
image:
repository: ghcr.io/immich-app/immich-machine-learning
pullPolicy: IfNotPresent
env:
TRANSFORMERS_CACHE: /cache
IMMICH_PORT: 2283 # Tried with and without this
persistence:
cache:
enabled: true
size: 10Gi
# Optional: Set this to pvc to avoid downloading the ML models every start.
#type: emptyDir
accessMode: ReadWriteMany
storageClass: rook-ceph-block
19 replies