cancel
Showing results for 
Search instead for 
Did you mean: 

4.0.e CE to 4.2.b - strange results.

ttownsend
Champ on-the-rise
Champ on-the-rise
Hello all,

I've upgraded my 4.0.e install to 4.2.b and notice that my dashlets for Content I'm Editing and My Documents are broken and showing errors.

Here's what I did (following this:http://yogeshpj.blogspot.ca/2012/04/alfresco-cold-backup-and-restore-using.html)

From 4.0.e:
Stopped the Tomcat server and did a pg_dump of my alfresco postgresql database to db-backup.backup
Tar'd my entire alf_data.

To 4.2.b:
Installed 4.2.e using the binary installer on Ubuntu 12.04x64 server to /opt/alfresco-4.2.b
Dropped the new alfresco database, created a new alfresco database, and restore db-backup.backup to it.
Renamed the new alf_data to alf_data-virgin, and copied/untar'd the original alf_data in as /opt/alfresco-4.2.e/alf_data, except for /opt/alfresco-4.2.b/postgresql


When Alfresco Share starts, I can log in as expected using my 4.0.e credentials, but I the following in the Content I'm Editing dashlet:


09290003 Wrapped Exception (with status template): 09290012 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 09290011 Failed to execute search: +PATH:"/app:company_home/st:sites//cm:*" +((+@cm\:workingCopyOwner:"Trevor") OR (+@cm\:lockOwner:"Trevor" +@cm\:lockType:"WRITE_LOCK")) +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")
09290001 Wrapped Exception (with status template): 09290008 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/dashlets/my-contents.get.js': 09290007 Failed to execute search: +TYPE:"{http://www.alfresco.org/model/content/1.0}content" +PATH:"/app:company_home/st:sites/*/cm:blog/*" -ISNOTNULL:"{http://www.alfresco.org/model/content/1.0}published" +@cm\:creator:"Trevor"

I also noticed that in /opt/ on the new server, along with the alfresco-4.2.b directory, there is an /opt/alfresco-4.0.e directory that only contains alf_data/solr/archive and alf_data/solr/workspace

From catalina.out, I see a lot of these:

INFO: Server startup in 69340 ms
2012-10-29 00:26:32,418  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,431  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,431  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,432  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:26:32,433  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-3] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,125  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,126  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,126  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:27:58,127  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-10] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,558  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,559  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,559  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException
2012-10-29 00:28:12,560  ERROR [pdfbox.filter.FlateFilter] [http-bio-8443-exec-6] FlateFilter: stop reading corrupt stream due to a DataFormatException

All of the sites from 4.0.e are present, along with their documents, wikis, blogs, etc., but the dashlets are showing the above errors.
I've also notice that Search returns 0 results for any search term.

Does anyone have some ideas on troubleshooting that they could share?

Many thanks in advance,
Trevor

EDIT:  I just re-read catalina.out and found that more errors were produced after I posted this.  Here some of what I found:


2012-10-29 00:37:39,122  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Exception from executeScript - redirecting to status template error: 09290002 Wrapped Exception (with status tem$
org.springframework.extensions.webscripts.WebScriptException: 09290002 Wrapped Exception (with status template): 09290059 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/sli$
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:422)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:345)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        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:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.alfresco.scripts.ScriptException: 09290059 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js': 09290058 Failed to execute$
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)
        at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
        at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
        at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
        … 28 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 09290058 Failed to execute search: +PATH:"/app:company_home/st:sites/cm:{site name removed}/cm:documentLibrary//*" +TYPE:"cm:content" +@cm\:content.$
        at org.alfresco.repo.jscript.Search.query(Search.java:823)
        at org.alfresco.repo.jscript.Search.query(Search.java:686)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
        at org.mozilla.javascript.gen.c6._c16(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js:874)
        at org.mozilla.javascript.gen.c6.call(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c6._c0(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js:894)
        at org.mozilla.javascript.gen.c6.call(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c6.call(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js)
        at org.mozilla.javascript.gen.c6.exec(file:/opt/alfresco-4.2.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.js)
Caused by: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 09290063 Request failed 500 /solr/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=250&df=TEXT&start=0&locale=en_US&sort=%40cm%3Anam$
        at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:398)
        at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:49)
        at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:348)
        at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:78)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)


…and


Oct 29, 2012 12:37:42 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.alfresco.solr.query.AbstractQParser.getSearchParameters(AbstractQParser.java:119)
        at org.alfresco.solr.query.AlfrescoLuceneQParserPlugin$AlfrescoLuceneQParser.parse(AlfrescoLuceneQParserPlugin.java:96)
        at org.apache.solr.search.QParser.getQuery(QParser.java:131)
        at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89)
        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: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:581)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
8 REPLIES 8

ekimnosneb
Champ in-the-making
Champ in-the-making
While I can't speak to your pdfbox errors, I was seeing the same results with the search and dashlets myself when upgrading from 4.0.d to 4.2.a.  The fix for me was to switch back to the Lucene index from Solr.  I was planning to try upgrading my 4.2.a to 4.2.b to see if I could use Solr again, but if you're seeing the same issue, I may wait.

ttownsend
Champ on-the-rise
Champ on-the-rise
While I can't speak to your pdfbox errors, I was seeing the same results with the search and dashlets myself when upgrading from 4.0.d to 4.2.a.  The fix for me was to switch back to the Lucene index from Solr.  I was planning to try upgrading my 4.2.a to 4.2.b to see if I could use Solr again, but if you're seeing the same issue, I may wait.

Many thanks for the reply - could you tell me how you switched to Lucene from Solr?  I'm not worried at all about time needed to re-index my repository.

Cheers!

abarisone
Star Contributor
Star Contributor
Hi,
to switch from SolR to Lucene first of all modify this section in alfresco-global.poperties like this

### Solr/Lucene indexing ###
index.subsystem.name=lucene
#dir.keystore=${dir.root}/keystore
#solr.port.ssl=8443
In order to perform a full reindex you have to
  • stop Alfresco

  • modify alfresco-global.properties adding the property index.recovery.mode=FULL

  • restart Alfresco in order to let the index being rebuilt

  • stop Alfresco again

  • modify alfresco-global.properties modifying the property index.recovery.mode=AUTO

  • start Alfresco
Regards,
Andrea

ttownsend
Champ on-the-rise
Champ on-the-rise
Hi Andrea -

Thanks very much; I'm going to try this later this afternoon and let you know how it worked out.  In fact, I might just start from scratch and do this before I launch 4.2.b for the first time - I'm still concerned that (see my original post) that a directory /opt/alfresco-4.0.e was created parallel to the new install at /opt/alfresco-4.2.b  I think that might have happened because there is a setting somewhere in a solr config file that names /opt/alfresco-4.0.e as the location of solr home or some other setting, and so alfresco creates that directory when it starts.  Does that sound possible?

Cheers,
Trevor

michaelk
Champ in-the-making
Champ in-the-making
I had the same problem and after much trial and error ended up with a fix …

https://forums.alfresco.com/en/viewtopic.php?f=8&t=46916

cheers,
   Michael

ttownsend
Champ on-the-rise
Champ on-the-rise
Hi all,

Andrea - because I might be able to save my SOLR install, I'm going to try Michael's fix first.

Michael - I followed your steps.  I did skip the keystore step because I was ready to roll this back to a snapshot and try again anyways.  Here are the results:  All dashlets are reporting reporting correctly; and catalina.out is showing SSL-related errors, see below -


javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1902)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1032)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:121)
        at java.io.FilterOutputStream.write(FilterOutputStream.java:97)
        at org.apache.commons.httpclient.methods.ByteArrayRequestEntity.writeRequest(ByteArrayRequestEntity.java:90)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        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.httpclient.AbstractHttpClient.executeMethod(AbstractHttpClient.java:130)
        at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:106)
        at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(HttpClientFactory.java:364)
        at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1033)
        at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1787)
        at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1126)
        at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:472)
        at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
        at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1320)
        … 28 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)
        at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
        at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
        … 34 more

I'm next going to try the step I omitted and check the results again, but I've never rebuilt keys in a keystore before - what were the steps you used? 

1.  Do ./alfresco.sh stop
2.  ./generate_keystores.sh in alf_data/keystore/ (follow the prompts, I guess?)
3.  Do ./alfresco.sh start

Would that be basically correct?


UPDATE:

I rebuilt the keystore the following way:
1.  I edited alf_data/keystore/generate-keystores.sh so that;
# Alfresco installation directory
ALFRESCO_HOME=/opt/alfresco-4.2.b  (the original file sets ALFRESCO_HOME=/opt/alfresco-4.1)
2. Did ./alf_data/keystore/generate-keystores.sh
3.  Did ./alfresco.sh start in /opt/alfresco-4.2.b
4.  Watched catalina.out for any errors.

Not one single error.  None. 
No errors in any Share dashlets.  None.

Scha–wiiiing!


Thanks to everyone!

jonvargas
Confirmed Champ
Confirmed Champ
Hi,

I think your pdfbox errors are related to Solr indexation process.

Did you also migrated solr indexes? If not, it's possible that Solr is trying to index your whole repository.

Take a look at your CPU consumption, if java process is taking so much CPU and the server should be idle, it could be Solr performing a full indexation.

It would take some time, depending of the size and type of content in your repository. For example, 8Gb would take around 20 mins, but it really depends on the CPU speed, type and amout of data.

Switching to Lucene is just a fallback.

Give it some time. If it doesn't stop after 24 hours, you need to worry about it 🙂

ttownsend
Champ on-the-rise
Champ on-the-rise
Hi John,

Pretty sure that SOLR indexing was the culprit.  My repository is +/- 25 GB and took about 45-60 minutes (4 core virtual machine, 4GB, Ubuntu on VM Workstation 8, intel i7-920, RAID 1).

All is good now and have not seen any other instances of that error since SOLR rebuilt its indexes.

Cheers!