Error prior to installing plugin architecture v2.4 on 0.8.7d
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Mon Mar 02, 2009 4:45 pm
Error prior to installing plugin architecture v2.4 on 0.8.7d
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.
[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.
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:
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.
I had success doing the following:
Code: Select all
# patch -p1 -N -F3 --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff
Don Q.
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
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
PA2.4
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=
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 1495 times
Last edited by nationals on Sun Apr 12, 2009 5:49 am, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I just posted the same thing. I'm sure you have it right.
TheWitness
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?
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?
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
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
Re: PA2.4
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
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!
when I finished patch the plugin, I canot access my cacti!!!
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!
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!
Re: PA2.4
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.
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!
Re: when I finished patch the plugin, I canot access my cact
set the folder /cacti/ permission to the user that running the www/apache.
the simple is set : chmod -R 777 /cacti
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!
Re: PA2.4
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!
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
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
thank you for your help.
I did patch for the 0.8.7d before install the PA。
I will try it ,and get result
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
Who is online
Users browsing this forum: No registered users and 0 guests