Skip to content

During install/upgrade, database tests are not performed correctly #3055

@eschoeller

Description

@eschoeller

I'm running through new installs on two remote pollers I'm spinning up.

All of the "test connection" checks pass, but the installer bombs out at the end with this in the log:

2019/10/27 21:58:52 - INSTALL: always: Installation was started at 2019-10-28 03:57:47, completed at 2019-10-28 03:58:52
2019/10/27 21:58:52 - INSTALL: always: Failed to connect database
2019/10/27 21:58:52 - INSTALL: always: Finished INSTALL Process for v1.2.7 

The main cacti server has dozens of these in it's mysql log:

2019-10-27 22:01:07 83390 [Warning] Access denied for user 'apache'@'xyz.colorado.edu' (using password: YES)
2019-10-27 22:01:07 83390 [Warning] Access denied for user 'apache'@'xyz.colorado.edu' (using password: YES)
2019-10-27 22:01:07 83390 [Warning] Access denied for user 'apache'@'xyz.colorado.edu' (using password: YES)
2019-10-27 22:01:07 83390 [Warning] Access denied for user 'apache'@'xyz.colorado.edu' (using password: YES

Clearly I have messed up my GRANT directives on the main data collector's database (it's very confusing to get these right in a remote poller setup). But regardless, whatever the "test connection" functions are doing earlier in the installer, they aren't fully verifying that the connection actually works and then the installer bombs out at a complete dead-end. the only way back is to dump the remote poller database and start the installer all over again.

Metadata

Metadata

Assignees

Labels

bugUndesired behaviourresolvedA fixed issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions