Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Attempting to run the 7.19.2 installer on Linux presents (java.net.SocketException)

[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]#

1 answer

1 accepted

0 votes
Answer accepted

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.

Most kind. Thanks. 

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

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

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.

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.


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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

190 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you