Unable to configure Cacti database on install (no MySQL root password)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbconfig-common (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cacti
Short version:
The Cacti install should set up the database by prompting the user for database and database user information, rather than a) requiring them to research/already know about dbconfig-common, and b) fail to install the database because of not asking for the MySQL root password.
Long version:
I ran `sudo apt-get install cacti` and the system installed MySQL (with root password prompt) and other dependencies, but when it gets to configuring cacti, I get an error "No database user specified.". To continue, I'm given a choice of:
abort
retry
retry (skip questions)
ignore
Via Google I figure out that I need to set some database connection information in /etc/dbconfig-
I'm puzzled that there's no mention of the database admin password, but I'll try and carry on. I get no obvious Google hits around ucf, root, and password.
I re-read /usr/share/
Retrying the database installation step, I now get the error:
"ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"
Obviously dbconfig-common is not getting into MySQL without a password, and is not asking me for the password.
Maybe I'm missing some "commonly known" approach to setting it up, but there's nothing in the processes telling me how to get the automatic install to work.
In the end I chose "abort", and created the database manually, as described in /usr/share/
ProblemType: Bug
Architecture: i386
Date: Mon Feb 15 13:45:03 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100128)
Package: cacti 0.8.7e-2
PackageArchitec
ProcEnviron:
LANG=en_GB.utf8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cacti
Uname: Linux 2.6.32-12-generic i686
Changed in dbconfig-common (Ubuntu): | |
status: | New → Confirmed |
affects: | cacti (Ubuntu) → dbconfig-common (Ubuntu) |
affects: | dbconfig-common (Ubuntu) → cacti (Ubuntu) |
Changed in dbconfig-common (Ubuntu): | |
status: | New → Confirmed |
affects: | cacti (Ubuntu) → dbconfig-common (Ubuntu) |
I'll second that.
Started installing cacti trough Ubuntu Software Center, and it got stuck at 89%, with the "Debconf on ubuntu" configuration screen.
First screen I got a checkbox for "Configure database for cacti with dbconfig-comon?"
I'm a noob, so yes, please.
[Forward]
Next step for database installation:
List with
[abort]
[retry]
[retry (skip questions)]
[ignore]
Well.. retry is results in an endless loop, as it shows the previous screen.
I'm left with [abort] and [ignore].
I still haven't figured out what to do.