View Single Post
Old 07-11-2023, 06:07 AM   #320
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

1 - the pictures come from the new install of photoprism (NOT of the older)?
2 - there are 2 containers running mariadb; there should only be one (1). I would docker stop pi-mariadb-1.
3 - the line in docker-compose.yml should be:
- "/home/pi/Pictures:/photoprism/originals"
not
- "~/Pictures:~/pi/pictures"
that can never work.
4 - the line in docker-compose.yml could be:
- "/home/pi/photoprism/storage:/photoprism/storage"

You can then place your photo's in /home/pi/Pictures

To make this work I would "start over" with the install of photoprism:
- docker stop pi-mariadb-1
- docker stop photoprism_mariadb_1
- docker stop photoprism_photoprism_1

docker rm pi-mariadb-1 photoprism_mariadb_1 photoprism_photoprism_1

Delete anything under /home/pi/photoprism except docker-compose.yml and picture directories.

Change the docker-compose.yml file and put it in /home/pi/photoprism

then cd /home/pi/photoprism

then docker-compose up -d [note NO sudo]
if this does not work:
sudo usermod -aG docker $USER
log out and back in or reboot. And try docker-compose up -d again.

Then see my previous post for indexing.

NB: SD-card are not good with multiple writes/deletes. A small card will fail fast, a larger card will last longer. YMMV (your mileage may vary). Just photoprism is probably fine on a larger (with a lot of free space) card.
mariosipad is offline   Reply With Quote