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

Bitbucket Server 7.5.0 not starting up after upgrade: "A fatal error has occurred"

Upgrading Bitbucket server from 5.0.1 to 7.5.0. All was going well pretty much til I went to start up the new version.

Upgraded Java from 8 to 11:

-bash-4.2$ java -version
openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)

 

I have ensured that the set-jre-home.sh script is setting the correct version, and it's pointing at this version, but the UI is displaying this page:

Screen Shot 2020-08-31 at 6.17.55 pm.png

I think this is a bit misleading though, because seem as though the java is fine. I'm on RHEL Linux, but the Supported platforms page doesn't list specific Linux Distributions as supported or not, and the previous version ran fine on this server.

Below are the logs I can see at /var/atlassian/application-data/bitbucket/log/atlassian-bitbucket.log

 

2020-08-31 18:09:41,196 INFO [main] o.s.boot.SpringApplication
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.6.RELEASE)


2020-08-31 18:09:41,594 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on ip-10-2-100-244.ap-southeast-2.compute.internal with PID 2840 (/opt/atlassian/bitbucket/7.5.0/app/WEB-INF/classes started by atlbitbucket in /opt/atlassian/bitbucket/7.5.0/bin)
2020-08-31 18:09:41,596 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2020-08-31 18:09:43,518 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.5.0 (1c69c0d built on Tue Aug 11 00:46:25 AEST 2020)
2020-08-31 18:09:43,518 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Oracle Corporation OpenJDK 64-Bit Server VM 11.0.8+10-LTS
2020-08-31 18:09:47,028 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 9.802 seconds (JVM running for 12.177)
2020-08-31 18:09:53,687 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket
2020-08-31 18:09:59,054 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket/shared
2020-08-31 18:10:01,622 WARN [spring-startup] com.hazelcast.instance.Node [10.2.100.244]:5701 [atlbitbucket] [3.12.6] No join method is enabled! Starting standalone.
2020-08-31 18:10:17,301 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'packObjectsHookHandler' defined in URL [jar:file:/opt/atlassian/bitbucket/7.5.0/app/WEB-INF/lib/bitbucket-git-7.5.0.jar!/com/atlassian/stash/internal/scm/git/hook/handler/CachingPackObjectsHookHandler.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandBuilderFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring: Unsatisfied dependency expressed through method 'gitCommandBuilderFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com.atlassian.stash.internal.scm.git.GitWiring$NioWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO
2020-08-31 18:10:17,395 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
2020-08-31 18:10:17,416 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
2020-08-31 18:10:17,422 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'packObjectsHookHandler' defined in URL [jar:file:/opt/atlassian/bitbucket/7.5.0/app/WEB-INF/lib/bitbucket-git-7.5.0.jar!/com/atlassian/stash/internal/scm/git/hook/handler/CachingPackObjectsHookHandler.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandBuilderFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring: Unsatisfied dependency expressed through method 'gitCommandBuilderFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com.atlassian.stash.internal.scm.git.GitWiring$NioWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.base/java.lang.Thread.run(Thread.java:834)
... 18 frames trimmed
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandBuilderFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring: Unsatisfied dependency expressed through method 'gitCommandBuilderFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com.atlassian.stash.internal.scm.git.GitWiring$NioWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO
... 6 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com.atlassian.stash.internal.scm.git.GitWiring$NioWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO
... 6 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
... 5 common frames omitted
Caused by: com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO
at com.atlassian.bitbucket.internal.process.nu.NuNioProcessHelper.validate(NuNioProcessHelper.java:143)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
... 5 common frames omitted
Caused by: java.lang.UnsatisfiedLinkError: /var/atlassian/application-data/bitbucket/tmp/jna17154694746383231096.tmp: /var/atlassian/application-data/bitbucket/tmp/jna17154694746383231096.tmp: failed to map segment from shared object: Operation not permitted
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.Runtime.load0(Runtime.java:768)
at java.base/java.lang.System.load(System.java:1837)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
at com.sun.jna.Native.<clinit>(Native.java:195)
at com.zaxxer.nuprocess.linux.LibEpoll.<clinit>(LibEpoll.java:29)
at com.zaxxer.nuprocess.linux.LinuxProcess.<clinit>(LinuxProcess.java:40)
at com.zaxxer.nuprocess.linux.LinProcessFactory.runProcess(LinProcessFactory.java:49)
at com.zaxxer.nuprocess.NuProcessBuilder.run(NuProcessBuilder.java:273)
at com.atlassian.bitbucket.internal.process.nu.NuNioProcessHelper.validate(NuNioProcessHelper.java:138)
... 8 common frames omitted
2020-08-31 18:10:17,959 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,959 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,959 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,959 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [goGetFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,960 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,961 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,961 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [rateLimitFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:17,961 WARN [https-jsse-nio-8443-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:18,019 WARN [https-jsse-nio-8443-exec-8] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:18,019 WARN [https-jsse-nio-8443-exec-8] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:18,019 WARN [https-jsse-nio-8443-exec-8] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:18,019 WARN [https-jsse-nio-8443-exec-8] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
2020-08-31 18:10:18,020 WARN [https-jsse-nio-8443-exec-8] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available

 

0 answers

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,744 views 10 16
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