Piwigo, Docker - "Cannot connect to server"

still can’t make it. got the same error.

you should join us on discord, you’re going to need to provide some screenshots and logs.

Can I have the link? thanks

it’s also in every readme if you ever need it in the future

Thank you for sharing.
But I too have troubles getting piwigo connecting to the mariadb. I am using portainer to deploy both containers:
1) MariaDB:
Name mariadb_piwigo
Image [linuxserver/mariadb:latest]
Port configuration: 0.0.0.0:45560 3306/tcp

PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOME /root
LANGUAGE en_US.UTF-8
LANG en_US.UTF-8
TERM xterm
MYSQL_DIR /config
DATADIR /config/databases
MYSQL_ROOT_PASSWORD password
MYSQL_USER dejhost
MYSQL_PASSWORD password
MYSQL_DATABASE piwigo

Volumes:
|pictures |/pictures|
|mariadb_config |/config|

LOGS:
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.,
[s6-init] ensuring user provided files have correct perms…exited 0.,
[fix-attrs.d] applying ownership & permissions fixes…,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts…,
[cont-init.d] 01-envfile: executing… ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing… ,
usermod: no changes,
-------------------------------------,
_ (),
| | ___ _ _,
| | / | | | / \ ,
| | _
\ | | | () |,
|| |
/ || _/,
Brought to you by linuxserver
-------------------------------------,
GID/UID,
-------------------------------------,
User uid: 911,
User gid: 911,
-------------------------------------,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing… ,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 40-initialise-db: executing… ,
[cont-init.d] 40-initialise-db: exited 0.,
[cont-init.d] 99-custom-scripts: executing… ,
[custom-init] no custom files found exiting…,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
201114 21:20:19 mysqld_safe Logging to syslog.,
201114 21:20:19 mysqld_safe Starting mysqld daemon with databases from /config/databases,

  1. PIWIGO:
    Name piwigo02
    |Image|[linuxserver/piwigo:latest
    |Port configuration|0.0.0.0:45559 80/tcp|

VOLUMES
|piwago_config |/config|
|037e67b4571d4fd46473f522a2a2bc5240fd9200b04c913997edb4344efbc6ac |/pictures|

LOG:
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-install: executing… ,
[cont-init.d] 40-install: exited 0.,
[cont-init.d] 99-custom-files: executing… ,
[custom-init] no custom files found exiting…,
[cont-init.d] 99-custom-files: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.,
[s6-init] ensuring user provided files have correct perms…exited 0.,
[fix-attrs.d] applying ownership & permissions fixes…,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts…,
[cont-init.d] 01-envfile: executing… ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing… ,
usermod: no changes,
-------------------------------------,
_ (),
| | ___ _ _,
| | / | | | / \ ,
| | _
\ | | | () |,
|| |
/ || _/,
Brought to you by linuxserver,
-------------------------------------,
GID/UID,
-------------------------------------,
User uid: 911,
User gid: 911,
-------------------------------------,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 20-config: executing… ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing… ,
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-install: executing… ,
[cont-init.d] 40-install: exited 0.,
[cont-init.d] 99-custom-files: executing… ,
[custom-init] no custom files found exiting…,
[cont-init.d] 99-custom-files: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.,
[s6-init] ensuring user provided files have correct perms…exited 0.,
[fix-attrs.d] applying ownership & permissions fixes…,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts…,
[cont-init.d] 01-envfile: executing… ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing… ,
usermod: no changes,
-------------------------------------,
_ (),
| | ___ _ _,
| | / | | | / \ ,
| | _
\ | | | () |,
|| |
/ || _/,
Brought to you by linuxserver,
-------------------------------------,
GID/UID,
-------------------------------------,
User uid: 911,
User gid: 911,
-------------------------------------,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 20-config: executing… ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing… ,
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-install: executing… ,
[cont-init.d] 40-install: exited 0.,
[cont-init.d] 99-custom-files: executing… ,
[custom-init] no custom files found exiting…,
[cont-init.d] 99-custom-files: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,

Starting both containers, I access the Piwigo web interface:

“Cannot connect to server” has popping up ever since, no matter if I enter the IP-adress(:port) or the container name as Host.

Could you please tell me how to troubleshoot the issue? Where would I find more detailed logs? Am I missing something obvious?
Thanks for helping!
dejhost

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.