I'm currently working on getting OpenAM up and running with Alfresco, Share and Solr.
I've worked out how to get Alfresco & Share working, however I'm experiencing problems with Solr.
I'm seeing the following console msg when Solr is comparing the model:
07-Mar-2014 16:43:16 org.quartz.core.JobRunShell run SEVERE: Job Solr.CoreTracker-archive threw an unhandled Exception: org.alfresco.error.AlfrescoRuntimeException: 02070000 GetModelsDiff return status is 302 at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1011) at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1453) at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1126) at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:483) 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) 07-Mar-2014 16:43:16 org.quartz.core.ErrorLogger schedulerError SEVERE: Job (Solr.CoreTracker-archive threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.error.AlfrescoRuntimeException: 02070000 GetModelsDiff return status is 302] at org.quartz.core.JobRunShell.run(JobRunShell.java:227) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563) Caused by: org.alfresco.error.AlfrescoRuntimeException: 02070000 GetModelsDiff return status is 302 at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1011) at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1453) at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1126) at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:483) at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) … 1 more
Character Encoding : null Content Lenght : 3533 Content Type : application/json Locale : us_IE
Accept Locales: en_IE
Protocol : HTTP/1.1 Remote Address : 127.0.0.1 Remote Host : 127.0.0.1 Scheme : https Server Name : localhost Server Port : 443 Is Secure : true Auth Type : CLIENT_CERT Context Path : /alfresco Cookies: *** No Cookies ***
Headers: user-agent: Jakarta Commons-HttpClient/3.1 host: localhost content-length: 3533 content-type: application/json Method : POST Path Info : /api/solr/modelsdiff Path Trans : D:\OpenAM2\tomcat\webapps\alfresco\api\solr\modelsdiff Query String : null Remote User : CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB Requested Session ID : null Request URI : /alfresco/service/api/solr/modelsdiff Servlet Path : /service Session : false User Principal : <not queried> Attributes: javax.servlet.request.ssl_session: 5319f7231a703dd0b06bbc77271c32b026205af56d323a4f8aefa478814d3e5e javax.servlet.request.key_size: 128 javax.servlet.request.X509Certificate: [Ljava.security.cert.X509Certificate;@e6c903 javax.servlet.request.cipher_suite: SSL_RSA_WITH_RC4_128_MD5
———————————————————–
amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] Manager: Cache Lookup id= access.denied.uri, result= {} amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] Configuration: id => com.sun.identity.agents.config.amFilter.access.denied.uri, value => null amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] No configuration value specified for: com.sun.identity.agents.config.amFilter.access.denied.uri, trying : com.sun.identity.agents.config.access.denied.uri amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] Configuration: id => com.sun.identity.agents.config.access.denied.uri, value => null amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] No configuration value found for: com.sun.identity.agents.config.amFilter.access.denied.uri, or: com.sun.identity.agents.config.access.denied.uri amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] AmFilter: now processing: XSS Detection Task Handler amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] Manager: Cache Lookup id= xss.code.elements, result= [Ljava.lang.String;@11cc0f6 amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] Configuration: id => xss.code.elements, value => null amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] AmFilter: now processing: Notification Task Handler amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] AmFilter: now processing: FQDN Task Handler amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] FQDNHelper: Incoming Server Name: [localhost] Result: alfresco_server amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] WARNING: FQDNTaskHandler: FQDN check resulted in redirect: localhost, redirecting to => https://alfresco_server:443/alfresco/service/api/solr/modelsdiff amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] AmFilter: now processing: Audit Result Handler amFilter:03/07/2014 04:44:15:059 PM GMT: Thread[http-8443-2,5,main] AmFilter: result =>
I tried setting /alfresco/service/api/solr/modelsdiff in the URI exemption field for the agent (com.sun.identity.agents.config.notenforced.uri) without any success/difference. I even tried /alfresco/* - again no difference…
is alfresco_server the host / public DNS name of your Alfresco server? Then I'd suggest using that name instead of localhost in your SOLR configuration and the redirect should not occur. You should under all circumstances make sure that you use the correct DNS name to reference the Repository from SOLR and do not have any network elements that may "normalize" the adress and issue redirects…
thanks for getting back to me (and on a Saturday!!!)
I thought I had updated all the necessary configs as you suggested, but I've just spotted one config file which slipped through the net. I made the change and everything looks fine now.
thanks very much for pointing me in the right direction. You're a very valuable resource to have!!!!
I am a beginner and i try to get OpenAM running with Alfresco. The installation of the tomcat agent was done with succes and when i try to log in alfresco i am redirecting to openAM But when i try to configure the external authentication using this link http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fauth-extern... i have the same logs of clonlad. Can you give more explaination to resolve this problem?