Picapport docker with OMV on RaspberryPI

314 views
Skip to first unread message

gustavo...@gmail.com

unread,
Apr 14, 2020, 3:56:20 AM4/14/20
to PicApport
Hello everyone,

I would like to try out picapport as a gallery tool for my pictures in a OMV server, installed on a raspberry pi.

After installing the docker container following these instructions, I can access the picapport under http://localhost:8080, but all I can see is an empty folder "Local collection" and the statement " The Picapport server is currently not available. Fotos stored localy can be viewed." (see picture)
 

Picapport.PNG


The insallation is pretty straightforward, so I do not see where did I get it wrong.
I have mounted three volumes:
/opt/picapport/config --> where the picapport.properties file is located
/opt/picapport/Fotos --> here I have one picture for test purposes
/opt/picapport/cache --> empty

My first suspicion was, I am having some kind of port conflict, but I could not find anything wrong. I am able to access the container, only the data is missing.
What am I missing here? 

Thank you in advance for your help!

Here the content of the logfile:

Copyright (c) 1997-2020 Contecon Software GmbH. All rights reserved.
2020-04-12 23:04:10
Tracelevel: ERROR
VER  @ 23:04:10.731 PicApport Version 8.2 from 14.02.2020 loaded.
VER  @ 23:04:10.734 de.contecon.picapport.PicApport.Version=V8.2.2 14.02.2020
VER  @ 23:04:10.736 java.runtime.version: 1.8.0_242-b08
VER  @ 23:04:10.737 java.version: 1.8.0_242
VER  @ 23:04:10.739 java.vm.version: 25.242-b08
VER  @ 23:04:10.740 java.vm.vendor: IcedTea
VER  @ 23:04:10.741 java.vm.name: OpenJDK Zero VM
VER  @ 23:04:10.743 java.specification.version: 1.8
VER  @ 23:04:10.744 java.vm.specification.version: 1.8
VER  @ 23:04:10.746 java.class.path: picapport-headless.jar
VER  @ 23:04:10.747 os.name: Linux
VER  @ 23:04:10.748 os.version: 4.19.97-v7+
VER  @ 23:04:10.750 os.arch: arm
VER  @ 23:04:10.752 file.separator: /
VER  @ 23:04:10.753 path.separator: :
VER  @ 23:04:10.754 user.dir: /opt/picapport
VER  @ 23:04:10.756 user.home: /opt/picapport
VER  @ 23:04:10.757 user.name: root
MSG  @ 23:04:10.759 java.runtime totalMemory=259mb maxMemory=518mb freeMemory=257mb processors=4
MSG  @ 23:04:10.771 java.runtime.argument: -Xms256m
MSG  @ 23:04:10.772 java.runtime.argument: -Xmx512m
MSG  @ 23:04:10.774 java.runtime.argument: -Duser.home=/opt/picapport
MSG  @ 23:04:10.775 PicApport home=/opt/picapport/.picapport
MSG  @ 23:04:10.777 PicApport logging to /opt/picapport/.picapport/logfiles
MSG  @ 23:04:10.778 org.eclipse.jetty.LEVEL set to OFF
MSG  @ 23:04:10.781 Loading config File: /opt/picapport/.picapport/picapport.properties
MSG  @ 23:09:46.346 PicApportProperties.client.video.types.json[0].ext=.mp4 mime=video/mp4
MSG  @ 23:09:46.349 PicApportProperties.client.video.types.json[1].ext=.ogv mime=video/ogg
MSG  @ 23:09:46.350 PicApportProperties.client.video.types.json[2].ext=.webm mime=video/webm
MSG  @ 23:09:46.364 Init: picApportHome=/opt/picapport/.picapport
MSG  @ 23:09:46.376 Init: foto.jpg.cache.path=/srv/cache
MSG  @ 23:09:46.377 Init: foto.jpg.usecache=2
MSG  @ 23:09:46.379 Init: gui.enabled=false
MSG  @ 23:09:46.380 Init: gui.hideintray=true
MSG  @ 23:09:46.381 Init: robot.root.0.id=id0
MSG  @ 23:09:46.383 Init: robot.root.0.isuploadroot=true
MSG  @ 23:09:46.384 Init: robot.root.0.path=/srv/photos
MSG  @ 23:09:46.386 Init: server.demomode=false
MSG  @ 23:09:46.387 Init: server.port=80
MSG  @ 23:09:46.388 Init: server.ssl=false
MSG  @ 23:09:46.409 PicApportRestartHandler.init: PicApport command restartpicapportserver is not avai                                                         lable. At least Java version 9 is required.
MSG  @ 23:09:46.556 FuzzySearchManager.init.phoneticEncoder: de.contecon.picapport.fuzzysearch.PaPhonD                                                         oubleMetaphoneV1.0
MSG  @ 23:09:46.623 FuzzySearchManager No Thesaurus-Files (*.pathes) found in /opt/picapport/.picappor                                                         t/thesaurus
MSG  @ 23:09:46.720 Initialize user database in /opt/picapport/.picapport/users
MSG  @ 23:09:46.733 Load users from /opt/picapport/.picapport/users
MSG  @ 23:09:46.947 Initializing User Management: CcUser2  V1.6 build:2018.06.28-##CC_BUILD##
MSG  @ 23:11:38.620 User Management: Initializing/creating UniqueId store in: /opt/picapport/.picappor                                                         t/users/vars/id_counter
MSG  @ 23:11:38.695 Init user management: Create default group: System administration
MSG  @ 23:11:39.210 Init user management: Create default group: Family
MSG  @ 23:11:39.248 Init user management: Create default group: Guests
MSG  @ 23:11:39.270 Init user management: Create user: System administrator for group admins
MSG  @ 23:11:42.943 Init user management: Create user: PicApport for group family
MSG  @ 23:11:46.551 Init user management: Create user: Guest for group guests
MSG  @ 23:11:50.359 User Management: DB-Version updated to: 8.01
MSG  @ 23:11:50.403 Search for plugins in /opt/picapport/.picapport/plugins
MSG  @ 23:11:50.433 Plugin loaded: PicApport geojson plugin 1.0 (c) 2019 Contecon Software GmbH .geojs                                                         on application/geo+json (hideSubstitutes=true) implements IOtherFileFormat:de.contecon.picapport.plugi                                                         ns.geojson.GeoJsonPlugin
MSG  @ 23:11:50.453 Queries loaded: 0
MSG  @ 23:11:50.467 Designs loaded: 0 from /opt/picapport/.picapport/designs
MSG  @ 23:11:50.620 PicApportDBService.startDatabase:embedded:/opt/picapport/.picapport/db (/opt/picap                                                         port/.picapport/db/db_3_0_27)
MSG  @ 23:12:00.846 PicApportDBService.removeOldDatabaseVersion in: /opt/picapport/.picapport/db
MSG  @ 23:12:00.865 PicApportDBService.createDatabaseDirectory: /opt/picapport/.picapport/db
MSG  @ 23:38:02.989 PicApport.startGui.javaFxIsAvailable=false isGuiEnabled=false
MSG  @ 23:38:17.915 DbWrapper.getAlternateDatePattern: M/d/yyyy = MM/dd/yyyy

E. Schreiner

unread,
Apr 14, 2020, 4:54:20 AM4/14/20
to PicApport
I'm not a Docker specialist but my guess ist that PicApport needs full read/write access to the configuration directory .picapport and all of it's subdirectories

gustavo...@gmail.com

unread,
Apr 15, 2020, 5:41:50 AM4/15/20
to PicApport
Hello,

after searching around for a while I think you are right about the reason for my problem.
The thing is, I am still not able to find, where the .picapport folder is located in my host, so I can change the permissions.
Apparently it is hidden somewehre under the overlay2 driver.

This is more a Docker issue than a PicApport one, but now I know what to look for.

Thanks for your answer!

Martin Bruns

unread,
Apr 20, 2020, 10:19:48 AM4/20/20
to PicApport
Hi Gustavo,

I'm not sure but are you maybe wrongly "mounting" the volumes to your container? Do you have the docker run or in case you use docker-compose the docker-compose.yml available?

I still have picapport not running in a docker but I'm using docker (docker-compose based) containers for various reasons.

Kind Regards
Martin

gustavo...@gmail.com

unread,
Apr 22, 2020, 8:17:49 AM4/22/20
to PicApport
Hello Martin,

thank you for your answer. I have installed docker with the following command:

docker run -d --name picapport -p 8080:80 -v /srv/dev-disk-by-label-HddTevion500GB/AppData:/opt/picapport/.picapport -v /srv/dev-disk-by-label-HddTevion500GB/Fotos:/srv/photos whatever4711/picapport

After that I can access the container with "docker exec -it picapport /bin/sh" and I see ,that the data created in "AppData" is also available under /opt/picapport/.picapport.

When save a picture under "Fotos" in my device, I can also find it in the container under "/srv/photos".


So the mounting seems to be correct, I just can not access the server through the browser. 

I have also tried giving all users full read/write access to the .picapport directory, but that also did not work.


Kind regards,

Gustavo

Martin Bruns

unread,
Apr 22, 2020, 10:55:34 AM4/22/20
to PicApport
Hi Gustavo,

does your server.port parameter in /opt/picapport/.picapport/picapport.properties match the right part of the port mapping?

e.g. I have

server.port=8084

and in my docker-compose.yml

    ports:
      - 8084:8084

I just moved my setup from normal to docker, and it works correctly I think.

Unfortunately I think we do not have a way to access the java console to enter some commands there.

Kind Regards
Martin

gustavo...@gmail.com

unread,
Apr 28, 2020, 3:17:43 AM4/28/20
to PicApport
Hello Martin,

I tried installing it again using docker-compose and I still get the same error.
Here is what I have:

picapport.properties:

server.port=80
robot.root.0.path=/srv/photos
foto.jpg.usecache=2
foto.jpg.cache.path=/srv/cache

docker-compose.yml:

version: '3' 

services:
  picapport:
    image: whatever4711/picapport
    container_name: picapport
    restart: always
    ports:
      - 8080:80
    volumes:
      - /srv/dev-disk-by-label-HddTevion500GB/AppData/picapport:/opt/picapport/.picapport
      - /srv/dev-disk-by-label-HddTevion500GB/Fotos:/srv/photos

As I have showed, I can access the picapport service under the port 8080, the problem is that the server is then not available.

Thank you for your help

Best Regards
Gustavo


Martin Bruns

unread,
Apr 28, 2020, 4:30:56 AM4/28/20
to PicApport
Hi Gustavo,

what do you mean by:

As I have showed, I can access the picapport service under the port 8080, the problem is that the server is then not available.

How did you test/check on those information?

Martin
Reply all
Reply to author
Forward
0 new messages