I just did a brand new Debian 9 install, added LAMP
Then did an apt-get install cacti. - Which FAILS... "ERROR 1071 (42000) at line 1916: Specified key was too long; max key length is 1000 bytes"
to fix this error: uninstall cacti (deleting all files), delete database, and re-create database with utf-32-general.
added user 'cacti'@'localhost' with all privileges.
Re-install cacti; with apt-get install cacti;
this then fails with failed to opens stream: no such file or directory.
php fatal error: uncaught error: call to undefined function MySQL_pconnect()...
see screen shot attached...
Clearly the apt-get update, even though it installs cacti 0.8.8, isn't anywhere near ready for the current DEBAIN version.
Debian dissuades installing non apt-get packages due to dependencies...
How do I get cacti installed on Debian 9 / squeeze?
debian 9 new install fails
Moderators: Developers, Moderators
debian 9 new install fails
- Attachments
-
- fail.PNG (121.08 KiB) Viewed 1070 times
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: debian 9 new install fails
Normally I just dobtuley wrote:How do I get cacti installed on Debian 9 / squeeze?
Code: Select all
sudo apt install cacti
Please file bugs in Debian packages in the Debian bug tracker, so that we can help you there. On this forum, nobody but me is helping on Debian specific issues, so you are lucky I see your item here.
Please add your /var/log/apt/term.log, so I can see what is going on.
https://www.debian.org/Bugs/Reporting
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: debian 9 new install fails
Ah, and you second install failed because you removed /etc/cacti/debian.php which is required for cacti to function. Because this file is a configuration file, just reinstalling a package will not change it. I recommend purging cacti and installing again.
Let dbconfig-common handle database removal and creation.
Code: Select all
sudo apt purge cacti
sudo apt install cacti
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
-
- Posts: 3
- Joined: Wed Apr 17, 2013 10:54 am
Re: debian 9 new install fails
Problem with Debian Squeeze is that their current package repository version of Cacti is 0.8.8h.paulgevers wrote:Normally I just dobtuley wrote:How do I get cacti installed on Debian 9 / squeeze?but that is apperently not working for you.Code: Select all
sudo apt install cacti
Can this (easily) be upgraded to the latest 1.1.2.1?
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: debian 9 new install fails
See my signature, the 1.x branch is in the official Debian backports.amigaholic wrote: Problem with Debian Squeeze is that their current package repository version of Cacti is 0.8.8h.
Can this (easily) be upgraded to the latest 1.1.2.1?
Paul
PS. Debian 9 = stretch by the way; squeeze was Debian 6.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Who is online
Users browsing this forum: No registered users and 0 guests