PA Issues With Patching

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
tetu_024
Posts: 49
Joined: Wed Jun 20, 2007 11:26 am

PA Issues With Patching

Post by tetu_024 »

Good Morning,

I have the following issue when i comes to patching cacti with PA.

patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
Hunk #1 succeeded at 98 (offset -2 lines).
Hunk #2 succeeded at 213 (offset -2 lines).
Hunk #3 succeeded at 246 (offset -2 lines).
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 643 (offset -4 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 128.
Hunk #6 FAILED at 156.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/auth.php
patching file lib/functions.php
patching file lib/html_form.php
Hunk #1 succeeded at 655 (offset -67 lines).
Hunk #2 succeeded at 672 (offset -67 lines).
Hunk #3 succeeded at 693 (offset -67 lines).
patching file lib/html.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php


Regards

Etienne Vella
User avatar
iNeo
Posts: 35
Joined: Thu Nov 03, 2005 7:29 am

Post by iNeo »

I have the same, I upgraded CactiEZ from 8.7c to 8.7e and when
I patched the Cacti tree with plugins 8.7e I also got into problems

As far I as know it is related to:

Code: Select all

patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 128.
Hunk #6 FAILED at 156.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
Now I receive the following message when opening a plugin:

Code: Select all

Notice: Undefined index: action in /var/www/html/include/top_graph_header.php on line 151
Can somebody help us?
User avatar
iNeo
Posts: 35
Joined: Thu Nov 03, 2005 7:29 am

Post by iNeo »

Hi,

Found a solutions: copy top_graph_header.php from the plugin architect files directory to the include directory.

Code: Select all

cp cacti-plugin-arch/files-0.8.7e/include/top_graph_header.php to
include/top_graph_header.php
Grtz
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Use the full files.

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?
User avatar
iNeo
Posts: 35
Joined: Thu Nov 03, 2005 7:29 am

Post by iNeo »

TheWitness wrote:Use the full files.

TheWitness
Hi TheWitness,

What do you mean by that? I used the procedure as descibed in the readme file in the PIA directory.

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

Post by TheWitness »

If you untar the PIA, it includes the full files as well as patch files. Of course, they are designed for 0.8.7e only. I think 2.6 includes all or most of the important patches from the main web site too.

So, it's a simple copy exercise.

Code: Select all

cp -rp <pia_location>/files-0.8.7e/* <cacti_webroot>
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?
User avatar
rukshankb
Posts: 10
Joined: Mon Sep 07, 2009 2:17 am
Location: Colombo, Sri Lanka
Contact:

Post by rukshankb »

Thanks! It works!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest