Monitoring, Management & Location Tracking

How can we make the redis server accept new connections to allow access to GUI post login?

Environment : This holds true for Airwave version 8.0.4

 

GUI cannot go past login screen.It continues to try to load without displaying any errors.

 

Redis server is not accepting new connections

 

Delete the dump.rdb file for redis server

 

This KB holds true for inability of GUI to go beyond the login screen. It does not help if the account login fails.

1) Check httpd error log using the following command and try to login to the GUI

tail -f less /var/log/httpd/error_log

[Fri Oct 31 11:06:16 2014] bootstrap.pl(16364): Falling through to CORE::exit (16364 - Daemon::ServiceWatcher): Could not connect to Redis server at 127.0.0.1:6379: Connection refused at /opt/airwave/local/lib/perl5/site_perl/5.10.1/Redis.pm line 423
    Redis::__build_sock('Redis=HASH(0x7fe6cb4693e8)') called at /opt/airwave/local/lib/perl5/site_perl/5.10.1/Redis.pm line 402
    Redis::__connect('Redis=HASH(0x7fe6cb4693e8)') called at /opt/airwave/local/lib/perl5/site_perl/5.10.1/Redis.pm line 68
    Redis::new('Redis', 'encoding', undef, 'server', '127.0.0.1:6379', 'password', 'ALHIw9XjS5JlaGjQUdCyUh1/') called at /usr/local/airwave/lib/perl/Mercury/Redis/Hash/Base.pm line 64

If you see above message the KB holds valid.

2) This usually happens in a disk full scenario where redis server tried to create a db file but fails as there is no disk space which results in a 0kb db file. Starting of redis server fails owing to the 0kb file generated.
Deleting this file and restarting redis will resolve the issue

[root@amp-server mercury]# rm -rf /var/lib/redis/dump.rdb
[root@amp-server mercury]# /etc/init.d/redis restart
Stopping redis-server:                                     [  OK  ]
Starting redis-server:                                     [  OK  ]

Generates a new dump.rdb as shown below :

[root@amp-server mercury]# ls -lah /var/lib/redis/dump.rdb
-rw-r--r-- 1 redis redis 949K Oct 31 06:44 /var/lib/redis/dump.rdb

Note  : Step 2 only works if disk space is made available by adding more disk space/purging data

 

Version history
Revision #:
1 of 1
Last update:
‎04-07-2015 01:16 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.