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

variable is not set. Defaulting to a blank string. - Fresh install won't deploy on Docker - Unprivileged LXC running Frigate #1282

Closed
Jsalas424 opened this issue Jan 1, 2025 · 1 comment

Comments

@Jsalas424
Copy link

Describe the bug

I get a variety of errors on a fresh install when running docker compose up -d all to the tune of "VARIABLE" variable is not set. Defaulting to a blank string.

To Reproduce

Install with the official instructions https://github.com/exadel-inc/CompreFace#getting-started-with-compreface

Expected behavior

I expect the app to run.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Debian 11
  • Firefox

Logs

Run those commands and attach result to the ticket:

docker ps
root@frigate:/opt/compreface# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

docker-compose logs
root@frigate:/opt/compreface# docker-compose logs
Attaching to

docker compose logs
root@frigate:/opt/compreface# docker compose logs
WARN[0000] The "registry" variable is not set. Defaulting to a blank string.
WARN[0000] The "ADMIN_VERSION" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_domain" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_port" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string.
WARN[0000] The "enable_email_server" variable is not set. Defaulting to a blank string.
WARN[0000] The "email_host" variable is not set. Defaulting to a blank string.
WARN[0000] The "email_username" variable is not set. Defaulting to a blank string.
WARN[0000] The "email_from" variable is not set. Defaulting to a blank string.
WARN[0000] The "email_password" variable is not set. Defaulting to a blank string.
WARN[0000] The "compreface_admin_java_options" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_file_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_domain" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_port" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string.
WARN[0000] The "compreface_api_java_options" variable is not set. Defaulting to a blank string.
WARN[0000] The "save_images_to_db" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_file_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "registry" variable is not set. Defaulting to a blank string.
WARN[0000] The "API_VERSION" variable is not set. Defaulting to a blank string.
WARN[0000] The "registry" variable is not set. Defaulting to a blank string.
WARN[0000] The "FE_VERSION" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "registry" variable is not set. Defaulting to a blank string.
WARN[0000] The "CORE_VERSION" variable is not set. Defaulting to a blank string.
WARN[0000] The "max_detect_size" variable is not set. Defaulting to a blank string.
WARN[0000] The "registry" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_VERSION" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string.
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string.
WARN[0000] /opt/compreface/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion

docker compose up -d

root@frigate:/opt/compreface# docker compose up -d
WARN[0000] The "registry" variable is not set. Defaulting to a blank string. 
WARN[0000] The "POSTGRES_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string. 
WARN[0000] The "registry" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ADMIN_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_domain" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_port" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string. 
WARN[0000] The "enable_email_server" variable is not set. Defaulting to a blank string. 
WARN[0000] The "email_host" variable is not set. Defaulting to a blank string. 
WARN[0000] The "email_username" variable is not set. Defaulting to a blank string. 
WARN[0000] The "email_from" variable is not set. Defaulting to a blank string. 
WARN[0000] The "email_password" variable is not set. Defaulting to a blank string. 
WARN[0000] The "compreface_admin_java_options" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_file_size" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_username" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_password" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_domain" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_port" variable is not set. Defaulting to a blank string. 
WARN[0000] The "postgres_db" variable is not set. Defaulting to a blank string. 
WARN[0000] The "compreface_api_java_options" variable is not set. Defaulting to a blank string. 
WARN[0000] The "save_images_to_db" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_file_size" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string. 
WARN[0000] The "registry" variable is not set. Defaulting to a blank string. 
WARN[0000] The "API_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "registry" variable is not set. Defaulting to a blank string. 
WARN[0000] The "FE_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_request_size" variable is not set. Defaulting to a blank string. 
WARN[0000] The "registry" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CORE_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "max_detect_size" variable is not set. Defaulting to a blank string. 
WARN[0000] /opt/compreface/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
unable to get image 'compreface-postgres-db:': Error response from daemon: invalid reference format

The last line of the error changes every time you run docker compose, here are some examples

unable to get image 'compreface-core:': Error response from daemon: invalid reference format
unable to get image 'compreface-api:': Error response from daemon: invalid reference format
unable to get image 'compreface-admin:': Error response from daemon: invalid reference format

Additional context

Looks like I do have AVX support

root@frigate:/opt/compreface# lscpu | grep avx
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb pti tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts vnmi

This is with a fresh install of Docker and Compose from the official repos with the following code on an unprivileged Proxmox LXC. I

# Docker
apt update
apt install ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
  $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install docker-ce docker-ce-cli containerd.io

# Compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
@Jsalas424
Copy link
Author

I downloaded again and it worked. Must have been a bad download.

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

1 participant