In some environments where a proxy is present, HipChat Server will take an excessive amount of time to boot (~1-2hrs) depending on hardware. This delay is on every reboot.
HipChat Server v2.2.0
- In a proxied environment, boot the HipChat Server VM
- In the boot output, notice that the boot process gets stuck for a considerable amount of time (in the example it's 45 minutes):
Can also get stuck here:
The HipChat Server boots in a timely manner (~5-10 minutes depending on hardware)
It takes a considerable amount of time to boot.
This problem is rooted at /opt/atlassian/hipchat/sbin/_ovf_env.py which is used to check the HipChat Server's deployment type (Amazon EC2 or VMware/VirtualBox).
The test below will indicate if a server is affected by this issue:
- Log into the HipChat Server command line.
- Run the follow command:
- If the test reports back a total time of more than a few seconds, then it's possible you are affected by this issue.
- Boot the HipChat Server and wait until you have a command prompt
- Log into the HipChat Server command line
- Gain root:
- Make a backup of _ovf_env.py
- Next, edit the original _ovf_env.py
- Locate the following code (starting with line 66).
- Once located, remove lines 67-76 (keeping line 66), then add pass at the end. Completed correctly, it'll look like:
- Save the file (CTRL+X then 'Y' to save) and rerun the timed test again:
- If successful, the test should pass in under a second. If the delay persists, please check steps 5, 6, and 7.
- If it passes the check, please reboot the VM and it should boot within a reasonable time.