Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,588
Community Members
 
Community Events
165
Community Groups

Cant migrate Bitbucket get "Error creating bean with name 'hookService' defined in class path ..."

Edited

Hello Atlassian-Community,

 

im currently trying to migrate an old 5.11.1 Bitbucket to a new Linux machine of us. But finally i cant continue because i get the following error on website:

A fatal error has occurred

The following problem occurred, which prevents Atlassian Bitbucket from starting:

  • SpringMVC dispatcher [springMvc] could not be started

The following Error log comes with this msg.:

. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.12.RELEASE)


2021-08-04 16:41:39,607 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on TSOBSRVAP003 with PID 2000 (/opt/atlassian/bitbucket/5.11.1/app/WEB-INF/classes started by atlbitbucket in /)
2021-08-04 16:41:39,611 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2021-08-04 16:41:44,715 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 5.11.1 (ca3ded2 built on Sat May 26 08:25:16 CEST 2018)
2021-08-04 16:41:44,715 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Red Hat, Inc. OpenJDK 64-Bit Server VM 1.8.0_292-b10
2021-08-04 16:41:50,642 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 17.744 seconds (JVM running for 24.052)
2021-08-04 16:41:58,190 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket
2021-08-04 16:42:10,663 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket/shared
2021-08-04 16:42:17,023 WARN [spring-startup] com.hazelcast.instance.Node [172.17.0.1]:5701 [atlbitbucket] [3.7.4-atlassian-43] No join method is enabled! Starting standalone.
2021-08-04 16:42:57,101 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hookService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Hook support scripts could not be written to /var/atlassian/application-data/bitbucket/bin/git-hooks
2021-08-04 16:42:57,343 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
2021-08-04 16:42:57,376 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
2021-08-04 16:42:57,379 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hookService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Hook support scripts could not be written to /var/atlassian/application-data/bitbucket/bin/git-hooks
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1630)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.lang.Thread.run(Thread.java:748)
... 15 frames trimmed
Caused by: java.io.IOException: Hook support scripts could not be written to /var/atlassian/application-data/bitbucket/bin/git-hooks
at com.atlassian.stash.internal.hook.DefaultHookService.installHookScripts(DefaultHookService.java:154)
at com.atlassian.stash.internal.hook.DefaultHookService.startup(DefaultHookService.java:99)
... 5 common frames omitted
Caused by: java.io.IOException: /var/atlassian/application-data/bitbucket/bin/git-hooks/hook-callback.pl could not be set executable.
at com.atlassian.stash.internal.hook.DefaultHookService.installHookScript(DefaultHookService.java:123)
at com.atlassian.stash.internal.hook.DefaultHookService.installHookScripts(DefaultHookService.java:150)
... 6 common frames omitted
2021-08-04 16:43:51,056 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,056 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,057 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,057 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,057 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,057 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [goGetFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,070 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:51,071 WARN [http-nio-7991-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,483 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [goGetFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:43:53,484 WARN [http-nio-7991-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,770 WARN [http-nio-7991-exec-4] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,770 WARN [http-nio-7991-exec-4] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [goGetFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,780 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [springSecurityFilterChain]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [authenticationAttributeFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:54,781 WARN [http-nio-7991-exec-5] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [standardResponseHeadersFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:55,137 WARN [http-nio-7991-exec-6] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-08-04 16:56:55,138 WARN [http-nio-7991-exec-6] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available

 

Could you please help me to solve this issue?

best regards
benjamin

1 answer

1 accepted

0 votes
Answer accepted

Solved it out by myself. Was just a User permission proplem. After  i changed the owner via chown to atlbitbucket, it worked.

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,158 views 2 9
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