Piwigo Encountered a Non-Recoverable Error #2183

Closed
opened 2026-10-05 01:08:57 +02:00 by adam · 5 comments
Owner

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

**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 -->
adam closed this issue 2026-10-05 01:08:57 +02:00
Author
Owner

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 -->
Author
Owner

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 -->
Author
Owner

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 -->
Author
Owner

Thank you, yes, I tried 127.0.0.1 and also the correct IP, both do not work, so strange.

Thank you, yes, I tried 127.0.0.1 and also the correct IP, both do not work, so strange. <!-- github-comment-id:5264096027 -->
Author
Owner

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 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2183