Error : api/solr/modelsdiff return status:403

cancel
Showing results for 
Search instead for 
Did you mean: 
Prangers
Member II

Error : api/solr/modelsdiff return status:403

Hi all,

I'm installing Alfresco Community Edition 7.3 with Alfresco Share 2.0 (Solr6) .

I'm migrating from Alfresco Comunity Edition 5.2 with Solr4.

As per the manual, I installed on the same machine a new empty instance of Application Server , with the new Version of Community and Share.

I had some problems with keystores but i overcame them. So now i have this error in Solr6 Log : 

org.alfresco.error.AlfrescoRuntimeException: 04080000 api/solr/modelsdiff return status:403

and 

org.alfresco.error.AlfrescoRuntimeException: 04080001 api/solr/aclchangesets return status:403

I read that from version 7.2 it is not possible to connect via http from Alfresco and Solr. so as per the manual I configured the http but with the secret.

Here the configs : 

alfresco-global.properties : 

index.subsystem.name=solr6
solr.host=127.0.0.1
solr.port=8983
solr.base.url=/solr
solr.secureComms=secret
solr.sharedSecret=password
 
/opt/alfresco-search-services/solrhome/templates/rerank/conf/solrcore.properties :
 
alfresco.secureComms=secret
alfresco.secureComms.secret=password
 
 
When I open solr6 in the browser shouldn't it ask me for authentication in the header? makes me open the page regularly (I think).
 
I have no serious errors in the catalina log. 
 
I run the solr service as root, this could be the problem?
 
Thanks in advance for the support.

 

 

2 Replies
angelborroy
Alfresco Employee

Re: Error : api/solr/modelsdiff return status:403

Try using the alternative described in https://docs.alfresco.com/search-services/latest/install/options/#install-without-mutual-tls-http-wi...

Apply the settings in Solr side using environment variables instead of modifiying the values in solrcore.properties

 -Dalfresco.secureComms=secret
 -Dalfresco.secureComms.secret=password
Hyland Developer Evangelist
Prangers
Member II

Re: Error : api/solr/modelsdiff return status:403

Not Work,

When i try to open in the browser Solr6 do not ask me the secret .

I put this on the solr.in.sh

export JAVA_TOOL_OPTIONS="-Dalfresco.secureComms=secret-Dalfresco.secureComms.secret=secret"

And when i started the solr i can see this : 

Picked up JAVA_TOOL_OPTIONS: -Dalfresco.secureComms=secret-Dalfresco.secureComms.secret=secret
Picked up JAVA_TOOL_OPTIONS: -Dalfresco.secureComms=secret-Dalfresco.secureComms.secret=secret
Picked up JAVA_TOOL_OPTIONS: -Dalfresco.secureComms=secret-Dalfresco.secureComms.secret=secret
NOTE: Please install lsof as this script needs it to determine if Solr is listening on port 8983.

Started Solr server on port 8983 (pid=11320). Happy searching!

Already in the solr.log the same error :

api/solr/modelsdiff return status:403