Cannot Start Bitbucket
Asked by Tamir.Kucherov:

Hello,

I try to start bitbucket \[atlas-run -DskipTests\], but receive multiple errors.

I follow <https://developer.atlassian.com/server/framework/clientside-extensions/guides/introduction/>

My purpose is to create client side extension.

When trying to access <http://localhost:7990/bitbucket/>

I receive:

A fatal error has occurred {#toc-hId--524189291}
------------------------------------------------

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

* Required plugin com.atlassian.activeobjects.activeobjects-plugin has failed to start
* Required plugin com.atlassian.applinks.applinks-plugin has failed to start
* Required plugin com.atlassian.atlassian-failure-cache-plugin has failed to start
* Required plugin com.atlassian.auiplugin has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-crowd-spi has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-nav-links has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-policies has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-rest has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-sal has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-velocity-helper has failed to start
* Required plugin com.atlassian.bitbucket.server.bitbucket-upm-accessor has failed to start
* Required plugin com.atlassian.crowd.embedded.admin has failed to start
* Required plugin com.atlassian.oauth.consumer has failed to start
* Required plugin com.atlassian.oauth.consumer.sal has failed to start
* Required plugin com.atlassian.oauth.serviceprovider has failed to start
* Required plugin com.atlassian.oauth.serviceprovider.sal has failed to start
* Required plugin com.atlassian.plugins.atlassian-clientside-extensions-runtime has failed to start
* Required plugin com.atlassian.plugins.atlassian-client-resource has failed to start
* Required plugin com.atlassian.plugins.atlassian-nav-links-plugin has failed to start
* Required plugin com.atlassian.plugins.atlassian-plugins-webresource-plugin has failed to start
* Required plugin com.atlassian.plugins.atlassian-plugins-webresource-rest has failed to start
* Required plugin com.atlassian.plugins.jquery has failed to start
* Required plugin com.atlassian.plugins.less-transformer-plugin has failed to start
* Required plugin com.atlassian.plugins.rest.atlassian-rest-module has failed to start
* Required plugin com.atlassian.soy.soy-template-plugin has failed to start
* Required plugin com.atlassian.stash.ssh-plugin has failed to start
* Required plugin com.atlassian.templaterenderer.api has failed to start
* Required plugin com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin has failed to start
* Required plugin com.atlassian.troubleshooting.plugin-bitbucket has failed to start
* Required plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin has failed to start

from logs:

\[INFO\] 2022-10-06 19:46:58,092 WARN \[spring-startup\] c.a.p.c.r.StaticPluginPathScanner Cannot scan directory /static/bitbucket/internal/feature/admin/ratelimit/ in web static as it does not exist  
\[INFO\] 2022-10-06 19:47:07,449 INFO \[spring-startup\] c.a.s.internal.scm.PluginScmService Bitbucket is using C:\\Program Files\\Git\\bin\\git.exe version 2.38.0  
\[INFO\] 2022-10-06 19:47:07,652 INFO \[main\] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 372.524 seconds (JVM running for 373.566)  
\[INFO\] bitbucket started successfully in 393s at <http://localhost:7990/bitbucket>  
\[INFO\] Type Ctrl-C to shutdown gracefully  
\[INFO\] 2022-10-06 19:47:42,713 INFO \[threadpool:thread-2\] c.a.b.i.b.s.m.BuildStatusMigrationRunner Starting Java based migration of remaining build statuses  
\[INFO\] 2022-10-06 19:47:52,731 ERROR \[threadpool:thread-2\] c.a.s.i.c.StateTransferringRunnable Error while processing asynchronous task  
\[INFO\] com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$ServiceTimeoutExceeded: Timeout exceeded waiting for service - com.atlassian.bitbucket.dmz.build.status.dao.DmzLegacyBuildDao  
\[INFO\] at com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.invoke(OsgiServiceProxyFactoryImpl.java:102)  
\[INFO\] at jdk.proxy2/jdk.proxy2.$Proxy443.getMaxId(Unknown Source)  
\[INFO\] at com.atlassian.bitbucket.internal.build.status.migration.BuildStatusMigrationRunner.lambda$null$4(BuildStatusMigrationRunner.java:119)  
\[INFO\] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)  
\[INFO\] at com.atlassian.bitbucket.internal.build.status.migration.BuildStatusMigrationRunner.lambda$doJavaMigration$5(BuildStatusMigrationRunner.java:118)  
\[INFO\] at com.atlassian.stash.internal.concurrent.StateTransferringRunnable.run(StateTransferringRunnable.java:50)  
\[INFO\] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)  
\[INFO\] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)  
\[INFO\] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)  
\[INFO\] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)  
\[INFO\] at java.base/java.lang.Thread.run(Thread.java:1589)

Thanks! Tamir


Answers:
author: Tamir.Kucherov
body: Hi.

Original issue was resolved after installing AdoptOpenJDK 8 and setting JAVA_HOME environment variable as C:\\Program Files\\Eclipse Adoptium\\jdk-8.0.345.1-hotspot

Bitbucket server goes up and starting. But when I try to Enable Bitbucket Plugin, I receive this message:

**\[INFO\] 2022-10-07 23:40:39,454 ERROR \[http-nio-7990-exec-5\] admin @1IT99GCx1420x174x0 1lnoktz 0:0:0:0:0:0:0:1 "PUT /rest/plugins/1.0/com.atlassian.myapp.bitbucket-plugin-template-key HTTP/1.1" c.a.plugin.manager.PluginEnabler Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.myapp.bitbucket-plugin-template**

Thanks! Tamir


author: Bastian Stehmann
body: Hi [@Tamir.Kucherov](/t5/user/viewprofilepage/user-id/5044860) ,

Which version of Bitbucket are you using?

It seems you are on Windows and current version of Bitbucket does not support Windows.

Are there any other errors in the log?

comments: author: Tamir.Kucherov
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496),

I follow this guide: <https://developer.atlassian.com/server/framework/clientside-extensions/guides/introduction/>

When installing Atlassian SDK 8, I chose windows.

[https://marketplace.atlassian.com/apps/1210950/atlassian-plugin-sdk-windows?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1210950/atlassian-plugin-sdk-windows?hosting=server&tab=overview)

Thanks! Tamir


author: Bastian Stehmann
body: Hi,

Ok, that should be Bitbucket 7, which supports Windows.

Are there any other errors in the log files?


author: Tamir.Kucherov
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) ,

Thanks for your response.

I filtered all the lines with Error keyword from my log file \[i cannot attached it here\]:

Thanks! Tamir

Search "error" (33 hits in 1 file of 1 searched)  
C:\\Work\\bitbucket-client-side-extensions-template\\111.txt (33 hits)  
Line 66: \[ERROR\] !!!  
Line 67: \[ERROR\] The "@label" annotation is deprecated. Please provide the "label" in your javascript code instead.  
Line 68: \[ERROR\] !!!  
Line 69: \[ERROR\] !!!  
Line 70: \[ERROR\] The "@link" annotation is deprecated. Please provide the "url" in your javascript code instead.  
Line 71: \[ERROR\] !!!  
Line 72: \[ERROR\] !!!  
Line 73: \[ERROR\] The "@label" annotation is deprecated. Please provide the "label" in your javascript code instead.  
Line 74: \[ERROR\] !!!  
Line 75: \[ERROR\] !!!  
Line 76: \[ERROR\] The "@link" annotation is deprecated. Please provide the "url" in your javascript code instead.  
Line 77: \[ERROR\] !!!  
Line 78: \[ERROR\] Browserslist: caniuse-lite is outdated. Please run:  
Line 79: \[ERROR\] npx browserslist@latest --update-db  
Line 80: \[ERROR\]  
Line 81: \[ERROR\] Why you should do it regularly:  
Line 82: \[ERROR\] <https://github.com/browserslist/browserslist#browsers-data-updating>  
Line 83: \[ERROR\] Client-side Extension: the schema for extension point "tutorial.extension.points" does not contain a ContextSchema definition.  
Line 334: \[INFO\] ERROR: Bundle org.eclipse.gemini.blueprint.extender \[7\] Error starting file:/C:/Work/bitbucket-client-side-extensions-template/target/bitbucket/app/WEB-INF/osgi-framework-bundles/gemini-blueprint-extender-3.0.0.M01.jar (org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.gemini.blueprint.extender \[7\].)  
Line 334: \[INFO\] ERROR: Bundle org.eclipse.gemini.blueprint.extender \[7\] Error starting file:/C:/Work/bitbucket-client-side-extensions-template/target/bitbucket/app/WEB-INF/osgi-framework-bundles/gemini-blueprint-extender-3.0.0.M01.jar (org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.gemini.blueprint.extender \[7\].)  
Line 334: \[INFO\] ERROR: Bundle org.eclipse.gemini.blueprint.extender \[7\] Error starting file:/C:/Work/bitbucket-client-side-extensions-template/target/bitbucket/app/WEB-INF/osgi-framework-bundles/gemini-blueprint-extender-3.0.0.M01.jar (org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.gemini.blueprint.extender \[7\].)  
Line 335: \[INFO\] 2022-10-06 20:13:32,192 ERROR \[FelixDispatchQueue\] c.a.p.o.c.f.FelixOsgiContainerManager Framework error in bundle org.eclipse.gemini.blueprint.extender  
Line 335: \[INFO\] 2022-10-06 20:13:32,192 ERROR \[FelixDispatchQueue\] c.a.p.o.c.f.FelixOsgiContainerManager Framework error in bundle org.eclipse.gemini.blueprint.extender  
Line 336: \[INFO\] org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.gemini.blueprint.extender \[7\].  
Line 672: \[INFO\] 2022-10-06 20:18:41,099 ERROR \[spring-startup\] c.a.plugin.manager.PluginEnabler Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.audit.atlassian-audit-plugin,com.atlassian.plugins.remote-link-aggregator-plugin,com.atlassian.stash.ssh-plugin,com.atlassian.bitbucket.server.bitbucket-analytics-whitelist,com.atlassian.healthcheck.atlassian-healthcheck,com.atlassian.bitbucket.server.bitbucket-jira-development-integration,com.atlassian.applinks.applinks-plugin,com.atlassian.jwt.jwt-plugin,com.atlassian.plugins.rest.atlassian-rest-module,com.atlassian.bitbucket.server.bitbucket-git-lfs,com.atlassian.bitbucket.server.bitbucket-plugin-information-provider,com.atlassian.devrel.developer-toolbox-plugin,com.atlassian.oauth.consumer,com.atlassian.plugins.atlassian-clientside-extensions-runtime,com.atlassian.prettyurls.atlassian-pretty-urls-plugin,com.atlassian.httpclient.atlassian-httpclient-plugin,com.atlassian.bitbucket.server.bitbucket-contributing-guidelines,com.atlassian.bitbucket.server.bitbucket-sal,com.atlassian.plugins.plugin-data-editor,com.atlassian.labs.rest-api-browser,com.atlassian.plugins.atlassian-client-resource,com.atlassian.bitbucket.server.bitbucket-gpg,com.atlassian.bitbucket.server.bitbucket-ao-common,com.atlassian.oauth.serviceprovider.sal,com.atlassian.plugins.issue-status-plugin,com.atlassian.business.insights.bitbucket-plugin,tac.bitbucket.languages.fr_FR,com.atlassian.plugins.less-transformer-plugin,com.atlassian.applinks.applinks-basicauth-plugin,com.atlassian.plugins.static-assets-url,com.atlassian.zdu.bitbucket-zdu-plugin,tac.bitbucket.languages.de_DE,com.atlassian.bitbucket.server.bitbucket-crowd-sso,com.atlassian.bitbucket.server.bitbucket-policies,com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin,com.atlassian.bitbucket.server.bitbucket-importer,com.atlassian.bitbucket.server.bitbucket-crowd-spi,com.atlassian.diagnostics.atlassian-diagnostics-plugin,com.atlassian.plugins.atlassian-client ...  
Line 679: \[INFO\] 2022-10-06 20:20:06,613 ERROR \[threadpool:thread-2\] c.a.s.i.c.StateTransferringRunnable Error while processing asynchronous task  
Line 679: \[INFO\] 2022-10-06 20:20:06,613 ERROR \[threadpool:thread-2\] c.a.s.i.c.StateTransferringRunnable Error while processing asynchronous task  
Line 696: \[WARNING\] There was an error attempting to stop Bitbucket Server  
Line 697: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException \[Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:  
Line 715: at j\[WARNING\] There was an error attempting to stop Bitbucket Server  
Line 716: java.io.IOException: Failed to retrieve RMIServer stub: javax.naminavax.management.g.CommunicationExceptionremote.rmi.RMICo \[Root exception is java.rmi.ConnectIOException: error durinnector.findRMIServerng JRMP connection establishment; nested exception is:  
Line 746: error during JRMP connection establat javaxishment; nested exception is:  
Line 771: anagement.remCaused by:ote.JMXCo java.rmi.nnectorFacConnectIOEtory.connectxception (JMXConnec: torFactoryerror duri.java:229)ng JRMP co


author: Tamir.Kucherov
body: at the end of my log, i see the following:

INFO\] 2022-10-06 20:18:37,857 INFO \[spring-startup\] com.atlassian.plugin.util.WaitUntil Plugins that have yet to be enabled: (110): \[com.atlassian.audit.atlassian-audit-plugin, com.atlassian.plugins.remote-link-aggregator-plugin, com.atlassian.stash.ssh-plugin, com.atlassian.bitbucket.server.bitbucket-analytics-whitelist, com.atlassian.healthcheck.atlassian-healthcheck, com.atlassian.bitbucket.server.bitbucket-jira-development-integration, com.atlassian.applinks.applinks-plugin, com.atlassian.jwt.jwt-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.bitbucket.server.bitbucket-git-lfs, com.atlassian.bitbucket.server.bitbucket-plugin-information-provider, com.atlassian.devrel.developer-toolbox-plugin, com.atlassian.oauth.consumer, com.atlassian.plugins.atlassian-clientside-extensions-runtime, com.atlassian.prettyurls.atlassian-pretty-urls-plugin, com.atlassian.httpclient.atlassian-httpclient-plugin, com.atlassian.bitbucket.server.bitbucket-contributing-guidelines, com.atlassian.bitbucket.server.bitbucket-sal, com.atlassian.plugins.plugin-data-editor, com.atlassian.labs.rest-api-browser, com.atlassian.plugins.atlassian-client-resource, com.atlassian.bitbucket.server.bitbucket-gpg, com.atlassian.bitbucket.server.bitbucket-ao-common, com.atlassian.oauth.serviceprovider.sal, com.atlassian.plugins.issue-status-plugin, com.atlassian.business.insights.bitbucket-plugin, tac.bitbucket.languages.fr_FR, com.atlassian.plugins.less-transformer-plugin, com.atlassian.applinks.applinks-basicauth-plugin, com.atlassian.plugins.static-assets-url, com.atlassian.zdu.bitbucket-zdu-plugin, tac.bitbucket.languages.de_DE, com.atlassian.bitbucket.server.bitbucket-crowd-sso, com.atlassian.bitbucket.server.bitbucket-policies, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.bitbucket.server.bitbucket-importer, com.atlassian.bitbucket.server.bitbucket-crowd-spi, com.atlassian.diagnostics.atlassian-diagnostics-plugin, com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper, com.atlassian.bitbucket.server.bitbucket-tag, com.atlassian.bitbucket.server.bitbucket-velocity-helper, com.atlassian.plugins.atlassian-remote-event-producer-plugin, com.atlassian.templaterenderer.api, com.atlassian.crowd.embedded.admin, com.atlassian.analytics.analytics-client, com.atlassian.bitbucket.server.bitbucket-jira, com.atlassian.oauth.consumer.sal, com.atlassian.bitbucket.server.bitbucket-git-rest, com.atlassian.plugins.atlassian-remote-event-common-plugin, com.atlassian.bitbucket.server.bitbucket-repository-ref-sync, com.atlassian.bitbucket.server.bitbucket-comment-likes, com.atlassian.auiplugin, com.atlassian.bitbucket.server.bitbucket-sourcetree, com.atlassian.bitbucket.server.bitbucket-ref-restriction, com.atlassian.plugins.atlassian-plugins-webresource-plugin, com.atlassian.bitbucket.server.bitbucket-upm-accessor, com.atlassian.plugins.atlassian-connect-plugin, com.atlassian.pdkinstall, com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin, com.atlassian.applinks.applinks-cors-plugin, com.atlassian.plugins.browser.metrics.browser-metrics-plugin, com.atlassian.bitbucket.server.bitbucket-xcode, com.atlassian.plugins.cleanup-hub-plugin, com.atlassian.plugins.atlassian-plugins-webresource-rest, com.atlassian.bitbucket.search.embedded-elasticsearch-plugin, com.atlassian.bitbucket.server.bitbucket-pull-request-cleanup, com.atlassian.bitbucket.server.bitbucket-rest-ui, com.atlassian.bitbucket.server.bitbucket-build-jenkins, com.atlassian.bundles.json-schema-validator-atlassian-bundle, com.atlassian.bitbucket.server.bitbucket-jira-commit-checker, tac.bitbucket.languages.ja_JP, com.atlassian.bitbucket.server.bitbucket-emoticons, com.atlassian.bitbucket.server.bitbucket-build-bamboo, com.atlassian.plugins.authentication.atlassian-authentication-plugin, com.atlassian.bitbucket.server.bitbucket-cluster-info, com.atlassian.plugins.atlassian-chaperone, com.atlassian.bitbucket.server.bitbucket-access-tokens, com.atlassian.myapp.bitbucket-plugin-template, com.atlassian.bitbucket.server.bitbucket-rest, com.atlassian.business.insights.core-plugin, com.atlassian.labs.plugins.quickreload.reloader, com.atlassian.applinks.applinks-oauth-plugin, com.atlassian.applinks.applinks-trustedapps-plugin, com.atlassian.plugins.atlassian-remote-event-consumer-plugin, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.bitbucket.server.bitbucket-notification, com.atlassian.bitbucket.server.bitbucket-default-reviewers, com.atlassian.webhooks.atlassian-webhooks-plugin, com.atlassian.bitbucket.server.bitbucket-connect-support, com.atlassian.bitbucket.server.bitbucket-nav-links, com.atlassian.integration.jira.jira-integration-plugin, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.bitbucket.server.bitbucket-mirroring-upstream, com.atlassian.plugins.atlassian-nav-links-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.plugins.jquery, com.atlassian.troubleshooting.plugin-bitbucket, com.atlassian.analytics.analytics-whitelist, com.atlassian.bitbucket.server.bitbucket-branch, com.atlassian.bitbucket.server.bitbucket-repository-shortcuts, com.atlassian.bitbucket.server.bitbucket-build, com.atlassian.soy.soy-template-plugin, com.atlassian.bitbucket.server.bitbucket-code-insights, com.atlassian.atlassian-failure-cache-plugin, com.atlassian.bitbucket.server.bitbucket-webhooks, com.atlassian.bitbucket.server.bitbucket-frontend, com.atlassian.stash.plugins.stash-remote-event-bitbucket-server-spi, com.atlassian.bitbucket.server.bitbucket-search, com.atlassian.bitbucket.server.bitbucket-audit, com.atlassian.bitbucket.server.bitbucket-bundled-hooks\], 2 seconds remaining  
\[INFO\] 2022-10-06 20:18:38,929 INFO \[spring-startup\] com.atlassian.plugin.util.WaitUntil Plugins that have yet to be enabled: (110): \[com.atlassian.audit.atlassian-audit-plugin, com.atlassian.plugins.remote-link-aggregator-plugin, com.atlassian.stash.ssh-plugin, com.atlassian.bitbucket.server.bitbucket-analytics-whitelist, com.atlassian.healthcheck.atlassian-healthcheck, com.atlassian.bitbucket.server.bitbucket-jira-development-integration, com.atlassian.applinks.applinks-plugin, com.atlassian.jwt.jwt-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.bitbucket.server.bitbucket-git-lfs, com.atlassian.bitbucket.server.bitbucket-plugin-information-provider, com.atlassian.devrel.developer-toolbox-plugin, com.atlassian.oauth.consumer, com.atlassian.plugins.atlassian-clientside-extensions-runtime, com.atlassian.prettyurls.atlassian-pretty-urls-plugin, com.atlassian.httpclient.atlassian-httpclient-plugin, com.atlassian.bitbucket.server.bitbucket-contributing-guidelines, com.atlassian.bitbucket.server.bitbucket-sal, com.atlassian.plugins.plugin-data-editor, com.atlassian.labs.rest-api-browser, com.atlassian.plugins.atlassian-client-resource, com.atlassian.bitbucket.server.bitbucket-gpg, com.atlassian.bitbucket.server.bitbucket-ao-common, com.atlassian.oauth.serviceprovider.sal, com.atlassian.plugins.issue-status-plugin, com.atlassian.business.insights.bitbucket-plugin, tac.bitbucket.languages.fr_FR, com.atlassian.plugins.less-transformer-plugin, com.atlassian.applinks.applinks-basicauth-plugin, com.atlassian.plugins.static-assets-url, com.atlassian.zdu.bitbucket-zdu-plugin, tac.bitbucket.languages.de_DE, com.atlassian.bitbucket.server.bitbucket-crowd-sso, com.atlassian.bitbucket.server.bitbucket-policies, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.bitbucket.server.bitbucket-importer, com.atlassian.bitbucket.server.bitbucket-crowd-spi, com.atlassian.diagnostics.atlassian-diagnostics-plugin, com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper, com.atlassian.bitbucket.server.bitbucket-tag, com.atlassian.bitbucket.server.bitbucket-velocity-helper, com.atlassian.plugins.atlassian-remote-event-producer-plugin, com.atlassian.templaterenderer.api, com.atlassian.crowd.embedded.admin, com.atlassian.analytics.analytics-client, com.atlassian.bitbucket.server.bitbucket-jira, com.atlassian.oauth.consumer.sal, com.atlassian.bitbucket.server.bitbucket-git-rest, com.atlassian.plugins.atlassian-remote-event-common-plugin, com.atlassian.bitbucket.server.bitbucket-repository-ref-sync, com.atlassian.bitbucket.server.bitbucket-comment-likes, com.atlassian.auiplugin, com.atlassian.bitbucket.server.bitbucket-sourcetree, com.atlassian.bitbucket.server.bitbucket-ref-restriction, com.atlassian.plugins.atlassian-plugins-webresource-plugin, com.atlassian.bitbucket.server.bitbucket-upm-accessor, com.atlassian.plugins.atlassian-connect-plugin, com.atlassian.pdkinstall, com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin, com.atlassian.applinks.applinks-cors-plugin, com.atlassian.plugins.browser.metrics.browser-metrics-plugin, com.atlassian.bitbucket.server.bitbucket-xcode, com.atlassian.plugins.cleanup-hub-plugin, com.atlassian.plugins.atlassian-plugins-webresource-rest, com.atlassian.bitbucket.search.embedded-elasticsearch-plugin, com.atlassian.bitbucket.server.bitbucket-pull-request-cleanup, com.atlassian.bitbucket.server.bitbucket-rest-ui, com.atlassian.bitbucket.server.bitbucket-build-jenkins, com.atlassian.bundles.json-schema-validator-atlassian-bundle, com.atlassian.bitbucket.server.bitbucket-jira-commit-checker, tac.bitbucket.languages.ja_JP, com.atlassian.bitbucket.server.bitbucket-emoticons, com.atlassian.bitbucket.server.bitbucket-build-bamboo, com.atlassian.plugins.authentication.atlassian-authentication-plugin, com.atlassian.bitbucket.server.bitbucket-cluster-info, com.atlassian.plugins.atlassian-chaperone, com.atlassian.bitbucket.server.bitbucket-access-tokens, com.atlassian.myapp.bitbucket-plugin-template, com.atlassian.bitbucket.server.bitbucket-rest, com.atlassian.business.insights.core-plugin, com.atlassian.labs.plugins.quickreload.reloader, com.atlassian.applinks.applinks-oauth-plugin, com.atlassian.applinks.applinks-trustedapps-plugin, com.atlassian.plugins.atlassian-remote-event-consumer-plugin, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.bitbucket.server.bitbucket-notification, com.atlassian.bitbucket.server.bitbucket-default-reviewers, com.atlassian.webhooks.atlassian-webhooks-plugin, com.atlassian.bitbucket.server.bitbucket-connect-support, com.atlassian.bitbucket.server.bitbucket-nav-links, com.atlassian.integration.jira.jira-integration-plugin, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.bitbucket.server.bitbucket-mirroring-upstream, com.atlassian.plugins.atlassian-nav-links-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.plugins.jquery, com.atlassian.troubleshooting.plugin-bitbucket, com.atlassian.analytics.analytics-whitelist, com.atlassian.bitbucket.server.bitbucket-branch, com.atlassian.bitbucket.server.bitbucket-repository-shortcuts, com.atlassian.bitbucket.server.bitbucket-build, com.atlassian.soy.soy-template-plugin, com.atlassian.bitbucket.server.bitbucket-code-insights, com.atlassian.atlassian-failure-cache-plugin, com.atlassian.bitbucket.server.bitbucket-webhooks, com.atlassian.bitbucket.server.bitbucket-frontend, com.atlassian.stash.plugins.stash-remote-event-bitbucket-server-spi, com.atlassian.bitbucket.server.bitbucket-search, com.atlassian.bitbucket.server.bitbucket-audit, com.atlassian.bitbucket.server.bitbucket-bundled-hooks\], 1 seconds remaining  
\[INFO\] 2022-10-06 20:18:40,007 INFO \[spring-startup\] com.atlassian.plugin.util.WaitUntil Plugins that have yet to be enabled: (110): \[com.atlassian.audit.atlassian-audit-plugin, com.atlassian.plugins.remote-link-aggregator-plugin, com.atlassian.stash.ssh-plugin, com.atlassian.bitbucket.server.bitbucket-analytics-whitelist, com.atlassian.healthcheck.atlassian-healthcheck, com.atlassian.bitbucket.server.bitbucket-jira-development-integration, com.atlassian.applinks.applinks-plugin, com.atlassian.jwt.jwt-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.bitbucket.server.bitbucket-git-lfs, com.atlassian.bitbucket.server.bitbucket-plugin-information-provider, com.atlassian.devrel.developer-toolbox-plugin, com.atlassian.oauth.consumer, com.atlassian.plugins.atlassian-clientside-extensions-runtime, com.atlassian.prettyurls.atlassian-pretty-urls-plugin, com.atlassian.httpclient.atlassian-httpclient-plugin, com.atlassian.bitbucket.server.bitbucket-contributing-guidelines, com.atlassian.bitbucket.server.bitbucket-sal, com.atlassian.plugins.plugin-data-editor, com.atlassian.labs.rest-api-browser, com.atlassian.plugins.atlassian-client-resource, com.atlassian.bitbucket.server.bitbucket-gpg, com.atlassian.bitbucket.server.bitbucket-ao-common, com.atlassian.oauth.serviceprovider.sal, com.atlassian.plugins.issue-status-plugin, com.atlassian.business.insights.bitbucket-plugin, tac.bitbucket.languages.fr_FR, com.atlassian.plugins.less-transformer-plugin, com.atlassian.applinks.applinks-basicauth-plugin, com.atlassian.plugins.static-assets-url, com.atlassian.zdu.bitbucket-zdu-plugin, tac.bitbucket.languages.de_DE, com.atlassian.bitbucket.server.bitbucket-crowd-sso, com.atlassian.bitbucket.server.bitbucket-policies, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.bitbucket.server.bitbucket-importer, com.atlassian.bitbucket.server.bitbucket-crowd-spi, com.atlassian.diagnostics.atlassian-diagnostics-plugin, com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper, com.atlassian.bitbucket.server.bitbucket-tag, com.atlassian.bitbucket.server.bitbucket-velocity-helper, com.atlassian.plugins.atlassian-remote-event-producer-plugin, com.atlassian.templaterenderer.api, com.atlassian.crowd.embedded.admin, com.atlassian.analytics.analytics-client, com.atlassian.bitbucket.server.bitbucket-jira, com.atlassian.oauth.consumer.sal, com.atlassian.bitbucket.server.bitbucket-git-rest, com.atlassian.plugins.atlassian-remote-event-common-plugin, com.atlassian.bitbucket.server.bitbucket-repository-ref-sync, com.atlassian.bitbucket.server.bitbucket-comment-likes, com.atlassian.auiplugin, com.atlassian.bitbucket.server.bitbucket-sourcetree, com.atlassian.bitbucket.server.bitbucket-ref-restriction, com.atlassian.plugins.atlassian-plugins-webresource-plugin, com.atlassian.bitbucket.server.bitbucket-upm-accessor, com.atlassian.plugins.atlassian-connect-plugin, com.atlassian.pdkinstall, com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin, com.atlassian.applinks.applinks-cors-plugin, com.atlassian.plugins.browser.metrics.browser-metrics-plugin, com.atlassian.bitbucket.server.bitbucket-xcode, com.atlassian.plugins.cleanup-hub-plugin, com.atlassian.plugins.atlassian-plugins-webresource-rest, com.atlassian.bitbucket.search.embedded-elasticsearch-plugin, com.atlassian.bitbucket.server.bitbucket-pull-request-cleanup, com.atlassian.bitbucket.server.bitbucket-rest-ui, com.atlassian.bitbucket.server.bitbucket-build-jenkins, com.atlassian.bundles.json-schema-validator-atlassian-bundle, com.atlassian.bitbucket.server.bitbucket-jira-commit-checker, tac.bitbucket.languages.ja_JP, com.atlassian.bitbucket.server.bitbucket-emoticons, com.atlassian.bitbucket.server.bitbucket-build-bamboo, com.atlassian.plugins.authentication.atlassian-authentication-plugin, com.atlassian.bitbucket.server.bitbucket-cluster-info, com.atlassian.plugins.atlassian-chaperone, com.atlassian.bitbucket.server.bitbucket-access-tokens, com.atlassian.myapp.bitbucket-plugin-template, com.atlassian.bitbucket.server.bitbucket-rest, com.atlassian.business.insights.core-plugin, com.atlassian.labs.plugins.quickreload.reloader, com.atlassian.applinks.applinks-oauth-plugin, com.atlassian.applinks.applinks-trustedapps-plugin, com.atlassian.plugins.atlassian-remote-event-consumer-plugin, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.bitbucket.server.bitbucket-notification, com.atlassian.bitbucket.server.bitbucket-default-reviewers, com.atlassian.webhooks.atlassian-webhooks-plugin, com.atlassian.bitbucket.server.bitbucket-connect-support, com.atlassian.bitbucket.server.bitbucket-nav-links, com.atlassian.integration.jira.jira-integration-plugin, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.bitbucket.server.bitbucket-mirroring-upstream, com.atlassian.plugins.atlassian-nav-links-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.plugins.jquery, com.atlassian.troubleshooting.plugin-bitbucket, com.atlassian.analytics.analytics-whitelist, com.atlassian.bitbucket.server.bitbucket-branch, com.atlassian.bitbucket.server.bitbucket-repository-shortcuts, com.atlassian.bitbucket.server.bitbucket-build, com.atlassian.soy.soy-template-plugin, com.atlassian.bitbucket.server.bitbucket-code-insights, com.atlassian.atlassian-failure-cache-plugin, com.atlassian.bitbucket.server.bitbucket-webhooks, com.atlassian.bitbucket.server.bitbucket-frontend, com.atlassian.stash.plugins.stash-remote-event-bitbucket-server-spi, com.atlassian.bitbucket.server.bitbucket-search, com.atlassian.bitbucket.server.bitbucket-audit, com.atlassian.bitbucket.server.bitbucket-bundled-hooks\], 0 seconds remaining  
\[INFO\] 2022-10-06 20:18:41,099 ERROR \[spring-startup\] c.a.plugin.manager.PluginEnabler Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.audit.atlassian-audit-plugin,com.atlassian.plugins.remote-link-aggregator-plugin,com.atlassian.stash.ssh-plugin,com.atlassian.bitbucket.server.bitbucket-analytics-whitelist,com.atlassian.healthcheck.atlassian-healthcheck,com.atlassian.bitbucket.server.bitbucket-jira-development-integration,com.atlassian.applinks.applinks-plugin,com.atlassian.jwt.jwt-plugin,com.atlassian.plugins.rest.atlassian-rest-module,com.atlassian.bitbucket.server.bitbucket-git-lfs,com.atlassian.bitbucket.server.bitbucket-plugin-information-provider,com.atlassian.devrel.developer-toolbox-plugin,com.atlassian.oauth.consumer,com.atlassian.plugins.atlassian-clientside-extensions-runtime,com.atlassian.prettyurls.atlassian-pretty-urls-plugin,com.atlassian.httpclient.atlassian-httpclient-plugin,com.atlassian.bitbucket.server.bitbucket-contributing-guidelines,com.atlassian.bitbucket.server.bitbucket-sal,com.atlassian.plugins.plugin-data-editor,com.atlassian.labs.rest-api-browser,com.atlassian.plugins.atlassian-client-resource,com.atlassian.bitbucket.server.bitbucket-gpg,com.atlassian.bitbucket.server.bitbucket-ao-common,com.atlassian.oauth.serviceprovider.sal,com.atlassian.plugins.issue-status-plugin,com.atlassian.business.insights.bitbucket-plugin,tac.bitbucket.languages.fr_FR,com.atlassian.plugins.less-transformer-plugin,com.atlassian.applinks.applinks-basicauth-plugin,com.atlassian.plugins.static-assets-url,com.atlassian.zdu.bitbucket-zdu-plugin,tac.bitbucket.languages.de_DE,com.atlassian.bitbucket.server.bitbucket-crowd-sso,com.atlassian.bitbucket.server.bitbucket-policies,com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin,com.atlassian.bitbucket.server.bitbucket-importer,com.atlassian.bitbucket.server.bitbucket-crowd-spi,com.atlassian.diagnostics.atlassian-diagnostics-plugin,com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper,com.atlassian.bitbucket.server.bitbucket-tag,com.atlassian.bitbucket.server.bitbucket-velocity-helper,com.atlassian.plugins.atlassian-remote-event-producer-plugin,com.atlassian.templaterenderer.api,com.atlassian.crowd.embedded.admin,com.atlassian.analytics.analytics-client,com.atlassian.bitbucket.server.bitbucket-jira,com.atlassian.oauth.consumer.sal,com.atlassian.bitbucket.server.bitbucket-git-rest,com.atlassian.plugins.atlassian-remote-event-common-plugin,com.atlassian.bitbucket.server.bitbucket-repository-ref-sync,com.atlassian.bitbucket.server.bitbucket-comment-likes,com.atlassian.auiplugin,com.atlassian.bitbucket.server.bitbucket-sourcetree,com.atlassian.bitbucket.server.bitbucket-ref-restriction,com.atlassian.plugins.atlassian-plugins-webresource-plugin,com.atlassian.bitbucket.server.bitbucket-upm-accessor,com.atlassian.plugins.atlassian-connect-plugin,com.atlassian.pdkinstall,com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin,com.atlassian.applinks.applinks-cors-plugin,com.atlassian.plugins.browser.metrics.browser-metrics-plugin,com.atlassian.bitbucket.server.bitbucket-xcode,com.atlassian.plugins.cleanup-hub-plugin,com.atlassian.plugins.atlassian-plugins-webresource-rest,com.atlassian.bitbucket.search.embedded-elasticsearch-plugin,com.atlassian.bitbucket.server.bitbucket-pull-request-cleanup,com.atlassian.bitbucket.server.bitbucket-rest-ui,com.atlassian.bitbucket.server.bitbucket-build-jenkins,com.atlassian.bundles.json-schema-validator-atlassian-bundle,com.atlassian.bitbucket.server.bitbucket-jira-commit-checker,tac.bitbucket.languages.ja_JP,com.atlassian.bitbucket.server.bitbucket-emoticons,com.atlassian.bitbucket.server.bitbucket-build-bamboo,com.atlassian.plugins.authentication.atlassian-authentication-plugin,com.atlassian.bitbucket.server.bitbucket-cluster-info,com.atlassian.plugins.atlassian-chaperone,com.atlassian.bitbucket.server.bitbucket-access-tokens,com.atlassian.myapp.bitbucket-plugin-template,com.atlassian.bitbucket.server.bitbucket-rest,com.atlassian.business.insights.core-plugin,com.atlassian.labs.plugins.quickreload.reloader,com.atlassian.applinks.applinks-oauth-plugin,com.atlassian.applinks.applinks-trustedapps-plugin,com.atlassian.plugins.atlassian-remote-event-consumer-plugin,com.atlassian.upm.atlassian-universal-plugin-manager-plugin,com.atlassian.bitbucket.server.bitbucket-notification,com.atlassian.bitbucket.server.bitbucket-default-reviewers,com.atlassian.webhooks.atlassian-webhooks-plugin,com.atlassian.bitbucket.server.bitbucket-connect-support,com.atlassian.bitbucket.server.bitbucket-nav-links,com.atlassian.integration.jira.jira-integration-plugin,com.atlassian.activeobjects.activeobjects-plugin,com.atlassian.bitbucket.server.bitbucket-mirroring-upstream,com.atlassian.plugins.atlassian-nav-links-plugin,com.atlassian.oauth.serviceprovider,com.atlassian.plugins.jquery,com.atlassian.troubleshooting.plugin-bitbucket,com.atlassian.analytics.analytics-whitelist,com.atlassian.bitbucket.server.bitbucket-branch,com.atlassian.bitbucket.server.bitbucket-repository-shortcuts,com.atlassian.bitbucket.server.bitbucket-build,com.atlassian.soy.soy-template-plugin,com.atlassian.bitbucket.server.bitbucket-code-insights,com.atlassian.atlassian-failure-cache-plugin,com.atlassian.bitbucket.server.bitbucket-webhooks,com.atlassian.bitbucket.server.bitbucket-frontend,com.atlassian.stash.plugins.stash-remote-event-bitbucket-server-spi,com.atlassian.bitbucket.server.bitbucket-search,com.atlassian.bitbucket.server.bitbucket-audit,com.atlassian.bitbucket.server.bitbucket-bundled-hooks  
\[INFO\] 2022-10-06 20:18:43,081 WARN \[spring-startup\] c.a.p.c.r.StaticPluginPathScanner Cannot scan directory /static/bitbucket/internal/feature/admin/ratelimit/ in web static as it does not exist  
\[INFO\] 2022-10-06 20:19:10,521 INFO \[spring-startup\] c.a.s.internal.scm.PluginScmService Bitbucket is using C:\\Program Files\\Git\\bin\\git.exe version 2.38.0  
\[INFO\] 2022-10-06 20:19:10,872 INFO \[main\] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 443.052 seconds (JVM running for 443.998)  
\[INFO\] bitbucket started successfully in 492s at <http://localhost:7990/bitbucket>  
\[INFO\] Type Ctrl-C to shutdown gracefully  
\[INFO\] 2022-10-06 20:19:56,600 INFO \[threadpool:thread-2\] c.a.b.i.b.s.m.BuildStatusMigrationRunner Starting Java based migration of remaining build statuses  
\[INFO\] 2022-10-06 20:20:06,613 ERROR \[threadpool:thread-2\] c.a.s.i.c.StateTransferringRunnable Error while processing asynchronous task  
\[INFO\] com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$ServiceTimeoutExceeded: Timeout exceeded waiting for service - com.atlassian.bitbucket.dmz.build.status.dao.DmzLegacyBuildDao  
\[INFO\] at com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.invoke(OsgiServiceProxyFactoryImpl.java:102)  
\[INFO\] at jdk.proxy2/jdk.proxy2.$Proxy443.getMaxId(Unknown Source)  
\[INFO\] at com.atlassian.bitbucket.internal.build.status.migration.BuildStatusMigrationRunner.lambda$null$4(BuildStatusMigrationRunner.java:119)  
\[INFO\] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)  
\[INFO\] at com.atlassian.bitbucket.internal.build.status.migration.BuildStatusMigrationRunner.lambda$doJavaMigration$5(BuildStatusMigrationRunner.java:118)  
\[INFO\] at com.atlassian.stash.internal.concurrent.StateTransferringRunnable.run(StateTransferringRunnable.java:50)  
\[INFO\] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)  
\[INFO\] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)  
\[INFO\] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)  
\[INFO\] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)  
\[INFO\] at java.base/java.lang.Thread.run(Thread.java:1589)  
\[INFO\] ... 1 frame trimmed


author: Bastian Stehmann
body: I think the problem is the timeout when loading the plugins, maybe this helps <https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-does-not-start-unable-to-start-the-following-plugins-due-to-timeout-while-waiting-for-plugin-to-enable-848957056.html>


author: Tamir.Kucherov
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) ,

I don't have this _start-webapp.sh file.

I use windows installation.

Please suggest.

Thanks! Tamir


author: Bastian Stehmann
body: Do you have a similar .bat file? Then check that please.


author: Tamir.Kucherov
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) ,

No. I don't have similar file...

Thanks! Tamir


author: Bastian Stehmann
body: I'm sorry I'm not so familiar with the sdk.

Maybe it works with the jvmargs option described here <https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-run/>


author: Tamir.Kucherov
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) ,

I managed to overcome my original problem with installing AdoptOpenJDK 8 and change the JAVA_HOME accordingly.

Now bitbucket is starting.

I encountered another issue:

When I try to enable Bitbucket Plugin from Manage apps menu, I receive this error in logs:

***\[INFO\] 2022-10-07 23:58:34,097 ERROR \[http-nio-7990-exec-6\] admin @1244WA9x1438x59x0 1i93h2x 0:0:0:0:0:0:0:1 "PUT /rest/plugins/1.0/com.atlassian.myapp.bitbucket-plugin-template-key HTTP/1.1" c.a.plugin.manager.PluginEnabler Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.myapp.bitbucket-plugin-template***

I started bitbucket server with this command:

*atlas-run -DskipTests -Datlassian.plugins.enable.wait=900*

but it doesn't helps as the count of 30 sec. starts from 900 and last till 870.

Any suggestions?

Thank you! Tamir


author: Bastian Stehmann
body: Hi Tamir,

I'm sorry, if it starts at 900, it seems that the parameter is set correct, but I don't have any idea why it stops after 30 seconds, I'm sorry.


Tags: bitbucket-server

client

server