I have a HipChat Server installation that was installed from the HipChat Server OVA. One quirk about this installation is that we do not have the server connected to any email servers. We utilize the server on a disconnected network and use it for chat and notifications (non-email notifications). We also have the server hooked into a Crowd LDAP (Active Directory) directory for users.
The situation which we are running into is as follows: One of our users is somehow in an "Unactivated" state. When looking under the Users section as an admin, in the column for "Last Active" I see "Unactivated (resend email)". Deactivating and Reactivating the user will continue to show the "Unactivated" state. When the user tries to log in, there are no error messages presented and the user simply cannot log in. Clicking on "Log in" after providing the user name and password will reset the page and clear out the user name and password. No error messages. Other users can still log in and use HipChat just fine.
Thank you for any and all help.
Hey all,
I was just made aware of this post. I went back and reviewed the ticket and I believe 4th step should read:
{code}
UPDATE user SET metadata = NULL WHERE id=n;
{code}
Which will wipe any metadata that could keep the user from auth'ing to the directory. The original step number 4 looks like a typo on my part, sorry about that.
Cheers,
-David
HipChat Server Support Engineer | Atlassian
David,
I had noticed that typo and opted to set an arbitrary confirmation time as follows
UPDATE users SET confirmed=1 WHERE is_deleted=1'; UPDATE users SET metadata='{"confirmation_unix_time": 1479839396}' WHERE is_deleted=1; UPDATE users SET is_deleted=0;
This specifically confirms and activates all deactivated accounts.
I also went ahead and cleared out the password for external accounts as the local password is not needed
UPDATE users SET password=NULL WHERE external_id is not NULL;
This seems to have resolved our user problem and all accounts are now active and confirmed and users are able to login successfully.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The situation which we are running into is as follows: One of our users is somehow in an "Unactivated" state. When looking under the Users section as an admin, in the column for "Last Active" I see "Unactivated (resend email)". Deactivating and Reactivating the user will continue to show the "Unactivated" state. When the user tries to log in, there are no error messages presented and the user simply cannot log in. Clicking on "Log in" after providing the user name and password will reset the page and clear out the user name and password. No error messages. Other users can still log in and use HipChat just fine.
Run this command to gain access to the database terminal:
DBPASS=$(awk '/"pass"/ {gsub(/[",]/,"");print $2}' /hipchat/config/site.json) && mysql -p$DBPASS hipchat
Now run this command, be sure to replace n with the user id from the previous step
UPDATE users SET confirmed=1 WHERE id=n;
Same for this command
UPDATE user SET confirmed = NULL WHERE id=n;
On the HipChat Server command line, run the following command, replacing n with the user id.
redis-cli del user:n
1. Is there any way to fix the account so that the user can be activated without an email server?
2. Is it just a bad idea to try and use HipChat without an email server?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I try this but it didn't work for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It didn't work for me either...
Are you sure that first you have to do:
UPDATE users SET confirmed=1 WHERE id=n;
And then:
UPDATE users SET confirmed = NULL WHERE id=n;
Is there some kind of trigger which first does something when setting confirmed to 1, and afterwards to null ? Or how should I see this?
Thanks.
Philippe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting this, hopefully Atlassian will soon add the ability to disable two-step verification for on-premise deployments. Understandably HipChat was a cloud-based product acquired so it takes time for Enterprise features to be incorporated into a product. Does anyone know if there is a HipChat ticket for this feature request?
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.