View Single Post
Old 07-11-2023, 12:49 PM   #333
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: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

Let me try again (and now check what I'm typing before clicking POST):


The line
- "/home/pi/Pictures:/photoprism/originals" # Original media files (DO NOT REMOVE)
tells docker to "link" the directory on SD-card /home/pi/Pictures to the directory /photoprism/originals inside the docker photoprism container.

[If you copied from the post at 11:28 then that might explain the issues. I honestly do not know why the s disappeared as I only copied some code... sorry]

At this stage what I would do is:

1) stop and remove all containers shown with docker ps -a and docker ps until docker ps -a shows
Code:
CONTAINER ID   IMAGE                                   COMMAND                  CREATED        STATUS                      PORTS
2a) Remove all files and directories below /home/pi/photoprism to make sure you start from scratch again.
2b) Also remove any /home/pi/database and /home/pi/photoprism/database directory
2c) (optional) set correct user:
(remove spaces between p & i and i & : and : & p)

sudo chown p i : p i /home/pi/Pictures -R *
sudo chown p i : p i /home/pi/photoprism -R *
This makes certain that all used directories are readable and writable by user pi.

3) change docker-compose.yml in /home/pi/photoprism
Code:
    volumes:
      # "/host/folder:/photoprism/folder"                # Example
      - "/home/pi/Pictures:/photoprism/originals"               # Original media files (DO NOT REMOVE)
      # - "/example/family:/photoprism/originals/family" # *Additional* media folders can be mounted like this
      # - "~/Import:/photoprism/import"                  # *Optional* base folder from which files can be imported to originals
      - "/home/pi/photoprism/storage:/photoprism/storage"                  # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
Please review and make sure you understand what to do (and correct me if I'm wrong).
mariosipad is offline   Reply With Quote