zms and nph-zms fails to connect to db and raise 502 error

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
its_randomness
Posts: 1
Joined: Mon Mar 03, 2025 5:32 pm

zms and nph-zms fails to connect to db and raise 502 error

Post by its_randomness »

Hey,
I have a fresh 1.36.35 install on a Gentoo system. Builds fine and everything seems to work fine, UI and config -wise. I can't see any pictures though.

When web UI needs to render an image from a source, like '/zm/cgi-bin/nph-zms?scale=4&mode=single&monitor=1&auth=9cbb11781f47f2526027ddb660efb670&rand=1741023273' zoneminder errors and CGI returns 502.

When invoking /usr/libexec/zoneminder/cgi-bin/nph-zms or /usr/libexec/zoneminder/cgi-bin/zms db errors occurs:

Code: Select all

03/03/25 17:36:53.383477 zms[32656].FAT-zms.cpp/110 [No query string.]

03/03/25 17:36:53.384134 undef[32657].ERR-zm_db.cpp/60 [Can't connect to server: Access denied for user 'zmuser'@'localhost' (using password: YES)]

Db is closed
Under /var/log/zm a new log appears, named 'undef.log' containing only lines like:

Code: Select all

03/03/25 17:36:51.594814 undef[32563].ERR-zm_db.cpp/60 [Can't connect to server: Access denied for user 'zmuser'@'localhost' (using password: YES)]
03/03/25 17:36:53.384134 undef[32657].ERR-zm_db.cpp/60 [Can't connect to server: Access denied for user 'zmuser'@'localhost' (using password: YES)]
The rest of the system seems to operate. Recording, config, browsing, etc.

Any ideas as to what is wrong?
Post Reply