Hi all... Cacti noob here, on about Day #3 of trying to get my brain around this cool tool!
I was having a heck of a time trying to patch 0.8.6c running on a Win2K server. I could not find any reference to the problem here, so I figured I would post in case it might help someone in the future (someone like... me next time a patch comes out and I forgot what I did!).
Basically, I was copying the script off of the Patch page, opening a DOS window on the Cacti server, switching to my c:\cacti folder, and pasting the script into the DOS window.
It would download fine, but barf when it came time to actually apply the patch. I was getting the following response on all 3 patches I tried:
C:\cacti>patch -p1 -N < rrd_fetch_negative_numbers.patch
patching file `lib/rrd.php'
Assertion failed: hunk, file patch.c, line 321
abnormal program termination
After doing some digging, I found that this is a problem with the file patches posted on cacti.net only having a Line Feed character at the end of each line and not a Carriage Return.
I opened up each of the patches in WordPad, placed the cursor at the end of each line, drug to the right with the mouse button pressed, and released. A seemingly blank character or two would be highlighted at the end of the line. With those highlighted, I hit the Enter key.
Had to repeat this for every line in the patch. When done though, I saved, re-ran the patch, and this time it completed without errors. Worked on all three patches, actually. I assume I've got a flaky version of "patch"... Honestly not even sure where it came from! Going to try to find a more stable one.
So......... Just in case someone else that is Linux-challenged like myself comes up with that problem, that's what's behind it and at least one way to remedy it (albiet ugly!)
Happy graphing,
Jason
Patch problems in Windows
Moderators: Developers, Moderators
Re: Patch problems in Windows
Hi Jason,jas0420 wrote:I assume I've got a flaky version of "patch"... Honestly not even sure where it came from! Going to try to find a more stable one.
Happy graphing,
Jason
same is here. I searched for newer/other Version of "patch" but I did not find one . If you have more success could you please share it.
Thanks, André
For my ally is the network.
And a powerfull ally is it.
You must feel the Network around you ...
And a powerfull ally is it.
You must feel the Network around you ...
-
- Posts: 4
- Joined: Tue Mar 31, 2009 3:11 am
same problem
cant install any patch from Official Patches [0.8.7d]
Official Patches [0.8.7d]
---- output --------------------------
D:\cacti>patch -p1 -N < graph_search.patch
patching file `lib/html_tree.php'
Assertion failed: hunk, file patch.c, line 321
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------------------
cant install any patch from Official Patches [0.8.7d]
Official Patches [0.8.7d]
---- output --------------------------
D:\cacti>patch -p1 -N < graph_search.patch
patching file `lib/html_tree.php'
Assertion failed: hunk, file patch.c, line 321
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------------------
I suggest Windows users use the pre-patched files.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest