Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal division by zero at /usr/bin/mysqltuner line 6099 #715

Closed
chriscroome opened this issue Aug 24, 2023 · 2 comments
Closed

Illegal division by zero at /usr/bin/mysqltuner line 6099 #715

chriscroome opened this issue Aug 24, 2023 · 2 comments

Comments

@chriscroome
Copy link

Using the Debian Bookworm version of mysqltuner, 1.9.9, which is currently the latest version, in a Docker container via Molecule run using GitLab CI, results in this failure:

fatal: [localhost]: FAILED! => 
    changed: false
    cmd:
    - mysqltuner
    - --json
    - --cvefile=/usr/share/mysqltuner/vulnerabilities.csv
    delta: '0:00:15.420839'
    end: '2023-08-24 08:26:59.018572'
    failed_when_result: true
    invocation:
        module_args:
            _raw_params: mysqltuner --json --cvefile=/usr/share/mysqltuner/vulnerabilities.csv
            _uses_shell: false
            argv: null
            chdir: null
            creates: null
            executable: null
            removes: null
            stdin: null
            stdin_add_newline: true
            strip_empty_ends: true
    msg: non-zero return code
    rc: 255
    start: '2023-08-24 08:26:43.597733'
    stderr: |-
        Illegal division by zero at /usr/bin/mysqltuner line 6099 (#1)
            (F) You tried to divide a number by 0.  Either something was wrong in
            your logic, or you need to put a conditional in to guard against
            meaningless input.
        Uncaught exception from user code:
                Illegal division by zero at /usr/bin/mysqltuner line 6099.
                main::mysql_innodb() called at /usr/bin/mysqltuner line 6843
    stderr_lines: <omitted>
    stdout: ''
    stdout_lines: <omitted>

MariaDB is running in the container, any suggestions regarding how I could try to debug this?

@jmrenouard
Copy link
Collaborator

Release v2.2.12 published:
https://github.com/major/MySQLTuner-perl/releases/tag/v2.2.12

This version will fix this issue

@jmrenouard
Copy link
Collaborator

Thanks @chriscroome for reporting this issue

chriscroome added a commit to webarch-coop/ansible-role-mariadb that referenced this issue Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants