Skip to main content


Proxmox - Scan always fails after importing few images


You get errors like these and you use Proxmox:

Thread 0x00007fc8dcf3f640 (most recent call first):
File "/usr/lib/python3.9/", line 316 in wait
File "/usr/lib/python3.9/", line 574 in wait
File "/usr/local/lib/python3.9/dist-packages/tqdm/", line 59 in run
File "/usr/lib/python3.9/", line 954 in _bootstrap_inner
File "/usr/lib/python3.9/", line 912 in _bootstrap

Current thread 0x00007fc998cf8640 (most recent call first):
File "/usr/local/lib/python3.9/dist-packages/face_recognition/", line 162 in <listcomp>
File "/usr/local/lib/python3.9/dist-packages/face_recognition/", line 162 in _raw_face_landmarks
File "/usr/local/lib/python3.9/dist-packages/face_recognition/", line 209 in face_encodings
File "/code/api/models/", line 507 in _extract_faces
File "/code/api/", line 168 in handle_new_image
File "/code/api/", line 261 in photo_scanner
File "/usr/lib/python3.9/multiprocessing/", line 51 in starmapstar
File "/usr/lib/python3.9/multiprocessing/", line 125 in worker
File "/usr/lib/python3.9/multiprocessing/", line 108 in run
File "/usr/lib/python3.9/multiprocessing/", line 315 in _bootstrap
File "/usr/lib/python3.9/multiprocessing/", line 71 in _launch
File "/usr/lib/python3.9/multiprocessing/", line 19 in __init__
File "/usr/lib/python3.9/multiprocessing/", line 277 in _Popen
File "/usr/lib/python3.9/multiprocessing/", line 121 in start
File "/usr/lib/python3.9/multiprocessing/", line 326 in _repopulate_pool_static
File "/usr/lib/python3.9/multiprocessing/", line 337 in _maintain_pool
File "/usr/lib/python3.9/multiprocessing/", line 513 in _handle_workers
File "/usr/lib/python3.9/", line 892 in run
File "/usr/lib/python3.9/", line 954 in _bootstrap_inner
File "/usr/lib/python3.9/", line 912 in _bootstrap


This is a problem with proxmox, More specifically with the way the CPU was emulated. By default, QEMU in Proxmox uses its own CPU type kvm64, which has a reduced CPU flags set, to guaranteed that it works everywhere. This means that necessary flags like SSE and AVX are absent, which causes the Fatal Python error: Illegal instruction error.

To fix this, one must either manually edit the .conf file and add the flags needed to the kvm64 CPU type, or pick a different method of CPU emulation.

To add the flags, edit the xxx.conf file located in /etc/pve/qemu-server/ where xxx is the ID of the VM. The manual can be found here:

If you don't care about live migration and moving VMs between nodes, the much easier option is to just change the CPU type to Host. With the Host option, the VM will match the CPU type of the host machine.

Steps for Proxmox 6.4:

Select your VM and then Hardware tab. {% include figure image_path="/assets/images/135711616-14903f44-2bdc-4830-82e9-a29562f75762.png" alt="Select your VM and then Hardware tab" %} Then double-click on Processors or select it and click Edit: {% include figure image_path="/assets/images/135711657-3cdc2600-2368-440c-af75-00313c8c8997.png" alt="Then double-click on Processors or select it and click Edit" %}

error decoding 'Volumes[0]': invalid spec: :/data: empty section between colons / "The "scanDirectory" variable is not set. Defaulting to a blank string."

This error usually means, that you forgot to rename the librephotos.env to .env