No Graphs - 'PHP has encountered an Access Violation at '

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Satch
Posts: 3
Joined: Thu Jan 04, 2007 1:14 am
Location: Gold Coast, Australia

No Graphs - 'PHP has encountered an Access Violation at '

Post by Satch »

This problem is to do with the PHP server version.

5.2.0 has a problem with the native RRDTool-1.2.12 native windows binary (the native binary should be used in favour of the Cygwin version for newer releases of Cacti)

The Cygwin version of RRDTool 1.2.15 also causes graph generation to fail because of a hard-coded font reference.

PHP 5.1.6 is the one you want, it works fine.

5.2.1RC1 looked hopeful, however I have tested this and it still has the same problems with RRDTool as 5.2.0.

So you want PHP 5.1.6, RRDTool 1.2.12 native windows binary, any mySQL (if using MySql 5 then set sql-mode="MYSQL40" in my.ini), and cacti-0.8.6i

Also to be wary of is that your MIBDIRS environment variable is pointing at your NET-SNMP MIBs ([net-snmp-dir]\usr\share\snmp\mibs) rather than your PHP ones (typically C:\PHP\extras\mibs)

You definitely want to run the cactid version of the poller as well, of course!

Seen a lot of these problems all over the forums; hopefully someone will find this useful!

David
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, there is a known problem with php 5.2.0 documented here: http://bugs.cacti.net/view.php?id=877

Who said the win32 version of rrdtool is the preferred version now? Last I heard, the Cygwin build was still required for cacti.
Satch
Posts: 3
Joined: Thu Jan 04, 2007 1:14 am
Location: Gold Coast, Australia

Post by Satch »

I don't think that the issue documented on http://bugs.cacti.net/view.php?id=877 is the only problem associated with the 5.2.x releases to date as it specifically applies to the use of cmd.php for polling. I experienced further issues with the RRDTool graph generation even when using the cactid poller.

As for the native RRDTool vs the Cygwin version, the cygwin version of 1.2.15 seems to have a hard-coded font reference (or at least the binary i pulled did) to a linux path -> this was revealed when I attempted graph generation from the command line, in which the binary output was interrupted with an error on the font load. This problem does not exist in the 1.2.12 versions, or at least not in the native windows build.

I'm running the native version of 1.2.12 and it all seems to be perfectly happy. Much faster than running under Cygwin too, of course.

Regards,

David
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Satch wrote:I experienced further issues with the RRDTool graph generation even when using the cactid poller
This is likely because you're not using the cygwin version. cactid has nothing to do with graphing -- rrdtool does. cactid only collects that data.
Satch
Posts: 3
Joined: Thu Jan 04, 2007 1:14 am
Location: Gold Coast, Australia

Post by Satch »

I understand what you are saying, however I only received further issues while using the Cygwin version. I do not experience the problem with the native version, however I do of course need to run cactid polling.

Please advice if you are aware of further problems with using the native RRDTool binaries with Cacti when using cactid polling, as it seems to be working just fine for me now.

Your responses are greatly appreciated.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, so keep using the win32 version of rrdtool. Go to graph management, click on a graph and enable graph debugging. Whats the error?

If nothing is revealed by that, then the next thing to try is to fire up Sysinternals FileMon when you're attempting to display a graph. Look for access denied errors. Post the log if you want.
danmac
Posts: 12
Joined: Thu Dec 21, 2006 11:18 am
Location: England

Post by danmac »

Just for my own curiosity is there any real reason to use PHP 5.x with Cacti?

I stuck 4.4.4 on mine just because it's been out longer and therefore subjected to more abuse, but to be honest I didn't spend much time thinking about it :)
[size=75][b]Win2003 x86 SP1 | IIS 6 | Cacti 0.8.6i | Cactid 0.8.6i | MySQL 5.0.24 | PHP 4.4.4 | RRD 1.2.15 | NetSNMP 5.3.1 | Cygwin 1.5.23 | P4 2.1GHz | 512MB | 300GB RAID1[/b][/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I think it has better support for snmpv3 (cant say for sure since I don't use it) and of course its more frequently updated than the 4.x line. Probably more efficient, etc too but once again nothing to back that up.
User avatar
daedalus01
Posts: 4
Joined: Mon Dec 05, 2005 5:37 pm

Post by daedalus01 »

BSOD2600 wrote:Alright, so keep using the win32 version of rrdtool. Go to graph management, click on a graph and enable graph debugging. Whats the error?

If nothing is revealed by that, then the next thing to try is to fire up Sysinternals FileMon when you're attempting to display a graph. Look for access denied errors. Post the log if you want.
I personally get:

Code: Select all

 RRDTool Command:

PHP has encountered an Access Violation at 0101AE66
It only happens sometimes and I'm pretty sure it was when I upgraded from PHP v5.2.1 from v5.1.6. I'll be reverting back.

UPDATE: Reverted back to v5.1.6, works great.
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

Post by TheHack »

Same experience here. I restarted the web server every night to ensure functionality.
Access violation suddenly appeared and the web server needed a reboot.

All happened after upgrading to PHP 5.2.1. Today I reverted also to 5.1.6. I will post the results in within the next two weeks...
clem.s
Posts: 8
Joined: Wed Apr 11, 2007 9:31 am
Location: Cannes, France

Post by clem.s »

Hi, I 've installed Cacti with the Beta Windows installer v1.5.

Sometimes all my graphs disapear and when I click on the wrench I get this :

Code: Select all

PHP has encountered an Access Violation at 0169AE66
For now I reboot my server evry time I get this message, I want to know how to downgrade my php version (5.2.1) to change that.


Thanks
clem.s
Posts: 8
Joined: Wed Apr 11, 2007 9:31 am
Location: Cannes, France

Post by clem.s »

clem.s wrote:I want to know how to downgrade my php version (5.2.1) to change that.
It's ok I overwrite all the files from the 5.1.6 php and it seems to work properly
:D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests