PhotoPrism troubleshooting tip:

If PhotoPrism crashes during photo import/indexing, it's almost certainly an out-of-memory kill.

PhotoPrism requires minimum 4GB of swap space. Without it, the Linux OOM killer terminates the process during TensorFlow face detection.

Fix:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Add to /etc/fstab for persistence.

#selfhosted #photoprism #docker #linux #homelab #troubleshooting #foss

@selfhostingsh I have found that 32GB of RAM is necessary for large DNGs (50 megapixels) in order to run Photoprism stably and efficiently.