vicidial agent login error Your Session has been disabled
Resolving vicidial issue Your session has been disabled
Topic:vicidial agent login error Your Session has been disabled
vicidial agent login error Your Session has been disabled |
Introduction:
Issue : your session has been disabled
You may notice the message "you session has been disabled " under below conditions1. During agent login to vicidial agent portal
2. After successful login at frequent time its popups this message.
Root cause
Below are few root cause for the issue -your session has been disabled
Workaround
Vicidial admin force logged out
Make sure admin access are not misused, use strong password for admin, restrict admin rights .
Make sure public access to dialer is secured , as vicidial admin API can triggered to logout agents.
Database Table vicidial_live_agent crashed
mysqlcheck -u root -p --check --all-database
(note: if you have set a root password then enter ,or press enter if dont know the password run below command)
mysqlcheck -u cron -p1234 --check --all-database
If you have received below output then the particular table is crashed, you need to repair.
asterisk.vicidial_live_agentsError : Incorrect file format 'vicidial_live_agents'error : Corrupt
Run the below commands to repair and optimie.
(note if root password is unknow use cron with password 1234)
mysqlcheck -u root -p --auto-repair --all-databasesmysqlcheck -u root -p --optimize --all-databases
if the above command failed to repair the crashed tabled ,use the below command to force the repair
Login to mysql console
mysql -puse asterisk;repair table vicidial_live_agents table use_frm;optimize table vicidial_live_agents table;
Crontab DB query - queues.
crontab entry script that is running at regular interval ,which is running a database query may cause this issue indirectly. ref link
solution: delete the TMM files in mysql data directory
search the .TMM files under /var/lib/mysql/asterisk/
rm -rf ./var/lib/mysql/asterisk/vicidial_live_agents.TMM
Also run the below command to flush the DB table for entries older than 1 hour
/usr/share/astguiclient/AST_flush_DBqueue.pl --seconds=240 --session-flush -q
I'd recommend changing the DBflush to run every 4 minutes: Ref LInk
### flush queue DB table every hour for entries older than 1 hour (changed to 4 minutes)1,5,9,13,17,21,25,29,33,37,41,45,49,53,57 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl --seconds=240 --session-flush -q
Lack of System Memory
Check the Current usage of the memory in your system ,by typing top or htop command.
also run free -m to see current free ,used memory
Delete any cached memory by running below command
sync; echo 3 > /proc/sys/vm/drop_caches
you can schedule the above command to run every 30 min in crontab to delete cache at regular interval.
Summary:
Regular maintenance of vicidial like deleting old data's, recordings, Avoiding Overload, improper shutdown will avoid most of the vicidial issuesFor profession support reach me on skype:striker24x7
vicidial your session has been disabled ,contact administrator.