jakowenko / double-take

Unified UI and API for processing and training images for facial recognition.
https://hub.docker.com/r/jakowenko/double-take
MIT License
1.24k stars 99 forks source link

[BUG]Error Installing CompreFace 1.1.0 #254

Open LordNex opened 2 years ago

LordNex commented 2 years ago

Describe the bug Unable to successfully update and use CompreFace 1.1.0

Version of Double Take Latest Stable Build

Expected behavior Upgrade or install of CompreFacr addon not to fail

Screenshots If applicable, add screenshots to help explain your problem. image Hardware

Additional context Everything had been working great with the old version until the new one came out and I tried upgrading. The upgrade failed and left a non functional install of CompreFace. So I removed CompreFace, restored from backup, verified functionality, and tried again. Failed. Removed CompreFace completely and rebooted. Then went to install again and I get the following error


The command '/bin/bash -c apt-get update && apt-get install jq -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
jakowenko commented 2 years ago

How much free space do you have on your system? That command hasn't changed between versions of CompreFace, so I'm not sure why it would be failing for you now. I'm able to install this version without any issues.

I can look into a few of the solutions here to see if they resolve it for you. Someone in the post said that running docker system prune fixed it for them. Would you mind trying that if you have the ability to do that?

LordNex commented 2 years ago

How much free space do you have on your system? That command hasn't changed between versions of CompreFace, so I'm not sure why it would be failing for you now. I'm able to install this version without any issues.

I can look into a few of the solutions here to see if they resolve it for you. Someone in the post said that running docker system prune fixed it for them. Would you mind trying that if you have the ability to do that?

I have a free Jetson Nano and have been trying to find a use for it. Is there a way to run DT and CompreFace on the Nano and have it proxy into Home Assistant? Currently my Frigate server is a Ubuntu Server 20 LTS on an ESXi Sever with the USB controller passed through for the USB Coral TPU. Only thing there that sux is I have to use CPU power for encoding and decoding the streams. But it's on a 40 core Dell PowerEdge R620 so it's doing ok just giving it 8 cores.

My original setup was Frigate on a RPi4 with the TPU, DT in HA as an Add on, and DeepStack running on the Jetson. That worked ok but got a lot of false positives with DeepStack. When I tried CompreFace I was blown away how better it did and also had plug-ins for age, gender, and mask.

So im trying to find the best way to leverage these 3 main hardware pieces together for a Facial Recognition NVR in near real time. I'll take a look at that post and see why it would be doing that.

I don't like messing with HA's docker environment since the supervisor handles most everything. But my guess is that there is a stuck old docker container that might be blocking it. I've been successful in restoring 1.0.0 from backup and it seems to be running, if not a little sluggishly, but every time I try to upgrade ether it fails right out. Or says it's upgraded but won't start the container

Any help you could provide or suggestions would be greatly appreciated. I think im close but from what I've read I'll probably have to build and compile my own image which I've never really done before. I've just started getting used to docker and docker-compose.

Anyway, thanks for the advice and keeping up such a great piece of programming!

LordNex commented 2 years ago

I tried an update again after installing HA 2022.11 and got more errors but this time it properly logged in the supervisor log. See below. I've verified connectivity to GitHub and other external resources. All the other updates went through fine. Anything else you can suggest? I'm not worried about saving any data so if there's a way to completely remove it from my system and then install 1.1.0 id be happy to give it a go.

22-11-02 23:59:14 INFO (SyncWorker_8) [supervisor.docker.interface] Updating image c7657554/amd64-addon-compreface:1.0.0 to c7657554/amd64-addon-compreface:1.1.0
22-11-02 23:59:14 INFO (SyncWorker_8) [supervisor.docker.addon] Starting build for c7657554/amd64-addon-compreface:1.1.0
22-11-03 00:02:18 ERROR (MainThread) [supervisor.utils.dbus] D-Bus method org.freedesktop.DBus.Properties.call_get_all not exists!
22-11-03 00:02:18 WARNING (MainThread) [supervisor.dbus.network] Can't process /org/freedesktop/NetworkManager/Devices/55: 
22-11-03 00:02:18 ERROR (MainThread) [supervisor.utils.dbus] D-Bus method org.freedesktop.DBus.Properties.call_get_all not exists!
22-11-03 00:02:18 WARNING (MainThread) [supervisor.dbus.network] Can't process /org/freedesktop/NetworkManager/Devices/56: 
22-11-03 00:02:18 ERROR (MainThread) [supervisor.utils.dbus] D-Bus method org.freedesktop.DBus.Properties.call_get_all not exists!
22-11-03 00:02:18 WARNING (MainThread) [supervisor.dbus.network] Can't process /org/freedesktop/NetworkManager/Devices/55: 
22-11-03 00:02:18 ERROR (SyncWorker_8) [supervisor.docker.addon] Can't build c7657554/amd64-addon-compreface:1.1.0: The command '/bin/bash -c apt-get update && apt-get install jq -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
22-11-03 00:02:18 ERROR (SyncWorker_8) [supervisor.docker.addon] Build log: 
Step 1/12 : FROM exadel/compreface:1.1.0
 ---> 5a11defc5339
Step 2/12 : ENV PGDATA=/data/database
 ---> Using cache
 ---> d4624b74f4b8
Step 3/12 : RUN apt-get update && apt-get install jq -y && rm -rf /var/lib/apt/lists/*
 ---> Running in 0bc9fe87c98a
Err:1 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease
  Temporary failure resolving 'apt.postgresql.org'
Err:2 http://deb.debian.org/debian bullseye InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian-security bullseye-security InRelease
  Temporary failure resolving 'deb.debian.org'
Err:4 http://deb.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/bullseye-pgdg/InRelease  Temporary failure resolving 'apt.postgresql.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package jq

Removing intermediate container 0bc9fe87c98a
LordNex commented 2 years ago

Somewhat resolved.

See

https://github.com/home-assistant/core/issues/81433