Problems Patches

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Problems Patches

Post by Ilyass »

Hello world,


I have at present the cacti-0.8.7e version. I would like to pass on the version 0.8.7g.For it, I made this opération:


wget http://www.cacti.net/downloads/patches/ ... vate.patch
wget http://www.cacti.net/downloads/patches/ ... view.patch
wget http://www.cacti.net/downloads/patches/ ... tput.patch
wget http://www.cacti.net/downloads/patches/ ... tion.patch
wget http://www.cacti.net/downloads/patches/ ... arse.patch
wget http://www.cacti.net/downloads/patches/ ... ping.patch
wget http://www.cacti.net/downloads/patches/ ... rval.patch


patch -p1 -N < data_source_deactivate.patch
patch -p1 -N < graph_list_view.patch
patch -p1 -N < html_output.patch
patch -p1 -N < ldap_group_authenication.patch
patch -p1 -N < script_server_command_line_parse.patch
patch -p1 -N < ping.patch
patch -p1 -N < poller_interval.patch


I have many errors:

Hunk #1 FAILED at 38
Hunk #2 FAILED at 92
Hunk #1 FAILED at 143
Hunk #2 FAILED at 184
Hunk #1 FAILED at 222

1 out of a hunk ignored --saving rejects to file lib/data_query.php.rej
2 out of the hunk FAILED --saving rejects to file data_sources.php.rej
1 out of the hunk FAILED --saving rejects to file lib/ldap.php.rej
....

Please, I would like to know how to resolve this problem ? Can anyone help me.


Thanks for your answers



ilyass
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Do you use PIA?
R.
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Post by Ilyass »

Hello,


excuse me but what is a PIA ?


Thanks
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Post by Ilyass »

I didn't use a PIA


I have a cacti-0.8.7e version and to pass on the version 0.8.7g I made patches as specifies it the documentation.



Thanks
ilyass
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ok, sorry. Iwas reading your first post too fast.

Before applying the pathes (which are patches BASED ON 087g) you will have to install 087g code first! Then, as a next step, apply the patches. See e.g. http://docs.cacti.net/manual:087:1_inst ... ding_cacti
R.
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Post by Ilyass »

OK Thanks for the explanation and the link. But if I make an Upgrading There is a risk of losing graphs ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ilyass wrote:OK Thanks for the explanation and the link. But if I make an Upgrading There is a risk of losing graphs ?
Usually (aka: if you don't make any mistake) no
If in doubt, copy your stuff and perform an upgrade on the copy just to exercise. To be honest, I do this ALWAYS when upgrading (but that's due to half a dozen custom patches)
R.
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Post by Ilyass »

ok Thanks,


there is a global variable in the file "global.php" is called "$ config ['url_path']. This variable does not exist in version 0.8.7g.



Are anyone know how this variable is redefined ("url_path") in version 0.8.7g. Thank you for your help.




Ilyass
Zombie
Posts: 13
Joined: Sat Sep 11, 2010 9:56 pm

Post by Zombie »

You don't have to touch global.php when installing PIA 2.8 any change have to be made on config.php where you will find $url_path = "//";

you can refer back to this link for more explanation

http://forums.cacti.net/about38492-0-asc-45.html
Ilyass
Posts: 6
Joined: Tue Sep 07, 2010 8:09 am

Re: Problems Patches

Post by Ilyass »

ok

All is ok. Thank for your help. Good day


ilyass
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest