07-26-2021 05:07 AM
Hi,
I have a problem with an installation of Alfresco. First of all, I am new to Alfresco, so if I ask some noob questions, please don´t blame me
I have a organisation that came to me with a broken installation of Alfresco, version 4.2c. It´s a standalone installation, without docker. Installed on Ubuntu 12.04.
The Alfresco instance doesn´t work at all anymore. When I try to start it, it shows:
user01@cms01:/opt/alfresco$ sudo ./alfresco.sh start /opt/alfresco/tomcat/scripts/ctl.sh : tomcat (pid 1731) already running
When you try to open the Alfresco page, it takes ages, and then it doesn´t load (Keeps loading forever).
When I try to stop Alfresco it shows this:
user01@cms01:/opt/alfresco$ sudo ./alfresco.sh stop Using CATALINA_BASE: /opt/alfresco/tomcat Using CATALINA_HOME: /opt/alfresco/tomcat Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp Using JRE_HOME: /opt/alfresco/java Using CLASSPATH: /opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/tomcat-juli.jar Using CATALINA_PID: /opt/alfresco/tomcat/temp/catalina.pid
Where do I need to start to get this solved? We've looked multiple hours/days into this problem, without any succes.
I've also tried to get a new install (docker), and import the databse, but when importing the old databse to the new installation, it throws a lot of errors (I think they are not compatible).
07-26-2021 07:53 AM
If you have installed Alfresco manually or upgraded from a previous version of Alfresco, you might not This indicates a broken MS-Office deployment.
07-26-2021 09:10 AM
The issue lies to this error:
"
/opt/alfresco/tomcat/scripts/ctl.sh : tomcat (pid 1731) already running
"
Try killing the Pid instead and see if it works.
sudo kill -9 {PID}
e.g.: sudo kill -9 1731
If possible, share the logs or try to navigate through logs and what could have caused the failure. Also see if there is any system service configured which may be starting the instance and you are trying to start it again via 'alfresco.sh' script.
Try runnin the command to see if you get any details:
sudo systemctl status {PID}
e.g: sudo systemctl status 1731
As a last resort try rebooting the instance.
07-27-2021 03:19 AM
Both of you, thanks for the reply.
@igorf3 wrote:If you have installed Alfresco manually or upgraded from a previous version of Alfresco, you might not This indicates a broken MS-Office deployment.
You mean libre office or open office?
@abhinavmishra14 wrote:The issue lies to this error:
"
/opt/alfresco/tomcat/scripts/ctl.sh : tomcat (pid 1731) already running"
Try killing the Pid instead and see if it works.
sudo kill -9 {PID}
e.g.: sudo kill -9 1731
If possible, share the logs or try to navigate through logs and what could have caused the failure. Also see if there is any system service configured which may be starting the instance and you are trying to start it again via 'alfresco.sh' script.
Try runnin the command to see if you get any details:
sudo systemctl status {PID}
e.g: sudo systemctl status 1731
As a last resort try rebooting the instance.
Killing the PID and then starting doesn't work.
The log files ´webquickstart.log´ shows all the same errors:
00:03:28,530 WARN [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Cannot access http://127.0.0.1:8080/alfresco/service/cmis: Connection reset 00:05:21,170 ERROR [org.alfresco.wcm.client.impl.WebScriptCallerImpl] Failed to make request to Alfresco web script java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:189) at java.net.SocketInputStream.read(SocketInputStream.java:121) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.alfresco.wcm.client.impl.WebScriptCallerImpl.executeRequest(WebScriptCallerImpl.java:150) at org.alfresco.wcm.client.impl.WebScriptCallerImpl.get(WebScriptCallerImpl.java:132) at org.alfresco.wcm.client.impl.WebScriptCallerImpl.getTicket(WebScriptCallerImpl.java:107) at org.alfresco.wcm.client.util.impl.AlfrescoTicketCmisAuthenticationProvider.getTicket(AlfrescoTicketCmisAuthenticationProvider.java:61) at org.alfresco.wcm.client.util.impl.AlfrescoTicketCmisAuthenticationProvider.getPassword(AlfrescoTicketCmisAuthenticationProvider.java:43) at org.apache.chemistry.opencmis.client.bindings.spi.StandardAuthenticationProvider.getHTTPHeaders(StandardAuthenticationProvider.java:63) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils.invoke(HttpUtils.java:120) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils.invokeGET(HttpUtils.java:60) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:548) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:716) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:58) at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85) at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:111) at org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl.getRepository(GuestSessionFactoryImpl.java:144) at org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl.run(GuestSessionFactoryImpl.java:157) at java.lang.Thread.run(Thread.java:724)
´Solr.log´ shows:
00:01:05,682 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:01:20,658 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:03:05,618 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:03:20,594 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:05:05,682 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:05:20,658 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:07:05,618 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out. 00:07:20,722 WARN [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out.
´share.log´ shows:
09:47:09,203 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:09,247 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 09:47:09,247 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:09,250 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 09:47:10,544 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 341 Web Scripts (+0 failed), 354 URLs 09:47:10,544 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed) 09:47:10,544 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed) 09:47:10,719 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1465.5144ms) 09:47:10,722 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:10,724 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 09:47:21,305 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:21,353 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 09:47:21,353 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:21,355 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 09:47:22,434 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 341 Web Scripts (+0 failed), 354 URLs 09:47:22,434 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed) 09:47:22,434 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed) 09:47:22,571 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1212.242ms) 09:47:22,574 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 09:47:22,577 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
´alfresco.log´ shows:
07-27-2021 09:33 AM
@marvintje i did not mention office, you killed the tomcat pid.
In your log i see following errors:
16:29:59,779 ERROR [org.alfresco.fileserver] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Address already in use 16:29:59,782 ERROR [org.alfresco.fileserver] Error from JLAN org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Address already in use at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259) at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:479) at java.lang.Thread.run(Thread.java:724) org.alfresco.error.AlfrescoRuntimeException: 06260237 Unable to start the VtiServer, as the port 7070 is already in use at org.alfresco.module.vti.VtiServer.onBootstrap(VtiServer.java:218) at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80) at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73) at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283) at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.Server.doStart(Server.java:235) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.alfresco.module.vti.VtiServer.onBootstrap(VtiServer.java:210) ... 24 more
The error clearly says that one or the other ports are already in use on your server. Try Rebooting the ubuntu machine (i am not sure if you have already tried), if tried already -- it looks like some or the other processes are alfready using port 7070 (as mentioned in error log). Try to change the ports.
Do you mind sharing the server.xml from tomcat and alfresco-global.properties here?
07-27-2021 10:38 AM
Hi,
Yes I've already restarted the Ubuntu server multiple times.
The port in use error was some older error I see now. It isn't showing up anymore.
The server.xml:
alfresco.global.properties:
07-27-2021 11:20 AM
i don't see any reference to the port in configuration which is good. Good that at least one error is gone.
Your global properties also doesn't show any reference to CIFS. But seems cifs is enabled.
Try disabling the cifs and see you still see the error "[SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Address already in use":
cifs.enabled=false
You can also checkout these docs:
https://blog.arvixe.com/cifs-support-in-alfresco/
https://docs.alfresco.com/content-services/5.2/config/file-servers/
07-28-2021 04:13 AM
I've set the cifs.enabled to false.
I see it still trows the port error.
org.alfresco.error.AlfrescoRuntimeException: 06280237 Unable to start the VtiServer, as the port 7070 is already in use at org.alfresco.module.vti.VtiServer.onBootstrap(VtiServer.java:218)
But, when I do:
sudo lsof -i:7070
It shows:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 3536 root 525u IPv6 12887 0t0 TCP *:7070 (LISTEN)
But I think that is started by the ./alfresco.sh start command, because that entry (of lsof -i:7070) shows up, when I try to open the alfresco page.
The solr.log shows a Java out of memory error:
10:00:03,228 ERROR [org.apache.solr.servlet.SolrDispatchFilter] java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:792) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.alfresco.repo.search.impl.parsers.FTSQueryParser.buildFTS(FTSQueryParser.java:109) at org.alfresco.solr.AlfrescoSolrDataModel.getFTSQuery(AlfrescoSolrDataModel.java:1159) at org.alfresco.solr.query.AlfrescoFTSQParserPlugin$AlfrescoFTSQParser.parse(AlfrescoFTSQParserPlugin.java:82) at org.apache.solr.search.QParser.getQuery(QParser.java:131) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:103) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
07-28-2021 11:12 AM
@marvintje wrote:
The port in use error was some older error I see now. It isn't showing up anymore.
In last post you mentioned that the port issue is resolved. Looks like it is still the same issue.
You are using very old version and i can't find any documentation related to this but since it keeps complaining about the port 7070, can you try adding the following config to your alfresco-global.properties and see if that picks up. Choose a different port.
vti.server.port=7071 vti.server.external.port=7071
Found some info here for changing the vtiserver port here: https://blyx.com/2014/06/02/where-and-how-to-change-any-alfresco-related-port/
01-24-2023 10:07 AM
Hi guys,
for those who have trouble with port 7070 already in use, please confirm if you have ANYDESK - remote desktop access software instaled. This software uses port 7070 and then when alfresco start and try to start vtiserver return that error of port already in use.
It happened to me.
Regards
Carlos
Explore our Alfresco products with the links below. Use labels to filter content by product module.