Fatal error after installing the Plugin Architecture - Ubunu

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
ne0trace
Posts: 8
Joined: Tue Feb 24, 2009 5:42 pm

Fatal error after installing the Plugin Architecture - Ubunu

Post by ne0trace »

Hello,
After installing the PA I am having troubles using cacti. Cacti asked me if I wanted to upgrade or reinstall cacti after installing PA. I've chosen both options which sooner or later take me to a login window which asks for my username and password. But there is no field for entering a password!!!
And the page gives me the following error:

Fatal error: Call to undefined function clean_html_output() in /usr/share/cacti/site/auth_login.php on line 307

The login window looks crippled too.

Any ideas?

System: Ubuntu LTS 8.04
latest version of cacti
i've copied over cacti from the "files" dircetory as patching didn't seem to do anything

thanks
ne0trace
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

2.4 is designed for Cacti 0.8.7c and above. Don't apply full files to prior releases. It won't work.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

PA 2.4 is designed only for Cacti 0.8.7d, it will not work on 0.8.7c.

What version are you running?
ne0trace
Posts: 8
Joined: Tue Feb 24, 2009 5:42 pm

Post by ne0trace »

Oh now i realized that I don't have the newest version. I'm sorry for that. My version is 0.8.7b and I installed it through apt-get. Which would be the easiest/safest way to update?

ne0trace
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

One way you can upgrade is to download the full tar of 0.8.7d and overwrite your exsiting files. Change the settings in global.php, and then test to ensure it's working.

Once you've got this far, you should be able to either patch the PIA in, or overwrite the files.

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ne0trace
Posts: 8
Joined: Tue Feb 24, 2009 5:42 pm

Post by ne0trace »

Worked...
But I had to put a symlink for rrd as ubuntu places it under /var/lib/. It then worked like charm.

Thanks for your help
ne0trace
Wimpi
Posts: 8
Joined: Sat Oct 14, 2006 5:44 am

Post by Wimpi »

Hello,

I had the same. How did you make the sym link?

Thanks!
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

ne0trace wrote:Worked...
But I had to put a symlink for rrd as ubuntu places it under /var/lib/. It then worked like charm.

Thanks for your help
ne0trace
Odd - if you installed this from packages originally, the symlink should already be there ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Wimpi
Posts: 8
Joined: Sat Oct 14, 2006 5:44 am

Post by Wimpi »

Hello mcutting,

I upgraded Cacti like you said but now i see now graphs. Do I need a symlink or do you've got an other idea?

How do you make a symlink for rrd?

Thanks!!!
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Sounds more like an issue with your RRA directory in terms of permissions. Try chown -R www-data /usr/share/cacti/site/rra. You may also need to grant write access for the www-data account to the RRA folder.

Check permissions on /usr/share/cacti/site/rra directory - chances are only root owns it, and is allowed to write to it.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ne0trace
Posts: 8
Joined: Tue Feb 24, 2009 5:42 pm

Post by ne0trace »

Hey,
I did the following:

ln -s /var/lib/cacti/rra/ /usr/share/cacti/site/

I hope this helps

ne0trace
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests