0.8.7d + PIA 2.4 "upgrade" process patch errors

Support for the Plugin Architecture

Moderators: Developers, Moderators

ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

BSOD2600 wrote:Is the PA 2.4 current with the latest patches? If not, its pre-patched files should be updated so they are for those who can't use a patching utility.

I Have do :

mysql -uxxxx -p xxxi < pa.sql

and the latest patch was for the version of cacti 0.8.7b.

I do after:
patch -p1 -N -F3 --dry-run < cacti-plugin-0.8.7d-PA-v2.4.diff

patching file auth_changepassword.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth_changepassword.php.rej
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.
patching file plugins/index.php
patching file plugins.php
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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, I simply overwrite the files. If you have hacked Cacti yourselves to add new features, you need to be submitting Mantis Feature requests. Otherwise, overwriting should work fine.

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?
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

TheWitness wrote:Yea, I simply overwrite the files. If you have hacked Cacti yourselves to add new features, you need to be submitting Mantis Feature requests. Otherwise, overwriting should work fine.

TheWitness
Even if I patch files without modifying them emerge me errors.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please read my tag line. Life is an adventure. You can begin yours by using Cacti :)

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?
solokron
Posts: 2
Joined: Sat Mar 21, 2009 2:29 am

Post by solokron »

Unfortunately even that does not work for plugin use. Why is this not in the standard build of Cacti in the first place? It seems pretty stupid to plugin a plugin system. If he wants to increase use and modularity it should be in the base.
TheWitness wrote:Please read my tag line. Life is an adventure. You can begin yours by using Cacti :)

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

Post by TheWitness »

That's planned for the next release. Keep in mind, we do this in our SPARE time. So, no flaming appreciated..

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?
solokron
Posts: 2
Joined: Sat Mar 21, 2009 2:29 am

Post by solokron »

Thank you.
TheWitness wrote:That's planned for the next release. Keep in mind, we do this in our SPARE time. So, no flaming appreciated..

TheWitness
greginmadison
Posts: 30
Joined: Fri Mar 07, 2008 8:58 am

Sorry to be dense, but what is the full solution to this?

Post by greginmadison »

Sorry to be dense, but I am not clear following this tread as to the full complete solution for getting rid of these error messages in my syslogs:ttpd2-prefork: PHP Notice: Use of undefined constant OPER_MODE_NATIVE - assumed 'OPER_MODE_NATIVE' in /san/www/htdocs/cacti/include/top_graph_header.php on line 9

Am I to just rerun the PIA patch, or edit the .jre file, or edit the diff file and then rerun the patch?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Take the last three "defines" from new global_constants.php an put it into yours to cope with that error
Reinhard
mupchu
Posts: 7
Joined: Fri Oct 30, 2009 7:46 pm

Post by mupchu »

I just updated, and afterwards I am getting a 401 error (unauthorized) from cacti. I updated the global.php file to point to the correct url and restarted the webserver (windows), with no sucess . . .

any advice?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests