The Piwigo Challenge

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • The Piwigo Challenge



      This thread is to encourage some help on getting Piwigo function on docker in Openmedivault.

      The prize is a TechnoDad Life sticker to the first four people that successfully post screen captures of piwigo successfully running with pictures in database, along with complete instructions of how they did it with screen captures of their configs Also they will get mention in the Piwigo video when I make it.

      What you'll need.

      Openmediavault server
      Piwigo Docker
      Mariadb docker

      Here are the basic parameters:

      Source Code

      1. image: mariadb:latest
      2. restart: always
      3. volumes:
      4. appdata/piwigo:/var/lib/mysql
      5. environment:
      6. MYSQL_DATABASE: piwigodb
      7. MYSQL_USER: piwigo
      8. MYSQL_PASSWORD: piwigo
      9. MYSQL_ROOT_PASSWORD: piwigo

      Source Code

      1. piwigo:
      2. image: linuxserver/piwigo
      3. restart: always
      4. environment:
      5. - PUID=1000
      6. - PGID=100
      7. - TZ=America/New_York
      8. ports:
      9. - "8088:80"
      10. links:
      11. - db
      12. depends_on:
      13. - piwigodb
      14. volumes:
      15. - appdata/piwigo:/var/www/_data/i
      16. - media/photos:/var/www/galleries
      Display All
      Raedy. Set. Go.
      Build, Learn, Create.

      How to Videos for OMV

      Post any questions to the forum, so others can benefit from your curiosity. :thumbsup:
      No private support.
    • Hello TDL,

      I apologize for the plug, but here is my rough draft networkshinobi.com/piwigo-on-openmediavault/
      Hope this would help to some point, or at least point everyone to the right direction.

      EDIT/Update:
      I think I got the post a bit clean and top down approach for installation exactly how I installed the container.

      The post was edited 1 time, last by notadmin: Added more info ().

    • Dear TechnoDadLife (what's your name really?)
      i am a great enthusiast of your videos and i installed omv, nextcloud and so on successfully. Piwigo i installed exactly following your instructions for Nextcloud (Mariadb and Docker Piwigo) and it works fantastic. For some days I give you an account for my album "Florida 19", so you can immagine how it works. cloud36.duckdns.org, user name: TechnoDadLife, PW: test.
      Yours Swiss enthusiastic.
    • HansGalliker wrote:

      Dear TechnoDadLife (what's your name really?)
      i am a great enthusiast of your videos and i installed omv, nextcloud and so on successfully. Piwigo i installed exactly following your instructions for Nextcloud (Mariadb and Docker Piwigo) and it works fantastic. For some days I give you an account for my album "Florida 19", so you can immagine how it works. cloud36.duckdns.org, user name: TechnoDadLife, PW: test.
      Yours Swiss enthusiastic.
      this you already have a working piwigo: is it possible to restrict it only in your LAN? I don't want my photos to be accessible from web.
      Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 2X6TB Seagate Ironwolf - 2x4TB WD RED
      OMV 4.1.22 - Kernel 4.19 - omvextrasorg 4.1.2
    • The Piwigo Challenge

      Blabla wrote:

      HansGalliker wrote:

      Dear TechnoDadLife (what's your name really?)
      i am a great enthusiast of your videos and i installed omv, nextcloud and so on successfully. Piwigo i installed exactly following your instructions for Nextcloud (Mariadb and Docker Piwigo) and it works fantastic. For some days I give you an account for my album "Florida 19", so you can immagine how it works. cloud36.duckdns.org, user name: TechnoDadLife, PW: test.
      Yours Swiss enthusiastic.
      this you already have a working piwigo: is it possible to restrict it only in your LAN? I don't want my photos to be accessible from web.
      Yes, you can and that's the default.

      Sent from my ONEPLUS A6003 using Tapatalk
    • I have one MariaDB for Nextcloud, so I created a new one for piwigo. Changed the port from 3306 to 3307.

      I get stuck at this step

      Source Code

      1. root@Sparta:~# docker container exec -it piwigodb bash
      2. root@dd1b5fc36d70:/# mysql -u root -p
      Then, nothing. Just sits there. Any ideas?
      Is this old airplane safe to fly? How in the world do you think it got to be this old?
    • notadmin wrote:

      Hello TDL,

      I apologize for the plug, but here is my rough draft networkshinobi.com/piwigo-on-openmediavault/
      Hope this would help to some point, or at least point everyone to the right direction.

      EDIT/Update:
      I think I got the post a bit clean and top down approach for installation exactly how I installed the container.

      Good instructions, got things up and running very simply... The one thing I would make sure is a little more clear though, is this part...

      Under the Networking section, and fill out the following fields. Don’t forget to click on the + plus sign. When done, scroll down for more settings.

      [Blocked Image: https://www.networkshinobi.com/wp-content/uploads/2019/06/Screenshot-2019-06-15-at-09.02.40.png]

      You can choose any port you desire for Host Port. I used port 82 because I may use port 80 for something else.
      Host IPHost PortExposed Port
      0.0.0.08280/tcp



      To me, to someone who's new it may sound like this setting is optional... It's really not. OMV uses port 80, so you have to reassign a port here.
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • KM0201 wrote:

      notadmin wrote:

      Hello TDL,

      I apologize for the plug, but here is my rough draft networkshinobi.com/piwigo-on-openmediavault/
      Hope this would help to some point, or at least point everyone to the right direction.

      EDIT/Update:
      I think I got the post a bit clean and top down approach for installation exactly how I installed the container.
      Good instructions, got things up and running very simply... The one thing I would make sure is a little more clear though, is this part...

      Under the Networking section, and fill out the following fields. Don’t forget to click on the + plus sign. When done, scroll down for more settings.

      [Blocked Image: https://www.networkshinobi.com/wp-content/uploads/2019/06/Screenshot-2019-06-15-at-09.02.40.png]

      You can choose any port you desire for Host Port. I used port 82 because I may use port 80 for something else.
      Host IPHost PortExposed Port
      0.0.0.08280/tcp


      To me, to someone who's new it may sound like this setting is optional... It's really not. OMV uses port 80, so you have to reassign a port here.
      Thanks. I really appreciate the feedback. I am trying to give something back to community.
    • phrogpilot73 wrote:

      So I ran the command:

      id -nu 99, and it returns "no such user"

      Who is user UID 99 in your instances where piwigo is working? I think that might be my problem..
      You don't have that user number assigned on your system. I'm assuming you have created a user under the "Users" section.... so you need to get that users info

      Example, if you had a user "ken" on your system, from there, you'll clearly see your users UID and GID. I'm not really sure where the P comes from in docker setup.. :):

      Source Code

      1. root@openmediavault:/# id ken
      2. uid=1000(ken) gid=100(users) groups=100(users),114(ssh)
      3. root@openmediavault:/#
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • KM0201 wrote:

      You don't have that user number assigned on your system. I'm assuming you have created a user under the "Users" section.... so you need to get that users info
      Example, if you had a user "ken" on your system, from there, you'll clearly see your users UID and GID. I'm not really sure where the P comes from in docker setup.. :):

      Source Code

      1. root@openmediavault:/# id ken
      2. uid=1000(ken) gid=100(users) groups=100(users),114(ssh)
      3. root@openmediavault:/#
      I knew that I didn't have that username, I was trying to figure out who their UID of 99 was to map it to my system username/UID. I tried it as is (with UID 99), didn't work (piwigo would keep timing out), and I also tried it with UID 998 (admin on my system). Still timed out. I got it working today with UID 1000 (my first user) and it doesn't seem to be timing out (knock on wood).
      Is this old airplane safe to fly? How in the world do you think it got to be this old?
    • phrogpilot73 wrote:

      KM0201 wrote:

      You don't have that user number assigned on your system. I'm assuming you have created a user under the "Users" section.... so you need to get that users info
      Example, if you had a user "ken" on your system, from there, you'll clearly see your users UID and GID. I'm not really sure where the P comes from in docker setup.. :):

      Source Code

      1. root@openmediavault:/# id ken
      2. uid=1000(ken) gid=100(users) groups=100(users),114(ssh)
      3. root@openmediavault:/#
      I knew that I didn't have that username, I was trying to figure out who their UID of 99 was to map it to my system username/UID. I tried it as is (with UID 99), didn't work (piwigo would keep timing out), and I also tried it with UID 998 (admin on my system). Still timed out. I got it working today with UID 1000 (my first user) and it doesn't seem to be timing out (knock on wood).
      I'ts not timing out because that's how it's supposed to work in the first place. I'm not sure what user is 99, as I've never seen it before and I'm not sure where he got that number. 998 is the admin user for the webUI, so I'm not particularly surprised it didn't work. Since most containers (unless you have the run in privileged mode trigger enabled) are designed to run as users not as root/admin, I'm not sure why you would have tried the admin user. You can id the admin user, but if you try to login at the console as the admin user, you'll get an error... so it only makes sense this user can't run containers.

      Glad you got it working.
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Another thing I noticed about this (admittedly I didn't really pay attention to the first part because I pretty much had all that done...

      Source Code

      1. root@openmediavault:~# mkdir -p /sharedfolders/appdata/piwigo
      2. root@openmediavault:~# mkdir -p /sharedfolders/appdata/mariadb-photo
      3. root@openmediavault:~# cd /sharedfolders/appdata
      4. root@openmediavault:/sharedfolders/appdata# ls -lh
      5. total 8.0K
      6. drwxr-xr-x 2 root root 4.0K Jun 6 20:16 mariadb-photo
      7. drwxr-xr-x 2 root root 4.0K Jun 6 20:16 piwigo
      8. root@openmediavault:/sharedfolders/appdata#
      First... the biggest problem. You created your "appdata" folder from the command line under sharedfolders. Now if someone only uses 1 or 2 dockers, or they have a very large OS drive... This won't be an issue. If they have a small OS drive (say an 8-16gig flash drive) and decide to use Plex/Emby dockers and continue with the way you you map your config folders, those databases (which can be very very large) are going to end up on their OS drive and could easily fill it up resulting in problems (there's been multiple threads here about this very issue). If this is done correctly, those large databases will be on one of the data drive file systems. That's why that directory can only be written by root, and not as a user. It's really only designed for folders to be there that are created by the webUI. The way your instructions are written, is assuming these are not the first two dockers someone has used, and they've followed technodad's and the other tutorials, and have a appdata folder created via the webUI.

      Really... the way this should be done...

      Create your Appdata folder in the webUI on one of the storage file systems...
      Then create your config folders the way you said (but you don't need to be root, and I wouldn't be to be honest)
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Agricola wrote:

      TechnoDadLife wrote:

      We install Piwigo Photo Management software on our Openmediavaultserver.
      @TechnoDadLife I got Piwigo up and running, and was able to upload and view photos, but I am wondering why a Photos folder is created in the Media folder. There doesn't appear to be any files stored there. They are batch stored in a folder deep within AppData/Piwigo, not sorted in folders. Am I doing something wrong, or is this the way Piwigo is intended to store photo images? I really like the Piwigo gallery look as opposed to the look of photos on Plex, but I much prefer the hierarchical storage of images in Plex.
      Thanks for the video. Very good.
      (the other thread is not for support questions...)

      This is likely a problem with how you mapped your photo directory.. If you mapped it to /pictures, that's why it is "buried".

      Map it how I did below, and it will do what you want..

      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Yes. My mistake. I deleted the post and reposted it in the General section.

      Very interesting, I will try your settings here in a bit. Thanks.

      Also, do you know if there is any support for RAW images, natively or with extensions. A quick look around Piwigo's site didn't seem to support it.
      Retired. I love to garden and mess with computers. The more I mess with both the less I know about either.
      OMV 4.1.23-1 on a pair of Odroid hc2's w/ 4TB WD Blue. Running Nextcloud, Plex, & Heimdall - and a Raspberry Pi 3 running Pi-hole.
      Testing OMV 5.0.5 5.0.6 beta on an Odroid H2, HP dx2400, and Nanopi M4.
    • I honestly don't know... I've not been through a ton of settings on it to be honest. I'd wanted to test it more thoroughly last night but I got to messing with Owncloud as a friend preferred it to Nextcloud.

      Edit: I took a brief look and don't see a plugin for Raw images... Google turns this up (it doesn't look like raw images are supported as of March last year)

      piwigo.org/forum/viewtopic.php?id=28603
      Air Conditioners are a lot like PC's... They work great until you open Windows.