I’m currently using Double Take along with Frigate and CompreFace for facial recognition. I’ve been running CompreFace successfully for about a year without any issues. However, after updating to Home Assistant Core 2025, CompreFace stopped working. Frigate and Double Take are still functioning correctly.
I’m seeing a lot of log entries.
When I try to access the CompreFace web interface via its IP address on port 8000, I get the following error message.
Any help or suggestions would be greatly appreciated!
I implemented your solution and was able to get it working, thank you very much!
I only have one question as, for some reason, whenever I power off my home assisntant server or whenever I install an update and need to restart the system I loose all my configuration for compreface and need to reconfigure the compreface instance, create a new user, create a new recognition server and, again, train all my faces.
I have tried using chatGPT to find solutions to this issue but it has not been very helpful.
yes, I did i fixed it now i have these:
ompreface-uus $ cat Dockerfile
FROM exadel/compreface:1.0.0
ENV PGDATA=/data/database
RUN apt-get update && apt-get install jq -y && rm -rf /var/lib/apt/lists/*
COPY postgresql.conf /etc/postgresql/13/main/postgresql.conf
COPY run.sh /
CMD [“/run.sh”]
compreface-uus $ cat config.json
{
“name”: “Exadel CompreFace”,
“version”: “1.0.0”,
“url”: “GitHub - exadel-inc/CompreFace: Leading free and open-source face recognition system”,
“slug”: “compreface-uus”,
“description”: “Exadel CompreFace is a leading free and open-source face recognition system”,
“arch”: [“amd64”],
“startup”: “application”,
“boot”: “auto”,
“ports”: {
“80/tcp”: 8000
},
“ports_description”: {
“80/tcp”: “UI/API”
},
“options”: {
“POSTGRES_URL”: “jdbc:postgresql://localhost:5432/frs”,
“POSTGRES_USER”: “compreface”,
“POSTGRES_PASSWORD”: “M7yfTsBscdqvZs49”,
“POSTGRES_DB”: “frs”,
“API_JAVA_OPTS”: “-Xmx1g”
},
“schema”: {
“POSTGRES_URL”: “str”,
“POSTGRES_USER”: “str”,
“POSTGRES_PASSWORD”: “str”,
“POSTGRES_DB”: “str”,
“API_JAVA_OPTS”: “str”
}
}
compreface-uus $ cat run.sh
#!/bin/bash
Entrypoint
Ensure persistent data is stored in /data/ and then start the stack
set -euo pipefail
start() {
echo “Starting CompreFace” >&2
values=$(cat /data/options.json)
for s in $(echo “$values” | jq -r “to_entries|map("(.key)=(.value|tostring)")|.” ); do
export “${s?}”
done
if [ “$PGDATA” == “/data/database” ] && [ -d /data ]
then
if [ ! -d /data/database ]
then
cp -rp /var/lib/postgresql/data /data/database
fi
fi
chown -R postgres:postgres “$PGDATA”
exec /usr/bin/supervisord
}
if grep -q avx /proc/cpuinfo
then
start
else
echo “AVX not detected” >&2
exit 1
fi
allso copy postgresql.conf from original addon to the local addons folder.