I'm trying to install HipChat v1.3.7 on a machine with no internet access and which isn't configured to an email server.
The first issue encountered is after first booting up the VM and logging into the UI is a message stating that 'you haven't confirmed your email account' with no option to initiate confirmation.
In following a knowledge base article (https://confluence.atlassian.com/display/HIPCHATKB/HipChat+Server+is+stuck+on+the+configuration+wizard), I am able to disable the setup wizard by running the following command:
hipchat service --disable-setup-wizard
I am then able to change the name of the owner account by running:
hipchat service --reset-owner=<MY_EMAIL_ACCOUNT>
This however does not help as when I log back into the UI, I am presented with a login page. Whilst I now know the admin username, I still don't know the password. I cannot use the option 'Forgot Password' as there isn't a configured email server.
I can get into the MariaDB instance running on the HipChat server and view the 'bcrypt' password associated with the admin account, but there doesn't seem to be a way of generating a new 'bcrypt' password.
Having reached this point, I am unable to proceed any further, thus preventing being able to use this latest production version of Hipchat.
Having reached an impasse, not being able to install the latest version of HipChat in an environment that neither is connected to the internet nor does it have an internally available email system, I am at a loss of how I can upgrade existing instances to this latest version which given the circumstances (operating environment) would normally be done by downloading the new version and then performing a data export from the old version followed by an import into the new version.
Without providing a way to be able to install v1.3.7 of HipChat and complete the initial configuration through the UI Wizard (which as per the thread above, isn't possible), this I can imagine will affect and be impactful to a significant number of customers operating behind a firewall.
HipChat Server is indeed being run in different environments on either Virtualbox or VMWare. All configured HipChat Server instances are being run on a NAT which is the usual way by which I would expose such VMs to their host machine.
How can I resolve the 'invalid XSRF token' issue?
@Will DeHaan One possible helpful pointer... I've observed that changing the logging levels such that I can see the output of the following log message in the file: /hipchat/web/current/application/helpers/xsrf.php
Method Name: verify
Log output: kohana::log('debug', "Verifying '$token' against current token '$current_token'");
In web.err.log, this reveals that current token is blank, hence this method always fails!
Narrowing down the problem still further, it seems the problem is concerned with setting HipChat to run behind a NAT. In bridged mode from a fresh/vanilla HipChat OVA, I can go through the setup wizard just fine.
As soon as I switch to NAT, I run into the invalid XSRF token issue. I have ensured that all required ports 80,443,5222,5223 are being forwarded and have even tried assigning an A Name record which points to the host on which HipChat server resides and then configuring 'hipchat network -n <host> -f <domain>' to no avail. It would appear the fact that the VM is behind a NAT and thus on a different subnet mask altogether to the LAN is making a difference. @Will DeHaan Appreciate if you could expand on your earlier comment about the 'cookie domain scope' not matching. How would you suggest I go about resolving this mismatch issue when running HipChat behind a NAT?
A further update on this. From a fresh install of v1.3.7, when I go to the setup wizard, I first receive a message stating that my account has not been confirmed. At this point, I am unable to proceed to start the wizard!
If I go into the MariaDB and alter the default admin user's confirmed flag to true, this stops this message. However, I still can't proceed any further with the wizard. When I click on the button to start the wizard, it appears to do nothing. Checking all the logs in the HipChat directory, I can see that every time I try to click to start the wizard, the web.err.log is reporting 'invalid XSRF token'. What can be done to resolve this error?
Looks like the wizard timed out. You can disable that by running "hipchat service --disable-setup-wizard" and then you'll be dropped right into the administrative web interface once we figure out the xsrf token issue.
Can you check the web session cookies issued on login? Is the FQDN set to plain ASCII?
You may be best off contacting support by emailing email@example.com.
Email is required for proper operation of HipChat Server, per requirements here: https://confluence.atlassian.com/hc/system-requirements-for-hipchat-server-606306343.html
All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us. As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs