Alfresco Stops Responding

已查看 2,259 次
跳至第一个未读帖子

Chris A

未读,
2013年10月18日 19:33:022013/10/18
收件人 alfresco-techn...@googlegroups.com
Alfresco 4.2.d on SLES11 SP2. This particular problem did not happen until the upgrade from 4.2.c to 4.2.d. Here is the log from share.log:
09:11:41,817 INFO  [org.springframework.extensions.webscripts.connector.RemoteClient] Exception calling (POST) http://localhost:8080/alfresco/s/api/login
09:11:41,817 INFO  [org.springframework.extensions.webscripts.connector.RemoteClient] Error status 408 Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
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.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.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:1054)
at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:829)
at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:577)
at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:528)
at org.springframework.extensions.webscripts.connector.AlfrescoAuthenticator.authenticate(AlfrescoAuthenticator.java:75)
at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.handshake(AuthenticatingConnector.java:408)
at org.springframework.extensions.surf.support.AlfrescoUserFactory.authenticate(AlfrescoUserFactory.java:126)
at org.alfresco.web.site.SlingshotUserFactory.authenticate(SlingshotUserFactory.java:80)
at org.springframework.extensions.surf.mvc.AbstractLoginController.handleRequestInternal(AbstractLoginController.java:82)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:313)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:378)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810)
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)

 Anybody else seeing this?

Peter Monks

未读,
2013年10月18日 19:35:552013/10/18
收件人 alfresco-techn...@googlegroups.com
Is Alfresco running on a single machine?  Is there a firewall also running on the machine?

Cheers,
Peter

 
 


--
You received this message because you are subscribed to the Google Groups "Alfresco Technical Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.
To post to this group, send email to alfresco-techn...@googlegroups.com.
Visit this group at http://groups.google.com/group/alfresco-technical-discussion.
For more options, visit https://groups.google.com/groups/opt_out.

Chris A

未读,
2013年10月18日 19:43:542013/10/18
收件人 alfresco-techn...@googlegroups.com
Single server with no firewall

Cheers,
Peter

 
 


To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-discussion+unsub...@googlegroups.com.

Gabriele Columbro

未读,
2013年10月18日 19:56:282013/10/18
收件人 alfresco-techn...@googlegroups.com
Do you have much load on the system or is this a single user login?

Also are you using the standard authentication chain?

Gab

Sent from my iPhone
To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.

Chris A

未读,
2013年10月18日 22:36:572013/10/18
收件人 alfresco-techn...@googlegroups.com
I see there is an update, 4.2.e. I have updated to that version. However, the problem arises when i "restore" the alf_data directory to the new installation location. Everything was working with the new install. I addd the email notifications and mysql DB. Still worked fine in this "test" install. I followed the upgrading doc but 2 questions:
1) the doc says to backup the DB and alf_data which i did. Then further down it says to restore the repository. Which is that? The DB or alf_data?
2)i know how to restore the DB using vendor tools but how to correctly restore the alf_data?

What i did was to copy the entire alf_data folder into the new install but alfresco will not start after that. So i put the new install alf_data back and just copy the contentstore folder into the new alf_data folder. Now admin can not login and alfresco will not stop correctly.

How do i get the data and users into the new install?

Peter Monks

未读,
2013年10月19日 11:27:552013/10/19
收件人 alfresco-techn...@googlegroups.com
The restore procedure is described here [1], but in a nutshell you need to restore both the alf_data directory and the database.

Unfortunately, as of Alfresco v4, only selected sub-directories of the alf_data should be restored - specifically the contentstore and contentstore.deleted subdirectories (and optionally the lucene.* subdirectories, if you're using Lucene).

On the first start, Alfresco may take a little while to run, as it may need to upgrade the persisted repository (a one-time operation that only affects the database).  During this time the system will not be available.

To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.

Chris A

未读,
2013年10月21日 09:46:322013/10/21
收件人 alfresco-techn...@googlegroups.com
That's exactly what i followed and this error is produced. Here is the output from the terminal:
./alfresco.sh start
pg_ctl.bin: could not open PID file "/opt/alfresco/alf_data/postgresql/postmaster.pid": Permission denied
/opt/alfresco/postgresql/scripts/ctl.sh : postgresql  could not be started
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
/opt/alfresco/tomcat/scripts/ctl.sh : tomcat started

As i stated earlier, we use mysql DB so alfresco starts ok even thought this error is produced.I dont see any thing related to this error in the alfresco.log. I restore just the contentstore and contentstore.deleted dir's. But as you can see, this is a pid problem?

David Crespo

未读,
2013年10月21日 10:15:182013/10/21
收件人 alfresco-techn...@googlegroups.com
Hi,

It seems to me a permission issue. Could you check if the path and files for the Alfresco installation is assign to the right user. Because if you have for instance the "tomcat" user has the owner of the Alfresco installation path but for some reason the database folder or the alfresco-global.properties is owned by other user then you get this type of issues. 

 


To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.



--
David Crespo Arroyo
Manager and developer of ECM projects based on Alfresco. 
Alfresco Certified Instructor.  Alfresco Certified Engineer.

Chris A

未读,
2013年10月21日 10:44:282013/10/21
收件人 alfresco-techn...@googlegroups.com
How would i do that? Here is what i have for the permissions on the alfresco installation folder:
Owner can view and modify content
owner=root
group=root

The DB folder (alf_data):
is exactly the same as above

And the postgresql folder inside the alf_data folder is exactly the same. The postmaster.pid file inside the postgresql folder is also exactly the same.

Chris A

未读,
2013年10月26日 17:00:212013/10/26
收件人 alfresco-techn...@googlegroups.com
I really would like to get postgresql working again when i start/stop alfresco.

nikhil wali

未读,
2016年12月12日 17:09:232016/12/12
收件人 Alfresco Technical Discussion
Hi Guys,

I am facing postgresql issue for Alfresco.

Error : pg_ctl.bin: could not start server alfresco

Log :

nikhil:alfresco-community nikhilwali$ ./alfresco.sh start

waiting for server to start........ stopped waiting

pg_ctl.bin: could not start server

Examine the log output.

/Applications/alfresco-community/postgresql/scripts/ctl.sh : postgresql  could not be started

Using CATALINA_BASE:   /Applications/alfresco-community/tomcat

Using CATALINA_HOME:   /Applications/alfresco-community/tomcat

Using CATALINA_TMPDIR: /Applications/alfresco-community/tomcat/temp

Using JRE_HOME:        /Applications/alfresco-community/java

Using CLASSPATH:       /Applications/alfresco-community/tomcat/bin/bootstrap.jar:/Applications/alfresco-community/tomcat/bin/tomcat-juli.jar

Using CATALINA_PID:    /Applications/alfresco-community/tomcat/temp/catalina.pid

Tomcat started.

/Applications/alfresco-community/tomcat/scripts/ctl.sh : tomcat started


I am using mac os and it was running fine if I use the default alfresco community where else when I put my alfresco.war and share.war files (updated some content) then it doesn't work.

Thanks in advance !

Igor Blanco

未读,
2016年12月13日 02:40:552016/12/13
收件人 alfresco-techn...@googlegroups.com
Nikhil, if I'm not getting it wrong your PostgreSQL server is not starting so Alfresco won't be able to start either.

You must solve the postgresql issue first I guess.

--
You received this message because you are subscribed to the Google Groups "Alfresco Technical Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-discussion+unsub...@googlegroups.com.



--
Igor Blanco González
Binovo IT Human Project
e-mail: ibl...@binovo.es
Telf. :   943493611
Dirección:
                         Astigarraga Bidea 2
                          Planta 6. - Ofi. 3-2 
                    20180 Oiartzun ( Gipuzkoa )
回复全部
回复作者
转发
0 个新帖子