Announcement

#1 2022-12-18 21:02:20

gregsachs
Member
2022-12-18
2

What is the sequence of operations at install?

Hello-I'm trying to setup a new install using the linuxserver docker image, to run in parallel but on a different port as my existing piwigo install.  Different user base, different needs, etc seem to make this make sense.

I can get the docker image installed, and get to the install screen, but on clicking install I get a http 500.
I'm trying to determine if it is a file permissions issue or access to the db which is on the docker host;
What is the sequence of operations after submitting the db information and admin login?

1:  Write files, then connect to the db and create tables?
2:  Connect to the DB and create tables, then write files?

I can see that my DB does not get new tables created, so that step does not happen.  I'm looking for guidance on where to start with root cause.
Thanks!

Offline

 

#2 2022-12-19 01:09:44

erAck
Only trying to help
2015-09-06
2023

Re: What is the sequence of operations at install?


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2022-12-19 04:23:01

gregsachs
Member
2022-12-18
2

Re: What is the sequence of operations at install?

Thanks!
Given that pointer, I figured out that I first needed to fix the permissions, then I still had an issue accessing the DB.
I ended up using portainer to make this stack:
--------
version: "3.7"
services:
   mariadb:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: mariadb
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - MYSQL_ROOT_PASSWORD=<somepassword>
      - MYSQL_DATABASE=piwigo #optional
      - MYSQL_USER=admin #optional
      - MYSQL_PASSWORD=<somepassword> #optional
      - REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql #optional
    volumes:
      - <wherever you put your docker configs>/mariadb/config:/config
    ports:
      - 3306:3306 
    restart: unless-stopped
 
   piwigo:
    image: lscr.io/linuxserver/piwigo:latest
    container_name: piwigo
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - <wherever you put your docker configs>/config:/config
      - <wherever you put your docker configs>/piwigo/gallery:/gallery
    ports:
      - <incoming port>:80
    restart: unless-stopped

for the db server, all I needed was 'mariadb'

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact