07-10-2023, 04:46 PM | #316 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
On your installation: what do you see - using the ip address - on the frontpage by clicking on "library"? Is there a named folder to select to start the indication? Where id your library at linux? /home/pi/... |
07-10-2023, 05:30 PM | #317 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Photoprism worked and then it did not. - What went wrong? - As what user (pi/root) did you type sudo docker-compose up -d ? This means your "Originals" directory is probably under /root. (not pi). You must now also have a mysql docker image/container. Is it running? What is the output of: docker ps -a and docker ps ? The line - "~/Pictures:/photoprism/originals" in the docker-compose.yml file points to where you should put the photo directories. Check if they are there (/home/pi/Pictures or /root/Pictures)and then see attachment. To test put only a small test directory in /home/pi/Pictures then press the button to start indexing........... (takes forever, that's what I hate) |
Advert | |
|
07-10-2023, 05:34 PM | #318 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Unrelated to your problem: I hope you use USB-sticks and not SD-cards to use with photoprism. It writes to much to the cards for my liking and can destroy your SD-card over time. This problem is less with USB-Sticks and even less with USB-SSD's. |
07-10-2023, 09:51 PM | #319 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
"what went wrong"? Good question: after 2-3 days of correct working I wanted to add 2 new folders within the "Pictures" directory that photoprism did not indexed, then I made some trials that went wrong and I observed that my library suddenly became less and less and less ... The Pictures are not under /root, but /pi/Pictures (as it was when it worked, did not move it) For now, I left the "Pictures" directory with its full content, for trials I added directory "Pictures2" with just one folder, changed the docker-compose.yml accordingly: nothing I use still SD-card (+USB-SSD), no problem so far |
07-11-2023, 06:07 AM | #320 |
Guru
Posts: 719
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. |
Advert | |
|
07-11-2023, 06:49 AM | #321 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
1) Yes 2) Done - Result: pi@raspberrypi:~ $ docker stop pi-mariadb-1. Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/pi-mariadb-1./stop": dial unix /var/run/docker.sock: connect: permission denied pi@raspberrypi:~ $ sudo docker stop pi-mariadb-1. Error response from daemon: No such container: pi-mariadb-1. pi@raspberrypi:~ $ 3) 4): confuses me: "should be" / "could be" volumes: # "/host/folder:/photoprism/folder" # Example - "/home/pi/Pictures:/photoprism/original" # 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 - "./storage:/photoprism/storage" is this correct? Before I continue... |
07-11-2023, 07:28 AM | #322 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
1) OK 2a) sudo usermod -aG docker pi etc. 2b) try sudo docker stop pi-mariadb-1 3a) should > - "~/Pictures:~/pi/pictures" = can never work. 3b) could > - "/home/pi/photoprism/storage:/photoprism/storage" = my suggestion I would do: Code:
# "/host/folder:/photoprism/folder" # Example - "/home/pi/Pictures:/photoprism/original" # 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" docker ps -a should be empty! |
07-11-2023, 09:27 AM | #323 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
back from shopping: where is the file docker ps -a (before I make another mistake), please |
07-11-2023, 10:34 AM | #324 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
My mistake. I meant "the output of docker ps -a should not show any containers". Only the line Code:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS |
07-11-2023, 10:55 AM | #325 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
alors, hoped, to make everything right and in the correct row but: index the pictures at website xxx.xxx.xxx.xx:2342 says "originals folder" is empty Last edited by huber70; 07-11-2023 at 11:06 AM. |
07-11-2023, 11:06 AM | #326 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
But is the directory empty? You made sure there is a directory with photo's in /home/pi/photoprism/originals ? Now: (see attachement) |
07-11-2023, 11:17 AM | #327 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
Yes, it's empty - all pictures are - as defined - in /home/pi/Pictures
|
07-11-2023, 11:22 AM | #328 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
That is OK! Now start indexing! https://docs.photoprism.app/user-guide/first-steps/ I personally hate this! |
07-11-2023, 11:26 AM | #329 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
sorry, that does not work, indexing says "originals folder is empty" |
07-11-2023, 11:28 AM | #330 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
last try, then I give up for now.... sudo chown pi:pi/home/pi/photoprism -R * then try again....... :p is not what I wanted to write, now wit spaces (leave them out! chown p i : p i /home etc. Moderator Notice
Go advanced in MR editor: tick disable smilies in text Last edited by theducks; 07-11-2023 at 09:21 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
COPS : Calibre OPDS PHP Server | vlad59 | Related Tools | 1911 | 03-04-2024 06:39 AM |
OPDS in php or populate metadata.db from filesystem | skelos | Related Tools | 0 | 09-06-2019 11:03 AM |
php??? | crutledge | ePub | 13 | 01-24-2014 06:27 PM |
Which PHP version do you have? | erayd | Workshop | 2 | 10-04-2010 08:02 PM |