Error message:
Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 52
Warning: Attempt to read property "errno" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Warning: Attempt to read property "error" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Piwigo encountered a non recoverable error
[mysql error ]
php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again
Environment:
Piwigo 16.2.0
Installed on January 10, 2026, 1 week 4 days ago
Operating system: Linux (container)
PHP: 8.4.16
MySQL: 11.8.5-MariaDB-ubu2404
Graphics Library: External ImageMagick 7.1.2-8
Cache size 593.93 Mo
Plugins:
Admin Tools
Advanced Menu Manager
Community
Grum Plugins Classes.3
LocalFiles Editor
meta
No Stats For Robots
Perso Footer
Quick Fav
Read Metadata
RV Thumb Scroller
Smilies Support
VideoJS
**Error message:**
Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 52
Warning: Attempt to read property "errno" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Warning: Attempt to read property "error" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Piwigo encountered a non recoverable error
[mysql error ]
php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again
#1 my_error /var/www/html/piwigo/include/common.inc.php(125)
#2 include_once /var/www/html/piwigo/index.php(11)
**Environment:**
Piwigo 16.2.0
Installed on January 10, 2026, 1 week 4 days ago
Operating system: Linux (container)
PHP: 8.4.16
MySQL: 11.8.5-MariaDB-ubu2404
Graphics Library: External ImageMagick 7.1.2-8
Cache size 593.93 Mo
**Plugins:**
Admin Tools
Advanced Menu Manager
Community
Grum Plugins Classes.3
LocalFiles Editor
meta
No Stats For Robots
Perso Footer
Quick Fav
Read Metadata
RV Thumb Scroller
Smilies Support
VideoJS
<!-- github-sync-id:3840655222 -->
for the record, the issue just fixed itself suddenly after waiting for a few minutes and refreshing, but i worry about this happening when im not actively on to monitor.
for the record, the issue just fixed itself suddenly after waiting for a few minutes and refreshing, but i worry about this happening when im not actively on to monitor.
<!-- github-comment-id:3781879908 -->
Suddenly having the same problem, came out of nowhere, same configuration. I tried everything, I even restartet the server, no luck.
How can I fix this?
Thank you for helping ! Oliver
Suddenly having the same problem, came out of nowhere, same configuration. I tried everything, I even restartet the server, no luck.
How can I fix this?
Thank you for helping ! Oliver
<!-- github-comment-id:5263718053 -->
I don't know what you have in your local/config/database.inc.php but if you have a hostname in the $conf['db_host'] field, try an IP address instead.
I don't know what you have in your `local/config/database.inc.php` but if you have a hostname in the `$conf['db_host']` field, try an IP address instead.
<!-- github-comment-id:5263813908 -->
Just found a solution. I saw in "docker inspect" that there are DNS-Names configured, so I used "PIWIGO_DB:3306", this worked.
Just found a solution. I saw in "docker inspect" that there are DNS-Names configured, so I used "PIWIGO_DB:3306", this worked.
<!-- github-comment-id:5264189188 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Error message:
Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 52
Warning: Attempt to read property "errno" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Warning: Attempt to read property "error" on null in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 839
Piwigo encountered a non recoverable error
[mysql error ]
php_network_getaddresses: getaddrinfo for piwigo-db failed: Try again
#1 my_error /var/www/html/piwigo/include/common.inc.php(125)
#2 include_once /var/www/html/piwigo/index.php(11)
Environment:
Piwigo 16.2.0
Installed on January 10, 2026, 1 week 4 days ago
Operating system: Linux (container)
PHP: 8.4.16
MySQL: 11.8.5-MariaDB-ubu2404
Graphics Library: External ImageMagick 7.1.2-8
Cache size 593.93 Mo
Plugins:
Admin Tools
Advanced Menu Manager
Community
Grum Plugins Classes.3
LocalFiles Editor
meta
No Stats For Robots
Perso Footer
Quick Fav
Read Metadata
RV Thumb Scroller
Smilies Support
VideoJS
for the record, the issue just fixed itself suddenly after waiting for a few minutes and refreshing, but i worry about this happening when im not actively on to monitor.
Suddenly having the same problem, came out of nowhere, same configuration. I tried everything, I even restartet the server, no luck.
How can I fix this?
Thank you for helping ! Oliver
I don't know what you have in your
local/config/database.inc.phpbut if you have a hostname in the$conf['db_host']field, try an IP address instead.Thank you, yes, I tried 127.0.0.1 and also the correct IP, both do not work, so strange.
Just found a solution. I saw in "docker inspect" that there are DNS-Names configured, so I used "PIWIGO_DB:3306", this worked.