Bitbucket Data Center does not start - java.net.MalformedURLException: no protocol

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

Bitbucket is not starting up (URL issue)

環境

6.7.0

診断

021-03-04 03:49:01,732 INFO [main] o.s.boot.SpringApplication . ____ _ __ _ _ / / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )___ | '_ | '_| | '_ \/ _` | \ \ \ \ / ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |___, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.5.RELEASE) 2021-03-04 03:49:03,112 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on bitbucket-0 with PID 72 (/opt/atlassian/bitbucket/app/WEB-INF/classes started by bitbucket in /var/atlassian/application-data/bitbucket) 2021-03-04 03:49:03,114 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default 2021-03-04 03:49:08,307 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 6.7.0 (6f4b9c7 built on Mon Sep 30 02:13:47 UTC 2019) 2021-03-04 03:49:08,308 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: AdoptOpenJDK OpenJDK 64-Bit Server VM 11.0.10+9 2021-03-04 03:49:16,233 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 19.431 seconds (JVM running for 27.904) 2021-03-04 03:49:29,122 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket 2021-03-04 03:49:41,407 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket/shared 2021-03-04 03:49:42,801 WARN [spring-startup] c.h.i.HazelcastInstanceFactory Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages. Use additional Java arguments to provide Hazelcast access to Java internal API. The internal API access is used to get the best performance results. Arguments to be used: --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED 2021-03-04 03:49:46,828 WARN [spring-startup] com.hazelcast.instance.Node [10.151.26.219]:5701 [bitbucket] [3.11.1] No join method is enabled! Starting standalone. 2021-03-04 03:50:36,799 INFO [spring-startup] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:35783 2021-03-04 03:50:41,639 INFO [spring-startup] c.a.s.i.s.g.t.DefaultTranscodeServer Callback socket listening at 127.0.0.1:33493 2021-03-04 03:50:49,239 WARN [FelixStartLevel] o.e.g.b.e.i.s.ExtenderConfiguration Gemini Blueprint extensions bundle not present, annotation processing disabled. 2021-03-04 03:51:28,707 WARN [spring-startup] c.a.s.i.p.s.OsgiBundledPathScanner Cannot scan directory /com/atlassian/plugin/connect/confluence/ in bundle com.atlassian.plugins.atlassian-connect-plugin; it does not exist 2021-03-04 03:51:29,007 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 2021-03-04 03:51:31,024 WARN [spring-startup] c.a.s.i.p.s.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin; it does not exist 2021-03-04 03:51:31,817 WARN [spring-startup] c.a.s.i.p.s.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle tac.bitbucket.languages.de_DE; it does not exist 2021-03-04 03:51:31,822 WARN [spring-startup] c.a.s.i.p.s.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle tac.bitbucket.languages.fr_FR; it does not exist 2021-03-04 03:51:31,828 WARN [spring-startup] c.a.s.i.p.s.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle tac.bitbucket.languages.ja_JP; it does not exist 2021-03-04 03:51:32,321 INFO [spring-startup] c.a.s.internal.scm.PluginScmService Bitbucket is using /usr/bin/git version 2.23.3 2021-03-04 03:51:32,643 INFO [spring-startup] c.a.b.internal.ssh.server.SshServer Starting SSH server on port 7999... 2021-03-04 03:51:32,930 INFO [spring-startup] c.a.b.internal.ssh.server.SshServer Started SSH server successfully. 2021-03-04 03:51:33,739 INFO [spring-startup] c.a.b.i.s.c.c.DefaultClusterJobManager Registering job for StartupChecksJob 2021-03-04 03:51:33,805 INFO [spring-startup] c.a.b.i.s.i.e.DefaultIndexEventQueueProcessor Event queue processor has been started 2021-03-04 03:51:33,825 INFO [spring-startup] c.a.b.i.s.c.c.DefaultClusterJobManager Registering job for ElasticsearchSynchronizeJob 2021-03-04 03:51:33,826 INFO [spring-startup] c.a.b.i.s.c.j.c.HealthCheckRunner New health check registered: SearchIndexCheck 2021-03-04 03:51:33,827 INFO [spring-startup] c.a.b.i.s.c.j.c.HealthCheckRunner New health check registered: AuthenticationCheck 2021-03-04 03:51:33,828 INFO [spring-startup] c.a.b.i.s.c.j.c.HealthCheckRunner New health check registered: KnownIssueCheck 2021-03-04 03:51:48,757 INFO [Caesium-1-2] c.a.b.i.s.i.jobs.StartupChecksJob Running startup jobs for search 2021-03-04 03:52:39,206 ERROR [http-nio-7990-exec-10] o.a.c.c.C.[.[.[/].[default] Servlet.service() for servlet [default] in context with path [] threw exception java.lang.IllegalStateException: java.net.MalformedURLException: no protocol: <base_url>/plugins/servlet/samlconsumer at com.atlassian.plugins.authentication.impl.config.saml.persistance.SamlConfigDAO.load(SamlConfigDAO.java:71) at com.atlassian.plugins.authentication.impl.config.saml.SamlConfigService.getSamlConfig(SamlConfigService.java:44) at com.atlassian.plugins.authentication.impl.config.AuthenticationConfig.isSkipExternalAuthentication(AuthenticationConfig.java:33) at com.atlassian.plugins.authentication.impl.web.filter.authentication.AuthenticationFilter.shouldAttemptAuthentication(AuthenticationFilter.java:88) at com.atlassian.plugins.authentication.impl.web.filter.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:76) at com.atlassian.stash.internal.spring.lifecycle.LifecycleJohnsonServletFilterModuleContainerFilter.doFilter(LifecycleJohnsonServletFilterModuleContainerFilter.java:42) at com.atlassian.plugin.connect.plugin.auth.oauth2.DefaultSalAuthenticationFilter.doFilter(DefaultSalAuthenticationFilter.java:69) at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:109) at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:37) at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:33) at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:33) at com.atlassian.stash.internal.spring.lifecycle.LifecycleJohnsonServletFilterModuleContainerFilter.doFilter(LifecycleJohnsonServletFilterModuleContainerFilter.java:42) at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:90) at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:73) at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:87) at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.lang.Thread.run(Thread.java:834) ... 87 frames trimmed Caused by: java.net.MalformedURLException: no protocol: <base_url>//plugins/servlet/samlconsumer at java.base/java.net.URL.<init>(URL.java:645) at java.base/java.net.URL.<init>(URL.java:541) at java.base/java.net.URL.<init>(URL.java:488) at com.atlassian.plugins.authentication.impl.config.saml.persistance.SamlConfigDAO.load(SamlConfigDAO.java:69) ... 18 common frames omitted

原因

It happens due to setting wrong value for 'instance.url' in  app_property table,

SELECT * FROM app_property WHERE prop_key = 'instance.url'; prop_key | prop_value --------------+----------------------- instance.url | old_url

ソリューション

Change the instance value as per the requirement.

UPDATE app_property SET prop_value='<new_url>' WHERE prop_key='instance.url';
更新日時: September 26, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。