Universal Plugin Manager says the datetime zone ID is not recognised
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
The Manage Apps section of the Administration panel shows a timezone error like this:
In addition to that, an error like this is written in the atlassian-bitbucket.log
:
2021-07-29 10:26:46,944 ERROR [http-nio-7990-exec-4] asder00 @1B67AM3x626x400379x9 adminusr 12.3.4.56,127.0.0.1 "GET /rest/plugins/1.0/installed-marketplace HTTP/1.0" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: The datetime zone id 'SystemV/PST8' is not recognised
java.lang.IllegalArgumentException: The datetime zone id 'SystemV/PST8' is not recognised
at org.joda.time.DateTimeZone.forTimeZone(DateTimeZone.java:385)
at com.atlassian.upm.license.internal.BitbucketLicenseDateFormatter.getUserTimeZone(BitbucketLicenseDateFormatter.java:20)
at com.atlassian.upm.license.internal.impl.DefaultLicenseDateFormatter.formatInternal(DefaultLicenseDateFormatter.java:35)
at com.atlassian.upm.license.internal.impl.DefaultLicenseDateFormatter.formatDate(DefaultLicenseDateFormatter.java:28)
at com.atlassian.upm.rest.representations.PluginLicenseRepresentation.<init>(PluginLicenseRepresentation.java:163)
at com.atlassian.upm.rest.representations.UpmRepresentationFactoryImpl.createPluginLicenseRepresentation(UpmRepresentationFactoryImpl.java:523)
at com.atlassian.upm.rest.representations.UpmRepresentationFactoryImpl.getLicenseDetailsRepresentation(UpmRepresentationFactoryImpl.java:321)
at com.atlassian.upm.rest.representations.UpmRepresentationFactoryImpl.createInstalledMarketplacePluginRepresentation(UpmRepresentationFactoryImpl.java:237)
at com.atlassian.upm.rest.representations.InstalledMarketplacePluginRepresentation$PluginToRepFunction.apply(InstalledMarketplacePluginRepresentation.java:217)
at com.atlassian.upm.rest.representations.InstalledMarketplacePluginRepresentation$PluginToRepFunction.apply(InstalledMarketplacePluginRepresentation.java:197)
...
診断
Configuring a value for the -Duser.timezone
setting in the JVM_SUPPORT_RECOMMENDED_ARGS
property in _start-webapp.sh
and restarting the instance does not help.
原因
The Universal Plugin Manager uses Joda Time instead of JVM's time library, and Joda Time doesn't support SystemV names.
ソリューション
Edit the timezone preferences in the profile (<BITBUCKET_BASE_URL>/account) of the user accessing the Manage Apps page.
Note that in the user profile it might just be being shown as PST8 (or whichever timezone shown in the error) and SystemV may not be visible.