How to recover my BB configuration after damaged plugin installation.

Hello everyone:

 

I had a problem with my BB installation, I am not root in my server so I had to install git and java directly under

my BB user's directory, however while working with BB plugins my BB server no longer shows me BB's page, it shows me this error:

 

A fatal error has occurred

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

  • You are using Git 1.7.7.3. The minimum supported version is 1.8.0. Upgrade to Git 1.8.0+, excluding 1.8.4.3, 2.0.2, 2.0.3, and restart Bitbucket.

I installed GIt and JAVA directrly under atlstash directory and modified the corresponding environment varialbles

so atlstash would see JAVA and Git. I get this from my very last log:

 

14 00:23:20,072 DEBUG [clusterScheduler_Worker-9]  c.a.b.i.audit.AuditCleanupJobRunner Starting audit cleanup job
2016-03-14 00:23:20,099 DEBUG [clusterScheduler_Worker-9]  c.a.b.i.audit.AuditCleanupJobRunner Audit cleanup was recently completed; skipping
2016-03-14 00:23:46,526 DEBUG [clusterScheduler_Worker-3]  c.a.s.i.p.r.DefaultRescopeProcessor No empty rescopes were found
2016-03-14 00:53:46,557 DEBUG [clusterScheduler_Worker-2]  c.a.s.i.p.r.DefaultRescopeProcessor No empty rescopes were found
2016-03-14 01:23:19,605 DEBUG [clusterScheduler_Worker-2]  c.a.b.i.audit.AuditCleanupJobRunner Starting audit cleanup job
2016-03-14 01:23:19,610 DEBUG [clusterScheduler_Worker-2]  c.a.b.i.audit.AuditCleanupJobRunner Audit cleanup was recently completed; skipping
2016-03-14 01:23:46,117 DEBUG [clusterScheduler_Worker-10]  c.a.s.i.a.DefaultRememberMeService Cleaned up 0 expired remember-me tokens
2016-03-14 01:23:46,142 DEBUG [clusterScheduler_Worker-9]  c.a.s.i.user.DefaultUserAdminService Purging 0 users that have been removed before 'Mon Mar 07 00:23:46 EST 2016'
2016-03-14 01:23:46,163 DEBUG [clusterScheduler_Worker-5]  c.a.s.i.p.r.DefaultRescopeProcessor No empty rescopes were found
2016-03-14 01:53:20,187 ERROR [localScheduler_Worker-10]  c.a.scheduler.core.JobLauncher Scheduled job with ID 'GitAnalyticsJobRunner' failed
com.atlassian.bitbucket.scm.git.GitUnsupportedVersionException: You are using Git 1.7.7.3. The minimum supported version is 1.8.0. Upgrade to Git 1.8.0+, excluding 1.8.4.3, 2.0.2, 2.0.3, and restart Bitbucket.
        at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig$1.apply(DefaultGitScmConfig.java:348) ~[na:na]
        at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig$1.apply(DefaultGitScmConfig.java:338) ~[na:na]
        at com.atlassian.fugue.Either$LeftProjection.map(Either.java:678) ~[fugue-2.5.0.jar:na]
        at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig.resolveException(DefaultGitScmConfig.java:338) ~[na:na]
        at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig.getVersion(DefaultGitScmConfig.java:284) ~[na:na]
        at com.atlassian.stash.internal.scm.git.analytics.GitAnalyticsJob.publishAnalyticsEvent(GitAnalyticsJob.java:51) ~[na:na]
        at com.atlassian.stash.internal.scm.git.analytics.GitAnalyticsJob.access$100(GitAnalyticsJob.java:11) ~[na:na]
        at com.atlassian.stash.internal.scm.git.analytics.GitAnalyticsJob$GitAnalyticsJobRunner.runJob(GitAnalyticsJob.java:58) ~[na:na]
        at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) [atlassian-scheduler-core-1.6.0.jar:na]
        at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) [atlassian-scheduler-core-1.6.0.jar:na]
        at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) [atlassian-scheduler-core-1.6.0.jar:na]
        at com.atlassian.scheduler.quartz2.Quartz2Job.execute(Quartz2Job.java:32) [atlassian-scheduler-quartz2-1.6.0.jar:na]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:na]
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.1.jar:na]
2016-03-14 01:53:46,525 DEBUG [clusterScheduler_Worker-3]  c.a.s.i.p.r.DefaultRescopeProcessor No empty rescopes were found
2016-03-14 02:22:41,039 INFO  [clusterScheduler_Worker-3]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/
2016-03-14 02:22:41,824 INFO  [clusterScheduler_Worker-3]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/
2016-03-14 02:22:42,097 INFO  [UpmPacClient:thread-200]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/
2016-03-14 02:22:42,097 INFO  [UpmPacClient:thread-200]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/applications/bitbucket?build-number=4002000&limit-versions=1
2016-03-14 02:22:42,142 INFO  [UpmPacClient:thread-200]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.bitbucket.server.bitbucket-ref-restriction/version/4.2.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,144 INFO  [UpmPacClient:thread-201]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.isroot.stash.plugin.yacc/version/1.11/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,144 INFO  [UpmPacClient:thread-202]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.bitbucket.server.bitbucket-markup-renderers/version/0.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,146 INFO  [UpmPacClient:thread-206]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.bitbucket.server.bitbucket-crowd-sso/version/4.2.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,150 INFO  [UpmPacClient:thread-207]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.stash.plugin.stash-auto-unapprove-plugin/version/2.0.1/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,150 INFO  [UpmPacClient:thread-203]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.analytics.analytics-client/version/4.3.2/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,153 INFO  [UpmPacClient:thread-204]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.bitbucket.server.bitbucket-comment-properties/version/0.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,153 INFO  [UpmPacClient:thread-205]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/org.christiangalsterer.stash-filehooks-plugin/version/2.2.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,176 INFO  [UpmPacClient:thread-208]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.bitbucket.server.bitbucket-analytics-whitelist/version/4.2.0/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,212 INFO  [UpmPacClient:thread-200]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/be.foreach.stash.notifier/version/4.0.1/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0
2016-03-14 02:22:42,257 INFO  [UpmPacClient:thread-208]  c.a.m.client.MarketplaceClient GET https://marketplace.atlassian.com/rest/1.0/plugins/com.atlassian.plugins.base-hipchat-integration-plugin-api/version/7.0.3/update?onDemand=false&onPremise=true&application=bitbucket&buildNumber=4002000&limit-versions=0&limit-reviews=0

