User has 10 hipchat sessions and nothing happens when try to disconnect sessions. I can duplicate on my account with two dead sessions.
Hi, James.
On top of the suggestions provided by Nagila, you can also give the following method a try if you are running on HipChat Server / Data Center:
HipChat Data Center
sudo dont-blame-hipchat
PGHOST=$(cat /hipchat/config/site.json | jq -r '.databases.hipchat_postgres.servers[0]' | cut -d: -f1) && PGUSER=$(cat /hipchat/config/site.json | jq -r '.databases.hipchat_postgres.user') && PGSCHEMA=$(cat /hipchat/config/site.json | jq -r '.databases.hipchat_postgres.schema') && export PG_CONNECT="psql -h $PGHOST -U $PGUSER -d $PGSCHEMA" && export PGPASSWORD=$(cat /hipchat/config/site.json | jq -r '.databases.hipchat_postgres.pass')
RHOST=$($PG_CONNECT -t -c "SELECT value FROM configurations WHERE key='redishostname';") && RPORT=$($PG_CONNECT -t -c "SELECT value FROM configurations WHERE key='redisport';") && RPWD=$($PG_CONNECT -t -c "SELECT value FROM configurations WHERE key='redispass';") && export REDIS_CONNECT="redis-cli -h $RHOST -p $RPORT -a $RPWD"
$PG_CONNECT -c "SELECT id,email FROM users WHERE email LIKE '%email@example.com%';"
for key in `$REDIS_CONNECT KEYS '*' | grep -iE "session|^mobile:" | grep -w <user_id> | cut -d" " -f2`; do echo "Deleting $key"; $REDIS_CONNECT DEL $key; done
HipChat Server
sudo dont-blame-hipchat
DBPASS=$(awk '/"pass"/ {gsub(/[",]/,"");print $2}' /hipchat/config/site.json) && mysql -uroot -p$DBPASS hipchat -e "SELECT id,email FROM users WHERE email LIKE '%email@example.com%';"
for key in `redis-cli KEYS '*' | grep -iE "session|^mobile:" | grep -w <user_id> | cut -d" " -f2`; do echo "Deleting $key"; redis-cli DEL $key; done
Let us know how it goes for you. Thanks.
I had found a script online to clear sessions for all users and that was successful but next time will try the script for the user with the issue.
Thanks
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, James.
You are most welcome. Would you mind sharing the script you came across so other might be able to benefit from it in case they run into the same issue too? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For all Users:
Login to hipchat server as admin and run the following script:
for key in `redis-cli KEYS '*' | grep -iE "session|^mobile:"`; do echo "Deleting $key"; redis-cli DEL $key; done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
We strongly suggest you reach out to our team through https://support.atlassian.com/contact/#/ so we can further identify what's happening with the HipChat sessions in your account.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, you can try to disconnect active sessions via https://hipchat.com/account/sessions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.