Problem with bitbucket startup

Hello all,

I am using bitbucket 5.5 on win 7 64 bit. It was working fine for a long time but now it doesn't starting up.

The message is showing "Migrating home directory" in the browser window for a long time.

After 15 min the message "SpringMVC dispatcher [springMvc] could not be started" is displayed. 

I have looked through the articles but they are related to *nix systems.

Could anyone give advice what to check for windows systems?

Thanks,

2 answers

1 accepted

I have noticed that some other parts of the windows are crashed.

It happened after "critical update was installed" message.

Maybe bitbucket crashed after that.

I decided to reinstall the whole system and disable updates.

Fuck microsoft with their "everyday" updates.

0 votes

The advice you find here and in "articles" is mostly operating system agnostic.  While most of the world is running on Unix like systems, the advice translates easily into other OS's:

The main thing you should see for all of them is: Read the logs for the application, those should tell you what it is doing and why you are getting a migration message.  I suspect you will find they have some form of "can't open file" error in them, which is usually caused by the ownership or permissions on the files and directories.  (Make sure they are owned by the user running bitbucket, or at least that user should have full RWED permissions on them, and no virus scanners are getting in the way)

Thanks for reply,

I have checked the logs.

There are two dir's in repository directory. log and logs. A bit confusing.

The log directory has access.log mail.log and profiler.log they are empty.

bitbucket.log contains some logs. Is this file should contain error?

 

logs contain three files stdderr.log stdout.log and daemon.log but they do not contain any errors.

bitbucket.log contains some messages related to spring startup

 

2018-01-20 05:57:03,438 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 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedHomeLockAcquirer' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'licenseHelper' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'licenseHelper' defined in URL [jar:file:/C:/Atlassian1/Bitbucket/5.5.0/app/WEB-INF/lib/bitbucket-service-impl-5.5.0.jar!/com/atlassian/stash/internal/license/DefaultLicenseHelper.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bootstrapLiquibase' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1: An I/O error occurred while sending to the backend.
2018-01-20 05:57:03,449 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on D:\bitbucket_repo1
2018-01-20 05:57:03,451 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 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedHomeLockAcquirer' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'licenseHelper' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'licenseHelper' defined in URL

Those errors are consistent with Bitbucket not being able to read/write/execute/delete files in its installation and home directories, although it might also be a failure to reach the database. 

Check the file and directory permissions, as I suggested before.

i have checked that.

The bitbucket service is starting using non admin user credentials. This special user is atlbitbucket. I have checked that this name is specified in the Log On tab of the service properties. And password is correct.

Then i have checked that this user has Full Control for Atlassian setup directory and for the home directory. 

The service is still hanging on the Migrating home directory message.

Thanks for help Nic

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

631 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot