Error prior to installing plugin architecture v2.4 on 0.8.7d

Support for the Plugin Architecture

Moderators: Developers, Moderators

neighbahood
Posts: 1
Joined: Mon Mar 02, 2009 4:45 pm

Error prior to installing plugin architecture v2.4 on 0.8.7d

Post by neighbahood »

Hello I have a fresh installation of Cacti 0.8.7d on CentOS and I ran into an error when I ran the following prior to installing the plugin architecture.

[user@cacti]# patch -p1 -N --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
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
patching file include/global_constants.php
Hunk #1 FAILED at 175.
1 out of 1 hunk FAILED -- saving rejects to file include/global_constants.php.rej
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
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
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

I only found one hit when trying to search for the error.

http://forums.cacti.net/post-155711.html

Does anyone have any insight into what this error means? I'm not sure if I should go ahead and run the real patch.

Thanks in advance.
d0nni3q
Posts: 19
Joined: Mon Feb 16, 2009 2:26 pm
Location: Pittsburgh, PA

Post by d0nni3q »

I had the same problem when downloading the Plugin Architecture from http://mirror.cactiusers.org/downloads/ ... A-v2.4.zip.

I had success doing the following:

Code: Select all

# patch -p1 -N -F3 --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
Adding the "-F3" gave the patch command more fuzz to find the lines to change. By default fuzz is 2, which does not appear to be enough for global_constraints.php


Don Q.
jmoorse
Posts: 2
Joined: Sat Mar 07, 2009 6:24 pm

Post by jmoorse »

Sometimes this patch will mangle your relative paths.

Check in include/global.php that the definition:

$config['url_path'] = '/cacti/';

Matches the virtual directory you use in apache.

Mine was reset to:
$config['url_path'] = '/';

Changing it to above fixed the relative link issues, although the PA2.4 plugin never did install. Stay tuned

Cordially,
Jeff Moorse
jmoorse@gmail.com
jmoorse
Posts: 2
Joined: Sat Mar 07, 2009 6:24 pm

Post by jmoorse »

Ahhh, imported the pa.sql file and checked plugin mgmt under user management and it works!!!!!!
Cordially,
Jeff Moorse
jmoorse@gmail.com
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

PA2.4

Post by nationals »

modify!
fix:
1. patch 175 err.
2. plugin page showing right top icons.

test and report me!

test passed on debian5, cacti 0.8.7d and PA2.4!

the step is on:

http://forums.cacti.net/viewtopic.php?t ... highlight=
Attachments
cacti-plugin-0.8.7d-PA-v2.4.zip
(209.4 KiB) Downloaded 1496 times
Last edited by nationals on Sun Apr 12, 2009 5:49 am, edited 1 time in total.
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Post by nationals »

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

Post by TheWitness »

I just posted the same thing. :) I'm sure you have it right.

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?
cwgueco
Posts: 1
Joined: Mon Mar 30, 2009 9:12 am

Post by cwgueco »

Hi nationals,

Thanks for the update. So far no errors on the patch dry run:

root@xxxxxx:~/cacti-0.8.7d# patch -p1 -N --dry-run < ../cacti-plugin-0.8.7d-PA-v2.4/cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
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
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
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
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


We'll see when we compile next
joyssue
Posts: 25
Joined: Tue Feb 27, 2007 4:32 am

Re: PA2.4

Post by joyssue »

root@ubuntusv804:/var/www/cacti# patch -p1 -N --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
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
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
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
patching file lib/html.php
Hunk #2 FAILED at 143.
1 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
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
root@ubuntusv804:/var/www/cacti#



os:ubuntu8.04


nationals wrote:modify!
fix:
1. patch 175 err.
2. plugin page showing right top icons.

test and report me!

test passed on debian5, cacti 0.8.7d and PA2.4!
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

when I finished patch the plugin, I canot access my cacti!!!

Post by trungtano »

Hi all!
I'm new cacti user.
I'm install cacti 0.8.7 on centOS5 it running ok until I'm patch the plugin, it doesn't work and the error is:

Forbidden

You don't have permission to access /cacti/index.php on this server.
Apache/2.2.3 (CentOS) Server at 172.24.3.30 Port 80


when i try to open my cacti page

Somebody help me?
Thanks you very much!
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Re: PA2.4

Post by nationals »

does the /var/www/cacti unzip from the cacti-0.87d?
or does it install from system?

It seems that it is 0.87b if it install with system.
joyssue wrote:root@ubuntusv804:/var/www/cacti# patch -p1 -N --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
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
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
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
patching file lib/html.php
Hunk #2 FAILED at 143.
1 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
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
root@ubuntusv804:/var/www/cacti#



os:ubuntu8.04


nationals wrote:modify!
fix:
1. patch 175 err.
2. plugin page showing right top icons.

test and report me!

test passed on debian5, cacti 0.8.7d and PA2.4!
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Re: when I finished patch the plugin, I canot access my cact

Post by nationals »

set the folder /cacti/ permission to the user that running the www/apache.

the simple is set : chmod -R 777 /cacti
trungtano wrote:Hi all!
I'm new cacti user.
I'm install cacti 0.8.7 on centOS5 it running ok until I'm patch the plugin, it doesn't work and the error is:

Forbidden

You don't have permission to access /cacti/index.php on this server.
Apache/2.2.3 (CentOS) Server at 172.24.3.30 Port 80


when i try to open my cacti page

Somebody help me?
Thanks you very much!
joyssue
Posts: 25
Joined: Tue Feb 27, 2007 4:32 am

Re: PA2.4

Post by joyssue »

unzip to /var/www/cacti from cacti-0.8.7d.tar.gz
nationals wrote:does the /var/www/cacti unzip from the cacti-0.87d?
or does it install from system?

It seems that it is 0.87b if it install with system.
joyssue wrote:root@ubuntusv804:/var/www/cacti# patch -p1 -N --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
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
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
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
patching file lib/html.php
Hunk #2 FAILED at 143.
1 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
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
root@ubuntusv804:/var/www/cacti#



os:ubuntu8.04


nationals wrote:modify!
fix:
1. patch 175 err.
2. plugin page showing right top icons.

test and report me!

test passed on debian5, cacti 0.8.7d and PA2.4!
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Post by nationals »

joyssue,

Have you patch for the cacti 0.8.7d before install the PA?

If you do, I will like this.

so you can just install the PA and then patch the 0.8.7d.
Try! I have never test.

I am doing a new one that include the cacti 0.8.7d patch.

http://www.cacti.net/download_patches.php
joyssue
Posts: 25
Joined: Tue Feb 27, 2007 4:32 am

Post by joyssue »

thank you for your help.
I did patch for the 0.8.7d before install the PA。

I will try it ,and get result
nationals wrote:joyssue,

Have you patch for the cacti 0.8.7d before install the PA?

If you do, I will like this.

so you can just install the PA and then patch the 0.8.7d.
Try! I have never test.

I am doing a new one that include the cacti 0.8.7d patch.

http://www.cacti.net/download_patches.php
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests