Skip to content

server: Mysql auth with root doesn't work and the real error is hidden #29

@OlliV

Description

@OlliV

username: root
password:

I couldn't auth with root with nor without a password, the following error was printed.

ERRO[2019-03-23 13:07:41] [Lifetime Mngt Thread]: Failed to get all mitigation from DB
ERRO[2019-03-23 13:07:41] [Lifetime Mngt Thread]: Failed to get all Aliases from DB

For some reason alias.go doesn't print the auth error, even though there is a log.Printf line but I was able to get the real error by adding withError to active_acl_alias.go. The error was:

error="Error 1698: Access denied for user 'root'@'localhost'"

I don't think the auth issue with root is critical as nobody should do that anyway. However it seems the error logging is somehow broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions