Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BitBucket Server installer fails to run with java.lang.StackOverflowError for non-root users

Denis Koryavov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2019

Env:
RHEL 7.6 with latest updates
java version "1.8.0_202"

When I trying to run BitBucket Server installer as non-root user, I get the next error:

$ ./atlassian-bitbucket-6.1.2-x64.bin -c
Starting Installer ...
Exception in thread "main" java.lang.StackOverflowError
at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:298)
at java.lang.ThreadLocal.get(ThreadLocal.java:163)
at java.lang.StringCoding.deref(StringCoding.java:63)
at java.lang.StringCoding.encode(StringCoding.java:330)
at java.lang.StringCoding.encode(StringCoding.java:387)
at java.lang.String.getBytes(String.java:958)
at java.lang.ProcessEnvironment$Variable.valueOfQueryOnly(ProcessEnvironment.java:166)
at java.lang.ProcessEnvironment$Variable.valueOfQueryOnly(ProcessEnvironment.java:162)
at java.lang.ProcessEnvironment$StringEnvironment.get(ProcessEnvironment.java:239)
at java.lang.ProcessEnvironment$StringEnvironment.get(ProcessEnvironment.java:221)
at java.util.Collections$UnmodifiableMap.get(Collections.java:1454)
at com.install4j.runtime.launcher.LauncherVariables$1.getReplacement(LauncherVariables.java:52)
at com.install4j.runtime.util.StringUtil.replaceVariable(StringUtil.java:66)
at com.install4j.runtime.util.StringUtil.replaceVariable(StringUtil.java:80)
.... (many the same strings)...
at com.install4j.runtime.util.StringUtil.replaceVariable(StringUtil.java:80)

I have the same error even if I trying to run installer as user with unlimited sudo privileges.
The issue ocuurs only in RHEL 7.5+, on Ubuntu 18.04 the same installer works perfectly.

Is there a way to run installer on RHEL as non-root user?

1 answer

1 accepted

0 votes
Answer accepted
Denis Koryavov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2019

The root of the problem found: on my RHEL server I had custom LD_LIBRARY_PATH. After removing this custom variable everything works fine. 

The question can be removed. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events