cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco exception: connection refused and downgrading of module is not allowed

JackyWong-HKT
Champ in-the-making
Champ in-the-making

Hi, I'm new to developing in ACS; 

So when I try to start up a local instance of ACS, which the was base on All-In-One (AIO) project for SDK 4.0, and the ACS built based on image pull from docker hub - alfresco/alfresco-content-repository:6.2.0, I got 2 errors after build_start, which confusing me: 

1/ a connection refuse exception; what exacting service.dao.SyncServiceRegistryDAOImpl is doing here ?

alfresco-acs_1 | 2021-11-09 08:58:52,563 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
alfresco-acs_1 | 2021-11-09 08:58:52,587 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
alfresco-acs_1 | 2021-11-09 08:58:53,459 ERROR [service.dao.SyncServiceRegistryDAOImpl] [localhost-startStop-1] Unable to determine hostname due to exception: Connection refused (Connection refused) trying InetAddress...
alfresco-acs_1 | java.net.ConnectException: Connection refused (Connection refused)
alfresco-acs_1 | at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
alfresco-acs_1 | at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
alfresco-acs_1 | at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
alfresco-acs_1 | at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
alfresco-acs_1 | at java.base/java.net.Socket.connect(Socket.java:591)
alfresco-acs_1 | at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
alfresco-acs_1 | at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
alfresco-acs_1 | at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
alfresco-acs_1 | at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
alfresco-acs_1 | at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
alfresco-acs_1 | at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1242)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1065)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1063)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:793)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1062)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1009)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1501)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1499)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:793)
alfresco-acs_1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
alfresco-acs_1 | at org.alfresco.repo.sync.service.dao.SyncServiceRegistryDAOImpl.getHostname(SyncServiceRegistryDAOImpl.java:113)
alfresco-acs_1 | at org.alfresco.repo.sync.service.dao.SyncServiceRegistryDAOImpl.setSyncServiceUris(SyncServiceRegistryDAOImpl.java:70)
alfresco-acs_1 | at org.alfresco.repo.sync.service.dao.SyncServiceRegistryDAOImpl.setSyncServiceUris(SyncServiceRegistryDAOImpl.java:52)
alfresco-acs_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
alfresco-acs_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
alfresco-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco-acs_1 | at org.springframework.beans.BeanWrapperImpl$BeanPropertyHandler.lambda$setValue$3(BeanWrapperImpl.java:324)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco-acs_1 | at org.springframework.beans.BeanWrapperImpl$BeanPropertyHandler.setValue(BeanWrapperImpl.java:323)
alfresco-acs_1 | at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:458)
alfresco-acs_1 | at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278)
alfresco-acs_1 | at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266)
alfresco-acs_1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:97)
alfresco-acs_1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:77)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1714)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1433)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
alfresco-acs_1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
alfresco-acs_1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
alfresco-acs_1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
alfresco-acs_1 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400)
alfresco-acs_1 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
alfresco-acs_1 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
alfresco-acs_1 | at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
alfresco-acs_1 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
alfresco-acs_1 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
alfresco-acs_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:717)
alfresco-acs_1 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
alfresco-acs_1 | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
alfresco-acs_1 | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
alfresco-acs_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
alfresco-acs_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
alfresco-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
alfresco-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
alfresco-acs_1 | at java.base/java.lang.Thread.run(Thread.java:834)

2/ Failed to start module to "Downgrading of module is not allowed" ; but I checked all the pom, dockerfile, and grep through the container, I counld not find where the "newer" 1.4.0 aos module came from

alfresco-acs_1 | 2021-11-09 08:59:00,625 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
alfresco-acs_1 | org.alfresco.error.AlfrescoRuntimeException: 10090020 Failed to start modules
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:326)
alfresco-acs_1 | at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:213)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:149)
alfresco-acs_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
alfresco-acs_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
alfresco-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco-acs_1 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
alfresco-acs_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
alfresco-acs_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
alfresco-acs_1 | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
alfresco-acs_1 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
alfresco-acs_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco-acs_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
alfresco-acs_1 | at com.sun.proxy.$Proxy138.startModules(Unknown Source)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:73)
alfresco-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
alfresco-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:338)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:83)
alfresco-acs_1 | at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:78)
alfresco-acs_1 | at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
alfresco-acs_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:221)
alfresco-acs_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:186)
alfresco-acs_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:206)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
alfresco-acs_1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
alfresco-acs_1 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400)
alfresco-acs_1 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
alfresco-acs_1 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
alfresco-acs_1 | at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
alfresco-acs_1 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
alfresco-acs_1 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
alfresco-acs_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
alfresco-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco-acs_1 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:717)
alfresco-acs_1 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
alfresco-acs_1 | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
alfresco-acs_1 | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
alfresco-acs_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
alfresco-acs_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
alfresco-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
alfresco-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
alfresco-acs_1 | at java.base/java.lang.Thread.run(Thread.java:834)
alfresco-acs_1 | Caused by: org.alfresco.error.AlfrescoRuntimeException: 10090019
alfresco-acs_1 | Downgrading of modules is not supported.
alfresco-acs_1 | Module 'alfresco-aos-module' version 1.4.0 is currently installed and must be uninstalled before version 1.3.0 can be installed.
alfresco-acs_1 | at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:52)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:633)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper.access$5(ModuleComponentHelper.java:530)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:263)
alfresco-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
alfresco-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:338)
alfresco-acs_1 | at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:284)
alfresco-acs_1 | ... 50 more

Could anyone help me on these 2 error ?

0 REPLIES 0