Please Help.

Any help for little that it might seem is VERY MUCH APPRECIATED.

 

Thanks

Jesse

1 answer

0 vote

Hi Jesse,

The error message indicates that Bitbucket could not find a supported version of git (>= 1.8.0). If you've installed a newer version of git in your user home directory, make sure that Bitbucket is started with this newer version on the PATH. This should help Bitbucket find the supported version and allow it to start up normally,

 

I installed git right under atlstash directory and added the path in to my .cshrc file as:

.cshrc

set path = (/apps/atlassian/stash/jdk8/jdk1.8.0_65/bin /apps/atlassian/stash/bin $path)

.bashrc

export PATH=$PATH:JAVA_HOME/bin:/apps/atlassian/stash/bin

.tcshrc

set path = ($path /apps/atlassian/stash/jdk8/jdk1.8.0_65/bin /apps/atlassian/stash/bin)

 

/apps/atlassian/stash/bin is where my git is currently located.

As shown I created a .bashrc and a .tcshrc with git's  corresponding path. My Bitbucket server runs with user atlastash and with tcsh shell. It was working fine, Honestly I don't know why it just started misbehaving!!

Besides creating the .cshrc, .bashrc and .tcshrc with the path to my git, what else do I need to add for stash to know where is my current git version.?

 

Is there a configuration file that I need to edit in order for Bitbucket no to skip my installed git?

 

 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,127 views 26 12
Join discussion

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