Airwave - Identify and delete corrupt RRD files

Aruba Employee
Aruba Employee

Introduction : This article explains the process involved in identifying corrupt RRD files and how to get rid of them.

Due to presence of corrupt RRD files many web pages on Airwave might end up with a page crash.
A sample error message is shown below.

The server has encountered an error while performing your request. 
Please try again or email a copy of this message along with the 
<> web server 
log to customer support. Contact Aruba Technical Support at 
< or 
1-800-943-4526 (800-WiFi-LAN). 

Time: Tue Dec 17 13:47:06 2013 
URL: /nf/client_list 
Arguments: limit_to_connected=1 


[Tue Dec 17 13:47:06 2013] [error] [client] 
AWRRDtool last error: (last: Failed to read any or all header bytes: 
Successlast: see prior output for details) 
One or more of your RRD files seems to be corrupted.
Please run: scripts/identify_broken_rrds at Mercury/Utility/ line 45 
at Mercury/Utility/ line 45 
59 ( Mercury/AWRRD/ 151) ASSERT 
58 ( Mercury/AWRRD/ 121) Mercury::AWRRD::Base::check_for_errors([arg 
list truncated]) 
57 ( Mercury/AWRRD/ 92) Mercury::AWRRD::Base::_tool([arg 
list truncated]) 
56 ( Mercury/AWRRD/ 153) 
7fa750c15c58)', undef) 
55 ( Mercury/AWRRD/ 140) 
54 ( Mercury/ 520) 
53 ( Mercury/ 523) 

From the error message one can see that the script to identify broken RRD's is to be executed to identify broken RRD files.


Answer :


Before we start identifying the corrupt or broken RRD files it is always good to take a backup of the server in case something goes wrong during the process mentioned below.

To take a manual backup execute the command
Once the backup process is complete extract the backup file named as databackup.tar.gz from the /alternative directory.

To run the script to identify broken RRD files, execute the following command.

./scripts/identify_broken_rrds > /tmp/rrd.txt 

The above command will save the list of broken RRD files in rrd.txt file located in the /tmp directory.

Create a folder corruptedfiles in /tmp using mkdir /tmp/corruptedfiles

Move the broken RRD files to the /tmp/corruptedrrdfiles

mv var/airwave/rrd/client_bandwidth_1A/04_46_65_03_CB_1A.in_bps.awrrd /tmp/corruptedrrdfiles/corruptedrrd.txt

Next identify any known good rrd file and replace the broken rrd file with the known good file using the copy command.
To identify a known good RRD file, one can pick a file which is not in the list extracted in Step2.
For Example: 
04_46_65_46_FD_1A.in_bps.awrrd is a non corrupt file in the folder client_bandwidth_1A. This file should be over written on the corrupt file which is 04_46_65_03_CB_1A.in_bps.awrrd using the command below
cp var/airwave/rrd/client_bandwidth_1A/04_46_65_46_FD_1A.in_bps.awrrd var/airwave/rrd/client_bandwidth_1A/04_46_65_03_CB_1A.in_bps.awrrd

It is best to move into the same directory where the broken RRD file is present and pick a file which is not in the list obtained from Step2.

Once all the broken RRD files are replaced with known good files the page crash would not occur anymore.

Version history
Revision #:
1 of 1
Last update:
‎07-08-2014 04:27 PM
Updated by:
Labels (1)

Thanks , very useful !

Hi, my server chap has run the above and encountered the below error message, can anyone offer advice on how to resolve this? And/or what the error is referring to?



./scripts/identify_broken_rrds > /tmp/rrd.txt
Failed to create AWRRD lasts list at ./scripts/identify_broken_rrds line 59.



I had a similar situation that was fixed by recompiling the code after a fresh install of, could be extreme but it's worth opening a tac case for it.

root; make

Recompliling the code after a fresh install?

Why would that need to be done? 


Forgive me if this is something obvious, my linux knowledge is basic... 

It fixed my issue, for some reason
TAC and I could not get the issues resolved with patches, etc..
Search Airheads
Showing results for 
Search instead for 
Did you mean: