Attempting to run the 7.19.2 installer on Linux presents (java.net.SocketException)
Asked by muradkhan786:

\[root@bitbucket\]# /tmp/atlassian-bitbucket-7.19.2-x64.bin  
Starting Installer ...

Bitbucket 7.19.2 installation wizard  
Would you like to install or upgrade an instance?  
Install a new instance \[1, Enter\], Upgrade an existing instance \[2\]  
2021-12-23 19:57:48,276 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}-\><https://www.atlassian.com:443>: Connection reset  
2021-12-23 19:57:48,279 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec Retrying request to {s}-\><https://www.atlassian.com:443>  
2021-12-23 19:57:48,320 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}-\><https://www.atlassian.com:443>: Connection reset  
2021-12-23 19:57:48,320 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec Retrying request to {s}-\><https://www.atlassian.com:443>  
2021-12-23 19:57:48,364 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}-\><https://www.atlassian.com:443>: Connection reset  
2021-12-23 19:57:48,364 INFO \[Thread-4\] o.a.http.impl.execchain.RetryExec Retrying request to {s}-\><https://www.atlassian.com:443>  
\^C  
Rolling back changes ...  
\[root@bitbucket\]#


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Community!

This log chunk is saying that the install process cannot connect to Atlassian.com to go fetch stuff it might need.

In our all-connected world, we're all moving to "go get it from the internet", but you have systems that are blocking that.

You will need to get your network admins to allow that access, or use the installer that does not need any network access.

comments: author: muradkhan786
body: Most kind. Thanks.

What do you mean by "use the installer that does not need any network access"?


author: muradkhan786
body: Also, what's the deal with BITBUCKET_BASE and BITBUCKET_HOME. My 7.18.1 install is using BITBUCKET_BASE, and all the upgrade documentation for 7.19.2 references BITBUCKET_HOME


author: Nic Brough -Adaptavist-
body: Bitbucket_base is used in some places to hold the bitbucket base URL for their functions, it's not a Bitbucket variable itself. Bitbucket_home is the root of the directories that Bitbucket will keep its working files in on its server.

When you go to download Bitbucket, it will ask you if you want an installer for Mac, Linux or Windows, but there are two other options - tar.gz and .zip versions. Those two are local installs that will not go out to atlassian.com when you install them. But they are a bit more fiddly to use.


author: muradkhan786
body: Thanks again Nic.

I think i figured it out. BITBUCKET_BASE was set in the .bash_profile of the user account used to run BB. The pervious person that setup BB 7.18 did that, i think just, to append to the PATH. I found the BITBUCKET_HOME he set in set-bitbucket-home.sh of the old install location, and it is set to, as you said, the location where the application keeps its working files. In $BITBUCKET_HOME/shared is bitbucket.properties that contains a bunch of jdbc and server settings. So it seems like I need to extract out the tar ball to a parallel location to where 7.18 presently sits, and modify the set-user, set-home, and set-jre mirroring what he setup for 7.18 and I should be good to go. Will also need to modify the etc/init.d startup scripts and the user profile of course.

<br />

However, one last question. In BITBUCKET_HOME, I also see a home.properties file. Seems to have a comment line with a date/time stamp and the following. I'm guessing its something the application writes out but not sure.

**home.build=7.18.1**   
**home.layout=12.0.0**


Tags: bitbucket-server

server