Patching issues (cacti 0.8.7d on ubuntu 9.10)

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
alendra
Posts: 4
Joined: Wed Jan 27, 2010 6:09 am

Patching issues (cacti 0.8.7d on ubuntu 9.10)

Post by alendra »

Hey there, I just made a clean install of cacti (from apt-get) on Ubuntu 9.10, so I got cacti 0.8.7d (not latest, but enough for my needs)
I am now trying to implement PA (2.4 for this cacti version) following this guide http://www.artiflo.net/2009/03/cacti-al ... gin-thold/ (yeah it's in french, but commands don't change, do they ? :))

I got no problem until the dry run, where I get 3 errors, one "fixed" by adding the -F3
my patch file is located in /usr/share/cacti/site, and here's the command I've been using for the dryrun
/usr/share/cacti/site$ sudo patch -p1 -F 3 -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 succeeded at 175 with fuzz 3.
patching file include/global_form.php
patching file include/global.php
Hunk #3 FAILED at 194.
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1186 (offset 1 line).
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

ps : I did add
define('OPER_MODE_NATIVE', 0);
define('OPER_MODE_RESKIN', 1);
define('OPER_MODE_IFRAME_NONAV', 2);
in my include/global_constants.php


ps 2 : I could not find the line
$config['url_path'] = '/cacti/';
in the include/global.php
my guess is this line appears after the file has been patched ...

Any help will be appreciated :)
alendra
Posts: 4
Joined: Wed Jan 27, 2010 6:09 am

Post by alendra »

I just noticed that I didn't copy the files from "files-0.8.7d" folder
although after I did ... well see for yourselves

patching file auth_changepassword.php
Hunk #1 succeeded at 59 with fuzz 3.
patching file auth_login.php
Hunk #1 succeeded at 212 with fuzz 3.
Hunk #2 FAILED at 264.
Hunk #3 succeeded at 327 with fuzz 3.
1 out of 3 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file data_sources.php
Hunk #1 succeeded at 44 with fuzz 3.
Hunk #2 FAILED at 404.
Hunk #3 FAILED at 538.
Hunk #4 succeeded at 685 with fuzz 3.
Hunk #5 FAILED at 979.
Hunk #6 succeeded at 1313 with fuzz 3.
Hunk #7 FAILED at 1342.
4 out of 7 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
Hunk #1 succeeded at 44 with fuzz 3.
patching file graph.php
Hunk #1 succeeded at 98 with fuzz 3.
Hunk #2 succeeded at 213 with fuzz 3.
Hunk #3 succeeded at 246 with fuzz 3.
patching file graphs_new.php
Hunk #1 FAILED at 479.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file graphs.php
Hunk #1 succeeded at 45 with fuzz 3.
Hunk #2 FAILED at 362.
Hunk #3 succeeded at 506 with fuzz 3.
1 out of 3 hunks FAILED -- saving rejects to file graphs.php.rej
patching file host.php
Hunk #1 succeeded at 44 with fuzz 3.
Hunk #2 succeeded at 311 with fuzz 3.
Hunk #3 succeeded at 449 with fuzz 3.
Hunk #4 succeeded at 542 with fuzz 3.
Hunk #5 FAILED at 654.
Hunk #6 succeeded at 1116 with fuzz 3.
1 out of 6 hunks FAILED -- saving rejects to file host.php.rej
patching file include/auth.php
Hunk #1 succeeded at 31 with fuzz 3.
Hunk #2 FAILED at 78.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 94.
3 out of 4 hunks FAILED -- saving rejects to file include/auth.php.rej
patching file include/bottom_footer.php
Hunk #1 succeeded at 21 with fuzz 3.
Hunk #2 succeeded at 35 with fuzz 3.
patching file include/global_arrays.php
Hunk #1 succeeded at 22 with fuzz 3.
Hunk #2 succeeded at 642 with fuzz 3.
patching file include/global_constants.php
Hunk #1 succeeded at 175 with fuzz 3.
patching file include/global_form.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 1185.
2 out of 2 hunks FAILED -- saving rejects to file include/global_form.php.rej
patching file include/global.php
Hunk #1 succeeded at 41 with fuzz 3.
Hunk #2 FAILED at 91.
Hunk #3 FAILED at 194.
Hunk #4 succeeded at 219 with fuzz 3.
2 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1185 with fuzz 3.
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
patching file include/top_graph_header.php
Hunk #1 succeeded at 25 with fuzz 3.
Hunk #2 FAILED at 51.
Hunk #3 FAILED at 107.
Hunk #4 FAILED at 119.
Hunk #5 FAILED at 127.
Hunk #6 FAILED at 156.
5 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 79.
Hunk #3 FAILED at 87.
Hunk #4 FAILED at 100.
4 out of 4 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
Hunk #1 succeeded at 25 with fuzz 3.
Hunk #2 succeeded at 48 with fuzz 3.
patching file lib/api_device.php
Hunk #1 succeeded at 132 with fuzz 3.
patching file lib/auth.php
Hunk #1 succeeded at 122 with fuzz 3.
Hunk #2 succeeded at 155 with fuzz 3.
patching file lib/functions.php
Hunk #1 succeeded at 1640 with fuzz 3.
Hunk #2 FAILED at 1653.
Hunk #3 succeeded at 1732 with fuzz 3.
1 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 661.
Hunk #2 succeeded at 678 with fuzz 3.
Hunk #3 FAILED at 699.
2 out of 3 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 succeeded at 86 with fuzz 3.
Hunk #2 FAILED at 143.
Hunk #3 succeeded at 177 with fuzz 3.
Hunk #4 FAILED at 263.
Hunk #5 succeeded at 702 with fuzz 3.
Hunk #6 FAILED at 713.
Hunk #7 FAILED at 742.
Hunk #8 FAILED at 763.
5 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/plugins.php.rej
patching file lib/poller.php
Hunk #1 FAILED at 324.
1 out of 1 hunk FAILED -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Hunk #1 succeeded at 557 with fuzz 3.
Hunk #2 succeeded at 1392 with fuzz 3.
Hunk #3 FAILED at 1407.
1 out of 3 hunks FAILED -- saving rejects to file lib/rrd.php.rej
patching file lib/variables.php
Hunk #1 succeeded at 183 with fuzz 3.
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
Hunk #1 succeeded at 73 with fuzz 3.
Hunk #2 succeeded at 263 with fuzz 3.
Hunk #3 FAILED at 407.
Hunk #4 succeeded at 458 with fuzz 3.
1 out of 4 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
Hunk #1 FAILED at 72.
Hunk #2 succeeded at 420 with fuzz 3.
Hunk #3 succeeded at 463 with fuzz 3.
Hunk #4 succeeded at 915 with fuzz 3.
Hunk #5 succeeded at 943 with fuzz 3.
Hunk #6 FAILED at 957.
2 out of 6 hunks FAILED -- saving rejects to file user_admin.php.rej
patching file utilities.php
Hunk #1 FAILED at 129.
Hunk #2 succeeded at 1645 with fuzz 3.
1 out of 2 hunks FAILED -- saving rejects to file utilities.php.rej

... Kinda lost there

edit : after this, the website doesn't work anymore, so I reverted back to old files.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests