SCM-Manager fails to start in Ubuntu 20.04

Hi

I just installed scm-manager 2.37.2 on Ubuntu 20.04. scm-manager fails to start with this error

Jul 21 07:16:35 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 07:16:35 svnserv scm-server[15720]: Error: JAVA_HOME is not defined correctly.
Jul 21 07:16:35 svnserv scm-server[15720]:   We cannot execute
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Scheduled restart job, restart counter is at 1.
Jul 21 07:16:35 svnserv systemd[1]: Stopped SCM-Manager Server.
Jul 21 07:16:35 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 07:16:35 svnserv scm-server[15737]: Error: JAVA_HOME is not defined correctly.
Jul 21 07:16:35 svnserv scm-server[15737]:   We cannot execute
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Scheduled restart job, restart counter is at 2.
Jul 21 07:16:35 svnserv systemd[1]: Stopped SCM-Manager Server.
Jul 21 07:16:35 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 07:16:35 svnserv scm-server[15741]: Error: JAVA_HOME is not defined correctly.
Jul 21 07:16:35 svnserv scm-server[15741]:   We cannot execute
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Scheduled restart job, restart counter is at 3.
Jul 21 07:16:35 svnserv systemd[1]: Stopped SCM-Manager Server.
Jul 21 07:16:35 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 07:16:35 svnserv scm-server[15743]: Error: JAVA_HOME is not defined correctly.
Jul 21 07:16:35 svnserv scm-server[15743]:   We cannot execute
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 21 07:16:35 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Scheduled restart job, restart counter is at 4.
Jul 21 07:16:36 svnserv systemd[1]: Stopped SCM-Manager Server.
Jul 21 07:16:36 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 07:16:36 svnserv scm-server[15768]: Error: JAVA_HOME is not defined correctly.
Jul 21 07:16:36 svnserv scm-server[15768]:   We cannot execute
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Scheduled restart job, restart counter is at 5.
Jul 21 07:16:36 svnserv systemd[1]: Stopped SCM-Manager Server.
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Start request repeated too quickly.
Jul 21 07:16:36 svnserv systemd[1]: scm-server.service: Failed with result 'exit-code'.
Jul 21 07:16:36 svnserv systemd[1]: Failed to start SCM-Manager Server.
Jul 21 08:28:26 svnserv systemd[1]: Started SCM-Manager Server.
Jul 21 08:28:27 svnserv scm-server[17507]: 2022-07-21 08:28:27.026:INFO::main: Logging initialized @432ms to org.eclipse.jetty.util.log.StdErrLog
Jul 21 08:28:27 svnserv scm-server[17507]: 2022-07-21 08:28:27.883:INFO:oejs.Server:main: jetty-9.4.44.v20210927; built: 2021-09-27T23:02:44.612Z; git: 8da83308eeca865e495e53ef315a249d63ba9332; jvm 11.0.15+10-Ubuntu-0ubuntu0.20.04.1
Jul 21 08:28:32 svnserv scm-server[17507]: 2022-07-21 08:28:32.117:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /scm, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jul 21 08:28:32 svnserv scm-server[17507]: 2022-07-21 08:28:32.171:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
Jul 21 08:28:32 svnserv scm-server[17507]: 2022-07-21 08:28:32.171:INFO:oejs.session:main: No SessionScavenger set, using defaults
Jul 21 08:28:32 svnserv scm-server[17507]: 2022-07-21 08:28:32.179:INFO:oejs.session:main: node0 Scavenging every 600000ms
Jul 21 08:28:41 svnserv scm-server[17507]: Jul 21, 2022 8:28:41 AM com.google.inject.servlet.GuiceFilter setPipeline
Jul 21 08:28:41 svnserv scm-server[17507]: WARNING: Multiple Servlet injectors detected. This is a warning indicating that you have more than one GuiceFilter running in your web application. If this is deliberate, you may safely ignore >
Jul 21 08:30:17 svnserv systemd[1]: Stopping SCM-Manager Server...
Jul 21 08:30:17 svnserv systemd[1]: scm-server.service: Succeeded.
Jul 21 08:30:17 svnserv systemd[1]: Stopped SCM-Manager Server.

JAVA_HOME is set correctly. here’s the output

$echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/

here’s the scm log

2022-07-21 08:28:33.109 [main] [          ] INFO  sonia.scm.lifecycle.classloading.ClassLoaderLifeCycle - create new simple ClassLoaderLifeCycle
2022-07-21 08:28:33.156 [main] [          ] INFO  sonia.scm.lifecycle.BootstrapContextFilter - register for restart events
2022-07-21 08:28:33.164 [main] [          ] INFO  sonia.scm.event.LegmanScmEventBus - create new event bus ScmEventBus-1
2022-07-21 08:28:33.288 [main] [          ] WARN  io.micrometer.core.instrument.binder.jvm.ExecutorServiceMetrics - Failed to bind as org.apache.shiro.concurrent.SubjectAwareExecutorService is unsupported.
2022-07-21 08:28:33.290 [main] [          ] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.LegmanScmEventBus as event bus implementation
2022-07-21 08:28:33.370 [main] [          ] INFO  sonia.scm.lifecycle.BootstrapContextListener - start scm-manager initialization
2022-07-21 08:28:34.511 [main] [          ] WARN  sonia.scm.lifecycle.PluginBootstrap - install plugin scm-git-plugin:2.37.2
2022-07-21 08:28:35.222 [main] [          ] WARN  sonia.scm.lifecycle.PluginBootstrap - install plugin scm-hg-plugin:2.37.2
2022-07-21 08:28:35.509 [main] [          ] WARN  sonia.scm.lifecycle.PluginBootstrap - install plugin scm-svn-plugin:2.37.2
2022-07-21 08:28:35.944 [main] [          ] WARN  sonia.scm.lifecycle.PluginBootstrap - install plugin scm-legacy-plugin:2.37.2
2022-07-21 08:28:35.990 [main] [          ] INFO  sonia.scm.plugin.PluginProcessor - collect plugins
2022-07-21 08:28:36.046 [main] [          ] INFO  sonia.scm.plugin.PluginProcessor - install plugin tree:
+- scm-git-plugin@2.37.2
+- scm-legacy-plugin@2.37.2
+- scm-hg-plugin@2.37.2
+- scm-svn-plugin@2.37.2

2022-07-21 08:28:37.355 [main] [          ] INFO  sonia.scm.update.repository.XmlRepositoryV1UpdateStep - no v1 repositories database file found
2022-07-21 08:28:37.744 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.repository.xml and version 2.0.0 (class sonia.scm.update.repository.XmlRepositoryV1UpdateStep)
2022-07-21 08:28:37.745 [main] [          ] INFO  sonia.scm.update.repository.XmlRepositoryV1UpdateStep - no v1 repositories database file found
2022-07-21 08:28:37.817 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.group.xml and version 2.0.0 (class sonia.scm.update.group.XmlGroupV1UpdateStep)
2022-07-21 08:28:37.818 [main] [          ] INFO  sonia.scm.update.group.XmlGroupV1UpdateStep - no v1 file for groups found
2022-07-21 08:28:37.846 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.index and version 2.0.0 (class sonia.scm.update.index.RemoveCombinedIndex)
2022-07-21 08:28:37.856 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin.PluginSetsConfig and version 2.0.0 (class sonia.scm.update.plugin.PluginSetsConfigInitializationUpdateStep)
2022-07-21 08:28:37.865 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.dao.xml and version 2.0.0 (class sonia.scm.update.store.DifferentiateBetweenConfigAndConfigEntryForGlobalStoreUpdateStep)
2022-07-21 08:28:37.870 [main] [          ] INFO  sonia.scm.update.store.DifferentiateBetweenConfigAndConfigEntryUpdateStep - Updating config entry file: /var/lib/scm/config/executedUpdates.xml
2022-07-21 08:28:38.085 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.user.xml and version 2.0.0 (class sonia.scm.update.user.XmlUserV1UpdateStep)
2022-07-21 08:28:38.087 [main] [          ] INFO  sonia.scm.update.user.XmlUserV1UpdateStep - no v1 file for users found
2022-07-21 08:28:38.096 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin.git and version 2.0.0 (class sonia.scm.repository.update.GitV2UpdateStep)
2022-07-21 08:28:38.109 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.git.lfs and version 2.0.0 (class sonia.scm.web.lfs.LfsV1UpdateStep)
2022-07-21 08:28:38.122 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin-center and version 2.0.0 (class sonia.scm.update.plugin.PluginCenterUpdateStep)
2022-07-21 08:28:38.142 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin.svn and version 2.0.0 (class sonia.scm.repository.SvnV2UpdateStep)
2022-07-21 08:28:38.156 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin-center and version 2.0.1 (class sonia.scm.update.plugin.PluginCenterJreVersionUpdateStep)
2022-07-21 08:28:38.176 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.security.xml and version 2.0.1 (class sonia.scm.update.security.XmlSecurityV1UpdateStep)
2022-07-21 08:28:38.186 [main] [          ] INFO  sonia.scm.update.security.XmlSecurityV1UpdateStep - no v1 file for security found
2022-07-21 08:28:38.194 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.repository.xml and version 2.0.1 (class sonia.scm.update.repository.XmlRepositoryFileNameUpdateStep)
2022-07-21 08:28:38.201 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.git.lfs and version 2.0.1 (class sonia.scm.web.lfs.RemoveRepositoryIdFromBlobStoreUpdateStep)
2022-07-21 08:28:38.209 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.repository.xml and version 2.0.2 (class sonia.scm.update.repository.MigrateVerbsToPermissionRoles)
2022-07-21 08:28:38.218 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.repository.xml and version 2.0.3 (class sonia.scm.update.repository.PublicFlagUpdateStep)
2022-07-21 08:28:38.218 [main] [          ] INFO  sonia.scm.update.repository.PublicFlagUpdateStep - Migrating public flags of repositories as RepositoryRolePermission 'READ' for user '_anonymous'
2022-07-21 08:28:38.234 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type config.xml and version 2.4.0 (class sonia.scm.update.repository.AnonymousModeUpdateStep)
2022-07-21 08:28:38.242 [main] [          ] INFO  sonia.scm.update.UpdateEngine - running update step for type sonia.scm.plugin-center.authentication and version 2.30.0 (class sonia.scm.update.plugin.PluginCenterAuthenticationUpdateStep)
2022-07-21 08:28:38.299 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.security.gpg.GPGModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.GitServletModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.SvnServletModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.repository.hooks.HookModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.autoconfig.AutoConfigModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.legacy.LegacyModule
2022-07-21 08:28:38.300 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.HgServletModule
2022-07-21 08:28:38.333 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.metrics.HttpMetricsFilter to filter chain
2022-07-21 08:28:38.334 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.filter.BaseUrlFilter to filter chain
2022-07-21 08:28:38.334 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.security.TokenExpiredFilter to filter chain
2022-07-21 08:28:38.335 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.filter.DefaultHttpProtocolServletAuthenticationFilter to filter chain
2022-07-21 08:28:38.335 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.security.ApiAuthenticationFilter to filter chain
2022-07-21 08:28:38.336 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.legacy.LegacyProtocolServletAuthenticationFilter to filter chain
2022-07-21 08:28:38.337 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.filter.MDCFilter to filter chain
2022-07-21 08:28:38.338 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.security.TokenRefreshFilter to filter chain
2022-07-21 08:28:38.338 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.lifecycle.RestartServlet to servlet chain
2022-07-21 08:28:38.339 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.web.i18n.I18nServlet to servlet chain
2022-07-21 08:28:38.341 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.web.protocol.HttpProtocolServlet to servlet chain
2022-07-21 08:28:38.341 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.WebResourceServlet to servlet chain
2022-07-21 08:28:38.391 [main] [          ] INFO  sonia.scm.plugin.DefaultExtensionProcessor - start processing extensions
2022-07-21 08:28:38.418 [main] [          ] WARN  sonia.scm.plugin.ExtensionBinder - could not find extension for extension point interface sonia.scm.api.v2.resources.LogoutRedirection
2022-07-21 08:28:38.442 [main] [          ] WARN  sonia.scm.plugin.ExtensionBinder - could not find extension for extension point interface sonia.scm.io.FileSystem
2022-07-21 08:28:38.511 [main] [          ] INFO  sonia.scm.plugin.DefaultExtensionProcessor - bound extensions in 118.8 ms
2022-07-21 08:28:38.781 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.ApiKeyRealm
2022-07-21 08:28:38.795 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.BearerRealm
2022-07-21 08:28:38.796 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.initialization.InitializationRealm
2022-07-21 08:28:38.797 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.AnonymousRealm
2022-07-21 08:28:38.797 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.web.security.AdministrationContextRealm
2022-07-21 08:28:38.798 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.legacy.LegacyRealm
2022-07-21 08:28:38.798 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.DefaultRealm
2022-07-21 08:28:42.012 [main] [          ] WARN  sonia.scm.cache.GuavaCacheConfigurationReader - could not find manual configuration at /var/lib/scm/ext/gcache.xml
2022-07-21 08:28:42.252 [main] [          ] WARN  sonia.scm.repository.HgVerifier - /usr/local/sbin/hg is not a regular file
2022-07-21 08:28:42.252 [main] [          ] WARN  sonia.scm.repository.HgVerifier - /usr/local/bin/hg is not a regular file
2022-07-21 08:28:42.252 [main] [          ] WARN  sonia.scm.repository.HgVerifier - /usr/sbin/hg is not a regular file
2022-07-21 08:28:42.760 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.HgRepositoryHandler for type Type{name=hg, displayName=Mercurial}
2022-07-21 08:28:42.970 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.SvnRepositoryHandler for type Type{name=svn, displayName=Subversion}
2022-07-21 08:28:42.970 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.GitRepositoryHandler for type Type{name=git, displayName=Git}
2022-07-21 08:28:43.458 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.LastModifiedUpdateListener
2022-07-21 08:28:43.459 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.security.AuthorizationChangedEventProducer
2022-07-21 08:28:43.460 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.update.RepositoryUpdateAfterCreationHook
2022-07-21 08:28:43.460 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.user.DefaultUserManager
2022-07-21 08:28:43.460 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.user.AnonymousUserDeletionEventHandler
2022-07-21 08:28:43.460 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.ReadOnlyCheckInitializer
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.RemoveDeletedRepositoryRole
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.config.ScmConfigurationChangedListener
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.DefaultBranchDeleteProtection
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.GitRepositoryModifyListener
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.plugin.PluginCenterRefresh
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.DefaultBranchChangedDispatcher
2022-07-21 08:28:43.461 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.initialization.DefaultInitializationFinisher
2022-07-21 08:30:56.604 [main] [          ] INFO  sonia.scm.lifecycle.classloading.ClassLoaderLifeCycle - create new simple ClassLoaderLifeCycle
2022-07-21 08:30:56.611 [main] [          ] INFO  sonia.scm.lifecycle.BootstrapContextFilter - register for restart events
2022-07-21 08:30:56.615 [main] [          ] INFO  sonia.scm.event.LegmanScmEventBus - create new event bus ScmEventBus-1
2022-07-21 08:30:56.705 [main] [          ] WARN  io.micrometer.core.instrument.binder.jvm.ExecutorServiceMetrics - Failed to bind as org.apache.shiro.concurrent.SubjectAwareExecutorService is unsupported.
2022-07-21 08:30:56.707 [main] [          ] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.LegmanScmEventBus as event bus implementation
2022-07-21 08:30:56.778 [main] [          ] INFO  sonia.scm.lifecycle.BootstrapContextListener - start scm-manager initialization
2022-07-21 08:30:57.593 [main] [          ] INFO  sonia.scm.plugin.PluginProcessor - collect plugins
2022-07-21 08:30:57.640 [main] [          ] INFO  sonia.scm.plugin.PluginProcessor - install plugin tree:
+- scm-git-plugin@2.37.2
+- scm-legacy-plugin@2.37.2
+- scm-hg-plugin@2.37.2
+- scm-svn-plugin@2.37.2

2022-07-21 08:30:58.423 [main] [          ] INFO  sonia.scm.update.repository.XmlRepositoryV1UpdateStep - no v1 repositories database file found
2022-07-21 08:30:58.818 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.security.gpg.GPGModule
2022-07-21 08:30:58.819 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.HgServletModule
2022-07-21 08:30:58.819 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.legacy.LegacyModule
2022-07-21 08:30:58.820 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.SvnServletModule
2022-07-21 08:30:58.820 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.autoconfig.AutoConfigModule
2022-07-21 08:30:58.820 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.repository.hooks.HookModule
2022-07-21 08:30:58.820 [main] [          ] INFO  sonia.scm.lifecycle.modules.ApplicationModuleProvider - add module class sonia.scm.web.GitServletModule
2022-07-21 08:30:58.867 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.metrics.HttpMetricsFilter to filter chain
2022-07-21 08:30:58.868 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.filter.BaseUrlFilter to filter chain
2022-07-21 08:30:58.869 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.security.TokenExpiredFilter to filter chain
2022-07-21 08:30:58.870 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.legacy.LegacyProtocolServletAuthenticationFilter to filter chain
2022-07-21 08:30:58.871 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.filter.DefaultHttpProtocolServletAuthenticationFilter to filter chain
2022-07-21 08:30:58.872 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.security.ApiAuthenticationFilter to filter chain
2022-07-21 08:30:58.873 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.filter.MDCFilter to filter chain
2022-07-21 08:30:58.873 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind filter class sonia.scm.web.security.TokenRefreshFilter to filter chain
2022-07-21 08:30:58.874 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.lifecycle.RestartServlet to servlet chain
2022-07-21 08:30:58.875 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.web.protocol.HttpProtocolServlet to servlet chain
2022-07-21 08:30:58.876 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.web.i18n.I18nServlet to servlet chain
2022-07-21 08:30:58.880 [main] [          ] INFO  sonia.scm.filter.WebElementModule - bind servlet class sonia.scm.WebResourceServlet to servlet chain
2022-07-21 08:30:58.919 [main] [          ] INFO  sonia.scm.plugin.DefaultExtensionProcessor - start processing extensions
2022-07-21 08:30:58.930 [main] [          ] WARN  sonia.scm.plugin.ExtensionBinder - could not find extension for extension point interface sonia.scm.io.FileSystem
2022-07-21 08:30:58.946 [main] [          ] WARN  sonia.scm.plugin.ExtensionBinder - could not find extension for extension point interface sonia.scm.api.v2.resources.LogoutRedirection
2022-07-21 08:30:59.035 [main] [          ] INFO  sonia.scm.plugin.DefaultExtensionProcessor - bound extensions in 115.2 ms
2022-07-21 08:30:59.270 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.BearerRealm
2022-07-21 08:30:59.272 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.AnonymousRealm
2022-07-21 08:30:59.272 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.legacy.LegacyRealm
2022-07-21 08:30:59.273 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.web.security.AdministrationContextRealm
2022-07-21 08:30:59.273 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.ApiKeyRealm
2022-07-21 08:30:59.273 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.DefaultRealm
2022-07-21 08:30:59.274 [main] [          ] INFO  sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.initialization.InitializationRealm
2022-07-21 08:31:02.661 [main] [          ] WARN  sonia.scm.cache.GuavaCacheConfigurationReader - could not find manual configuration at /var/lib/scm/ext/gcache.xml
2022-07-21 08:31:04.097 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.SvnRepositoryHandler for type Type{name=svn, displayName=Subversion}
2022-07-21 08:31:04.099 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.HgRepositoryHandler for type Type{name=hg, displayName=Mercurial}
2022-07-21 08:31:04.328 [main] [          ] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.GitRepositoryHandler for type Type{name=git, displayName=Git}
2022-07-21 08:31:04.932 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.DefaultBranchDeleteProtection
2022-07-21 08:31:04.932 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.DefaultRepositoryRoleManager
2022-07-21 08:31:04.932 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.LastModifiedUpdateListener
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.plugin.PluginCenterRefresh
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.ReadOnlyCheckInitializer
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.user.AnonymousUserDeletionEventHandler
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.api.v2.resources.GitRepositoryConfigChangeClearRepositoryCacheListener
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.RemoveDeletedRepositoryRole
2022-07-21 08:31:04.933 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.security.AuthorizationChangedEventProducer
2022-07-21 08:31:04.935 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.repository.GitRepositoryModifyListener
2022-07-21 08:31:04.935 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.user.DefaultUserManager
2022-07-21 08:31:04.935 [main] [          ] INFO  sonia.scm.lifecycle.modules.EagerSingletonModule - initialize eager singleton sonia.scm.initialization.DefaultInitializationFinisher
2022-07-21 08:42:42.359 [CronScheduler-1-1] [          ] INFO  sonia.scm.plugin.PluginCenterLoader - fetch plugins from https://plugin-center-api.scm-manager.org/api/v1/plugins/2.37.2?os=Linux&arch=64&jre=11.0.15
2022-07-21 08:42:43.796 [CronScheduler-1-1] [          ] INFO  sonia.scm.trace.LoggingExporter - received Plugin Center span, which took 1430ms:
 - url: https://plugin-center-api.scm-manager.org/api/v1/plugins/2.37.2?os=Linux&arch=64&jre=11.0.15
 - method: GET
 - status: 200

Hi,

the first question is, whether JAVA_HOME is set only for your current shell or globally. The second one: SCM-Manager started up nonetheless. Can you access it on http://localhost:8080/scm/ ?

René

Hi

thank you for the quick response

I initially thought the installer will do it, but none the less i set it up in /etc/environment

i cannot access http://192.168.2.80:8080/scm. i get " This site can’t be reached" (i’m running it on a ubuntu server in a vm)

i’m able to see apache running though as i get a valid response

I even tried running it on a fresh ubuntu machine with docker

docker run --name scm -p 8080:8080 -v scm-home:/var/lib/scm scmmanager/scm-manager:2.37.2

& tried to access http://192.168.2.47:8080/scm & still no luck

Your docker call definitely looks right, and when I run it exactly the same way, SCM-Manager starts up. Are you sure about the IP address? Can you try to call curl on the machine itself like

curl localhost:8080/scm/api/v2

this is what i got

curl localhost:8080/scm/api/v2
curl: (7) Failed to connect to localhost port 8080: Connection refused

on the docker machine, i’m getting this


curl localhost:8080/scm/api/v2
curl: (56) Recv failure: Connection reset by peer

OK, this is getting strange. When your docker server is running, you can check whether the port was bound correctly (this should return one line with state LISTEN):

docker exec -ti scm netstat -tulpn

And you post your docker logs?