"RRD does not exist" until saved in graph management

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

Moderators: Developers, Moderators

Post Reply
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

"RRD does not exist" until saved in graph management

Post by MU-IT »

After my upgrade to 0.8.8a, a large number of my graphs show as "RRD does not exist" when I bring them up in graph management. I make no changes, click save anyway, and when I bring the management page back up the graph loads normally, and is not missing data.

Cacti Version 0.8.8a
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

Screenshots and graph debug output of both scenarios described please.
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: "RRD does not exist" until saved in graph management

Post by MU-IT »

BSOD2600 wrote:Screenshots and graph debug output of both scenarios described please.
I appreciate the help, BSOD, I normally have at least a clue where to start... seems permissions are fine, and the RRD file does exist. Also, Weathermap can generate maps with the latest data from the RRD. I can't find anything in logs that appears relevant to me.

Graph Management before I click "save", with graph debug on:
http://i.imgur.com/OyI1T.png

Graph Management after I click "save", with graph debug on:
http://i.imgur.com/0q0T2.png
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

You're really using rrdtool 1.2 and not 1.4?
What are the steps to repro this bug?
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: "RRD does not exist" until saved in graph management

Post by MU-IT »

BSOD2600 wrote:You're really using rrdtool 1.2 and not 1.4?
What are the steps to repro this bug?
Yup, RRDTool version is at 1.2.30.0... and I'm now looking for a 1.4.x in windows flavor.

History:
I updated to .8.8a, and noticed several of the graphs that were linked to in weathermap were coming up as RRD does not exist. I, in once case, noticed the data concerning the outbound datasource was empty and the RRD does not exist image was up... so I corrected the entry and saved the changes. That fixed it.

Soon after, I found another RRD DNE image and it's outbound datasouce was ok. I clicked save anyway and when I reloaded the page the graph was there with no missing data. It is reproducible for me for any network graph that currently displays the RRD Does Not Exist image.

Steps to reproduce:
Once a graph image with "RRD Does Not Exist" is found, I find it in graph management, click save, and reload the page. It has worked for me 100% of the time.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

MU-IT wrote:
BSOD2600 wrote:You're really using rrdtool 1.2 and not 1.4?
What are the steps to repro this bug?
Yup, RRDTool version is at 1.2.30.0... and I'm now looking for a 1.4.x in windows flavor.
Sadly no one in the community has maintained a win32 build since 1.2.x. A special win32 build of rrdtool 1.4.3 is included with the Windows installer though.
MU-IT wrote:I updated to .8.8a, and noticed several of the graphs that were linked to in weathermap were coming up as RRD does not exist.
Are you certain this isn't a weathermap bug? None of the traffic graphs in my 0.8.8a installation are having this issue.
MU-IT wrote:Steps to reproduce:
Once a graph image with "RRD Does Not Exist" is found, I find it in graph management, click save, and reload the page. It has worked for me 100% of the time.
Right, but how does one end up with the "RRD Does Not Exist" situation to begin with? ;)
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: "RRD does not exist" until saved in graph management

Post by MU-IT »

BSOD2600 wrote:
MU-IT wrote:
BSOD2600 wrote:You're really using rrdtool 1.2 and not 1.4?
What are the steps to repro this bug?
Yup, RRDTool version is at 1.2.30.0... and I'm now looking for a 1.4.x in windows flavor.
Sadly no one in the community has maintained a win32 build since 1.2.x. A special win32 build of rrdtool 1.4.3 is included with the Windows installer though.
MU-IT wrote:I updated to .8.8a, and noticed several of the graphs that were linked to in weathermap were coming up as RRD does not exist.
Are you certain this isn't a weathermap bug? None of the traffic graphs in my 0.8.8a installation are having this issue.
MU-IT wrote:Steps to reproduce:
Once a graph image with "RRD Does Not Exist" is found, I find it in graph management, click save, and reload the page. It has worked for me 100% of the time.
Right, but how does one end up with the "RRD Does Not Exist" situation to begin with? ;)
I haven't yet updated the RRD tool. Is this really likely to be the issue? I'm honestly a little afraid of toying with it.

I am certain this isn't a weathermap bug, RRD's not linked in weathermap are behaving this way, as well. When i go through the saving process in graph management, the RRDs work in weathermap again. Same for RRDs not in weathermap... i just noticed the issue via weathermap, is all.

I've compared a working rrd file to a not-working RRD file and can see no issues with permissions. I also can't see where anything changes when comparing the files before/after fixing them.

I really appreciate your insight and help you give us all BSOD.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

Are you able to capture this error occurring with sysinternals process monitor?
It's odd that one moment you get the "RRD Does Not Exist" error, and then later it works. Sure your antivirus/other isn't at fault?
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: "RRD does not exist" until saved in graph management

Post by MU-IT »

BSOD2600 wrote:Are you able to capture this error occurring with sysinternals process monitor?
It's odd that one moment you get the "RRD Does Not Exist" error, and then later it works. Sure your antivirus/other isn't at fault?
I don't see anything obvious in procmon.. apparently php.exe is looking all over for cmd.exe, which is weird, but unrelated.

I have a hunch that it's database related, and whatever magic is being done by clicking "save" in the graph management re-establishes some entry that's gone amok in the DB.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

php.exe launches cmd.exe, which in tern launches rrdtool.exe (and any other script processes). This is all done under the web server's service account. If cmd.exe is denied launching, then all of cacti's processes break down.
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: "RRD does not exist" until saved in graph management

Post by MU-IT »

BSOD2600 wrote:php.exe launches cmd.exe, which in tern launches rrdtool.exe (and any other script processes). This is all done under the web server's service account. If cmd.exe is denied launching, then all of cacti's processes break down.
I've verified permissions are correct per the how-tos in your sig. Since the graphs are shown after I click the save button in graph management, and they have valid data from before I clicked save, I assume that the rrdtool was able to do its job.

it doesn't seem to be a database corruption, I run the usual "mysqlcheck -orc" daily on all databases via scheduled task. The log I pipe it to doesn't show any errors/warnings/etc.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

Are you able to repro this issue on demand now? if so, what are the steps? Have you ruled out Weathermap is not the culprit by disabling/uninstalling the plugin?
Kimboaticus
Posts: 7
Joined: Sun Feb 16, 2014 9:10 pm

Re: "RRD does not exist" until saved in graph management

Post by Kimboaticus »

Sorry to resurrect an old post but I have the same issue with my graphs displaying "RRD File Does Not Exist" even though they files actually do exist. I am not using the Weathermap. What seems to have triggered it was changing the graph template on my existing graphs (they still displayed correctly after this change) and then changing the graph template back to what it was. It was after this second change that they all started the RRD file does not exist thing. I can get the graphs to display as stated above by going in to each graph and hitting the save button. I do not have to turn on graph debugging, just the clicking save is enough. Hoping there is a quicker way to fix two hundred plus graphs rather than going into each one individually. Any suggestions?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: "RRD does not exist" until saved in graph management

Post by BSOD2600 »

screenshots and graph debug output please. cacti and rrdtool version too.
Kimboaticus
Posts: 7
Joined: Sun Feb 16, 2014 9:10 pm

Re: "RRD does not exist" until saved in graph management

Post by Kimboaticus »

Here you go:

Cacti is 8.8A
RRDTool is 1.4.5
Attachments
RRD File Missing with Debug.jpg
RRD File Missing with Debug.jpg (74.01 KiB) Viewed 4028 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests