#1 2021-01-31 03:30:02

naser
Member
2021-01-31
2

Piwigo encountered a non recoverable error

Hello/Hi/Greetings,

(I turned onn my system today and got this error can you please help?

Warning: mysqli::__construct(): (HY000/2002): Connection refused in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 52

Warning: my_error(): Couldn't fetch mysqli in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 856

Warning: my_error(): Couldn't fetch mysqli in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 856
Piwigo encountered a non recoverable error
[mysql error ]
Can't connect to server

#1    my_error /config/www/gallery/include/common.inc.php(113)
#2    include_once /config/www/gallery/index.php(11)



)

(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])

Piwigo URL: http://

Offline

 

#2 2021-01-31 03:37:25

ckayfish
Member
2021-01-25
53

Re: Piwigo encountered a non recoverable error

Looks like it can’t connect to the database.


--- devOps engineer; sometimes coder. I make your apps run with 99.999% uptime ---

Offline

 

#3 2021-01-31 03:37:33

erAck
Only trying to help
2015-09-06
2235

Re: Piwigo encountered a non recoverable error

Make sure the db_host entry in local/config/database.inc.php points to the correct server (hostname or IP).
Also, searching the forum for (HY000/2002): Connection refused may reveal relevant topics.


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

Offline

 

#4 2021-01-31 03:41:14

naser
Member
2021-01-31
2

Re: Piwigo encountered a non recoverable error

I have Piwigo installed on docket/portainer.
How would I access the file to edit the file?

Offline

 

#5 2021-01-31 04:17:42

ckayfish
Member
2021-01-25
53

Re: Piwigo encountered a non recoverable error

@naser, did you not mount a volume to your container to store config information? That can be edited outside the container, but chances are this is going to keep happening unless you are familiar with your docker network configuration. If you didn't specify a mounted volume it should still create one which can be accessed from outside, but easiest to access from inside. You can use a docker commend to ender the container from your shell, or in Portainer go to the container and view the ">_ Console"


--- devOps engineer; sometimes coder. I make your apps run with 99.999% uptime ---

Offline

 

#6 2024-10-26 15:00:57

rhh
Member
2024-10-26
3

Re: Piwigo encountered a non recoverable error

The problem I'm facing is the same as yours. Restarting the mysql library can fix it, but there's a chance this error might pop up again every few hours. Have you figured out a solution for this issue yet? And do you know why it keeps happening?

Offline

 

#7 2025-03-24 12:17:57

rhh
Member
2024-10-26
3

Re: Piwigo encountered a non recoverable error

Maybe there are too many pictures, the master did not update, and finally updated the theme to fix it

Offline

 

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact