Fatal Error: The operating system or Java runtime is outdated or unsupported.
Asked by Steven Brannan:

This is on Linux 8 with JRE 17.0.9 from the 8.19.1 installer used and a SQL Database. So I don't think the OS or Java is the issue. I've tried new install \& upgrade install. Git is 2.39. enclosing some log files. I'm out of ideas to get this to run.

2024-04-17 18:04:47,800 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 8.19.1 (a9e4602 built on Wed Apr 03 23:50:49 EDT 2024)  
2024-04-17 18:04:47,800 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger JVM: Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.9+9  
2024-04-17 18:04:51,990 INFO \[main\] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 8.538 seconds (JVM running for 10.341)  
2024-04-17 18:05:00,320 INFO \[spring-startup\] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /data/collections/bitbucket-home  
2024-04-17 18:05:04,658 INFO \[spring-startup\] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /data/collections/bitbucket-home/shared  
2024-04-17 18:05:06,187 WARN \[spring-startup\] com.hazelcast.instance.impl.Node \[146.55.28.34\]:5701 \[atlbitbucket\] \[5.2.5\] No join method is enabled! Starting standalone.  
2024-04-17 18:05:22,090 WARN \[hz.hazelcast.event-3\] ROOT Switching to log level \[INFO\]  
2024-04-17 18:05:22,092 INFO \[hz.hazelcast.event-1\] com.atlassian.bitbucket Switching to log level \[DEBUG\]  
2024-04-17 18:05:22,093 ERROR \[hz.hazelcast.event-3\] com.atlassian.event.remote Switching to log level \[DEBUG\]  
2024-04-17 18:05:22,094 INFO \[hz.hazelcast.event-1\] com.atlassian.stash Switching to log level \[DEBUG\]  
2024-04-17 18:05:22,095 WARN \[hz.hazelcast.event-4\] org.hibernate Switching to log level \[INFO\]  
2024-04-17 18:05:22,096 WARN \[hz.hazelcast.event-4\] org.springframework Switching to log level \[INFO\]  
2024-04-17 18:05:22,097 INFO \[hz.hazelcast.event-3\] c.h.i.diagnostics.HealthMonitor Switching to log level \[DEBUG\]  
2024-04-17 18:05:22,154 DEBUG \[spring-startup\] c.a.s.i.s.DefaultOperatingSystemService Pre-fetch of CPU load: 1.0  
2024-04-17 18:05:22,204 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[mirror-hosting\] Configuration-derived value for fixed ticket limit: 4  
2024-04-17 18:05:22,205 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[mirror-hosting\] Configured fixed throttling: \[tickets=4, queue-timeout=3600s\]  
2024-04-17 18:05:22,207 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-refs\] Configuration-derived value for fixed ticket limit: 16  
2024-04-17 18:05:22,209 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-refs\] Configured fixed throttling: \[tickets=16, queue-timeout=120s\]  
2024-04-17 18:05:22,211 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-command\] Configuration-derived value for fixed ticket limit: 50  
2024-04-17 18:05:22,212 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-command\] Configured fixed throttling: \[tickets=50, queue-timeout=2s\]  
2024-04-17 18:05:22,215 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[git-lfs\] Configuration-derived value for fixed ticket limit: 80  
2024-04-17 18:05:22,216 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[git-lfs\] Configured fixed throttling: \[tickets=80, queue-timeout=0s\]  
2024-04-17 18:05:22,226 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Configuration-derived value for minimum ticket limit: 2  
2024-04-17 18:05:22,228 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Configuration-derived value for maximum ticket limit: 8  
2024-04-17 18:05:22,230 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] The total memory on this machine is 16005 MB  
2024-04-17 18:05:22,232 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated typical memory per ticket: 256 MB  
2024-04-17 18:05:22,232 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated application webapp requirement: 1024 MB  
2024-04-17 18:05:22,235 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated application search requirement: 512 MB  
2024-04-17 18:05:22,235 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated combined application webapp and search requirements: 1536 MB  
2024-04-17 18:05:22,235 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated remaining memory available to ticketed operations: 14469 MB  
2024-04-17 18:05:22,235 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Estimated safe max tickets: 56  
2024-04-17 18:05:22,235 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Choosing an adaptive ticket range of 2..8  
2024-04-17 18:05:22,237 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Configuration-derived value for fixed ticket limit: 3  
2024-04-17 18:05:22,239 DEBUG \[spring-startup\] c.a.s.i.t.ResourceThrottleStrategyProvider \[scm-hosting\] Configured adaptive throttling: \[range=2..8, no-cpu-tickets=3, cpu-target=0.75, cpu-per-typical-ticket=0.04, cpu-historical-weightin  
g=0.8, interval=5s, queue-timeout=300s, no-cpu-threshold=20s\]  
2024-04-17 18:05:22,367 DEBUG \[spring-startup\] c.a.s.i.s.g.m.DefaultSidecarManager Preparing and starting sidecar  
2024-04-17 18:05:31,800 INFO \[spring-startup\] c.a.s.i.s.g.m.DefaultSidecarManager Sidecar started after 9433ms  
2024-04-17 18:05:31,943 DEBUG \[spring-startup\] c.a.s.i.s.g.b.DefaultGitBinaryHelper Searching PATH for git executable  
2024-04-17 18:05:32,025 DEBUG \[spring-startup\] c.a.s.i.s.g.b.DefaultGitBinaryHelper Found git version 2.39.3 at /usr/bin/git  
2024-04-17 18:05:32,028 DEBUG \[spring-startup\] c.a.s.i.scm.git.DefaultGitScmConfig git executable has been set to /usr/bin/git (2.39.3)  
2024-04-17 18:05:32,030 DEBUG \[spring-startup\] c.a.s.i.scm.git.DefaultGitScmConfig libexec has not been configured; core binaries will not be available  
2024-04-17 18:05:32,598 DEBUG \[spring-startup\] c.a.s.i.t.SemaphoreThrottleService Configured resource \[scm-hosting\]: \[state=StartingState{tickets=3.0, timestamp=1713391522243, smoothedCpuLoad=unknown}, config=\[ticket-range=\[2..8\], targe  
t-cpu=0.75, fallback-tickets=3, fallback-timeout=20s, acquire-timeout=300s\]\]  
2024-04-17 18:05:32,601 DEBUG \[spring-startup\] c.a.s.i.t.SemaphoreThrottleService Configured resource \[git-lfs\]: \[tickets = 80, acquire timeout = 0s\]  
2024-04-17 18:05:32,602 DEBUG \[spring-startup\] c.a.s.i.t.SemaphoreThrottleService Configured resource \[scm-command\]: \[tickets = 50, acquire timeout = 2s\]  
2024-04-17 18:05:32,602 DEBUG \[spring-startup\] c.a.s.i.t.SemaphoreThrottleService Configured resource \[mirror-hosting\]: \[tickets = 4, acquire timeout = 3600s\]  
2024-04-17 18:05:32,602 DEBUG \[spring-startup\] c.a.s.i.t.SemaphoreThrottleService Configured resource \[scm-refs\]: \[tickets = 16, acquire timeout = 120s\]  
2024-04-17 18:05:33,441 DEBUG \[spring-startup\] c.a.s.i.s.u.CreateSystemSigningSecretKeyUpgradeTask Skipping upgrade task to create system signing secret key as this has already been done  
2024-04-17 18:05:34,727 DEBUG \[spring-startup\] c.a.s.i.i.u.MoveSnapshotDirUpgradeTask Skipping upgrade task to move the repository snapshots as this has already been completed  
2024-04-17 18:05:34,833 DEBUG \[spring-startup\] c.a.s.i.m.h.MigrateMirrorHashUpgradeTask Skipping upgrade task; it has already been completed  
2024-04-17 18:05:35,684 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 'hookScriptExecutorFactory' defined in URL \[jar:file:/data/atlassian/bitbucket/8.19.1/app/WEB-INF/lib/bitbucket-service-impl-8.19.1.jar!/com/atlassian/stash/internal/hook/script/DefaultHookScriptRunnerFactory.clas  
s\]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nioProcessHelper' defined in class path resource \[stash-con  
text.xml\]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO  
2024-04-17 18:05:35,700 DEBUG \[spring-startup\] c.a.s.i.i.DefaultCommitIndexingService IndexingService is shutting down. Running indexing jobs will be aborted  
2024-04-17 18:05:35,715 DEBUG \[spring-startup\] c.a.s.i.c.HazelcastBucketedExecutor Executor service has shutdown gracefully  
2024-04-17 18:05:35,715 DEBUG \[spring-startup\] c.a.s.i.c.HazelcastBucketedExecutor Executor service has shutdown gracefully  
2024-04-17 18:05:35,735 DEBUG \[spring-startup\] c.a.s.i.c.HazelcastBucketedExecutor Executor service has shutdown gracefully  
2024-04-17 18:05:35,736 DEBUG \[spring-startup\] c.a.s.i.c.HazelcastBucketedExecutor Executor service has shutdown gracefully  
2024-04-17 18:05:35,738 WARN \[spring-startup\] o.s.c.a.CommonAnnotationBeanPostProcessor Destroy method on bean with name 'meshController' threw an exception: java.lang.NullPointerException: Listener ID should not be null!  
2024-04-17 18:05:35,760 DEBUG \[spring-startup\] c.a.s.i.s.git.mesh.DefaultMeshClient Executor service has shutdown gracefully

latest log entry after trying a fresh install of 8.19.2:

2024-05-02 13:08:22,301 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 'migrationService' defined in URL \[jar:file:/data/atlassian/bitbucket/8.19.2/app/WEB-INF/lib/bitbucket-service-impl-8.19.2.jar!/com/atlassian/stash/internal/migration/DefaultMigrationService.class\]: Unsatisfied de  
pendency expressed through constructor parameter 9; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshMigrationService' defined in URL \[jar:file:/data/atlassian/bitbu  
cket/8.19.2/app/WEB-INF/lib/bitbucket-service-impl-8.19.2.jar!/com/atlassian/stash/internal/migration/DefaultMeshMigrationService.class\]: Unsatisfied dependency expressed through constructor parameter 5; nested exception is org.springfra  
mework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryMigrator' defined in com.atlassian.stash.internal.scm.git.GitWiring$MeshWiring: Unsatisfied dependency expressed through method 'repositoryMigr  
ator' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshGitCommandBuilderFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring$MeshWiring: U  
nsatisfied dependency expressed through method 'gitCommandBuilderFactory' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com  
.atlassian.stash.internal.scm.git.GitWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nio  
ProcessHelper' defined in class path resource \[stash-context.xml\]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO

any help out there??


Answers:
author: Steven Brannan
body: Main error is this from log:

2024-05-02 13:08:22,301 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 'migrationService' defined in URL \[jar:file:/data/atlassian/bitbucket/8.19.2/app/WEB-INF/lib/bitbucket-service-impl-8.19.2.jar!/com/atlassian/stash/internal/migration/DefaultMigrationService.class\]: Unsatisfied de  
pendency expressed through constructor parameter 9; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshMigrationService' defined in URL \[jar:file:/data/atlassian/bitbu  
cket/8.19.2/app/WEB-INF/lib/bitbucket-service-impl-8.19.2.jar!/com/atlassian/stash/internal/migration/DefaultMeshMigrationService.class\]: Unsatisfied dependency expressed through constructor parameter 5; nested exception is org.springfra  
mework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryMigrator' defined in com.atlassian.stash.internal.scm.git.GitWiring$MeshWiring: Unsatisfied dependency expressed through method 'repositoryMigr  
ator' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshGitCommandBuilderFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring$MeshWiring: U  
nsatisfied dependency expressed through method 'gitCommandBuilderFactory' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gitCommandCreator' defined in com  
.atlassian.stash.internal.scm.git.GitWiring: Unsatisfied dependency expressed through method 'gitCommandCreator' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nio  
ProcessHelper' defined in class path resource \[stash-context.xml\]: Invocation of init method failed; nested exception is com.atlassian.bitbucket.internal.process.NioUnsupportedException: Failed to initialize NIO


Tags: bitbucket-data-center

data-center