Package: mysql-utilities
Version: 1.3.5-2
Severity: normal
Dear Maintainer,
I attempted to run 'mysqldiskusage' (as root, so as to have access to
the datadir). I got the following error:
# Source on localhost: ... connected.
Traceback (most recent call last):
File "/usr/bin/mysqldiskusage", line 154, in <module>
diskusage.show_database_usage(servers[0], datadir, args, options)
File "/usr/lib/python2.7/dist-packages/mysql/utilities/command/diskusage.py",
line 547, in show_database_usage
include_empty or do_all)
File "/usr/lib/python2.7/dist-packages/mysql/utilities/command/diskusage.py",
line 391, in _build_db_list
db_total = int(row[1]) + misc_files
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
* What led up to the situation?
running 'mysqldiskusage' without any arguments at the root command prompt
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
The error message referenced above
* What outcome did you expect instead?
The output of the command.
Note that it does run as expected as a non-root user, with the warning message:
NOTICE: Your user account does not have read access to the datadir. Data sizes
will be calculated and actual file sizes may be omitted. Some features may be
unavailable.
-- System Information:
Debian Release: 8.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages mysql-utilities depends on:
ii python 2.7.9-1
ii python-mysql.connector 1.2.3-2
mysql-utilities recommends no packages.
mysql-utilities suggests no packages.
-- no debconf information