Error iniciando SOLR

cancel
Showing results for 
Search instead for 
Did you mean: 
preyes
Active Member

Error iniciando SOLR

Buenas, al intentar iniciar alfresco search services me devuelve algunos errores.

Ejecuto:

./solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive" -force
Waiting up to 180 seconds to see Solr running on port 8983 [-]  
Started Solr server on port 8983 (pid=5285). Happy searching!

Pero luego en el log solr.log tengo errores:

2020-07-30 17:35:11.837 INFO  (main) [   ] o.e.j.s.Server jetty-9.3.14.v20161028
2020-07-30 17:35:14.709 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.6.5-patched a77dde61f5121c726afb0e50a8e34ebba88534a4 - build - 2018-10-26 16:24:31
2020-07-30 17:35:14.711 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port 8983
2020-07-30 17:35:14.712 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: /opt/alfresco-search-services/solr
2020-07-30 17:35:14.727 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2020-07-30T20:35:14.714263Z
2020-07-30 17:35:17.800 WARN  (coreLoadExecutor-6-thread-1) [   x:archive] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/archive'
2020-07-30 17:35:18.791 INFO  (main) [   ] o.e.j.s.Server Started @9082ms
2020-07-30 17:35:19.803 WARN  (coreLoadExecutor-6-thread-1) [   x:archive] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
2020-07-30 17:35:19.837 WARN  (coreLoadExecutor-6-thread-1) [   x:archive] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2020-07-30 17:35:24.104 WARN  (coreLoadExecutor-6-thread-1) [   x:archive] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
2020-07-30 17:35:25.567 WARN  (searcherExecutor-7-thread-1-processing-x:archive) [   x:archive] o.a.s.c.SolrContentStore /opt/alfresco-search-services/contentstore will be used as a default path if solr.content.dir property is not defined
2020-07-30 17:35:25.758 ERROR (searcherExecutor-7-thread-1-processing-x:archive) [   x:archive] o.a.s.t.AbstractTracker Model tracking failed for core: archive
org.alfresco.error.AlfrescoRuntimeException: 06300000 archive GetModelsDiff return status is 403
        at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1194)
        at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
        at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
        at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:271)
        at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(SolrCoreLoadRegistration.java:107)
        at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:44)
        at org.apache.solr.core.SolrCore.lambda$getSearcher$15(SolrCore.java:2249)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
2020-07-30 17:35:27.404 WARN  (Thread-12) [   x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/alfresco'
2020-07-30 17:35:28.391 WARN  (Thread-12) [   x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
2020-07-30 17:35:28.429 WARN  (Thread-12) [   x:alfresco] o.a.s.AlfrescoCoreAdminHandler archive already exists, not creating again.
2020-07-30 17:35:28.431 WARN  (searcherExecutor-21-thread-1-processing-x:alfresco) [   x:alfresco] o.a.s.c.SolrContentStore /opt/alfresco-search-services/contentstore will be used as a default path if solr.content.dir property is not defined
2020-07-30 17:35:30.166 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@6f6a7463_Worker-2) [   ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
org.alfresco.error.AlfrescoRuntimeException: 06300001 api/solr/aclchangesets return status:403
        at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:170)
        at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
        at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
        at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
        at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:217)
        at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2020-07-30 17:35:30.167 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@6f6a7463_Worker-3) [   ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - archive
org.alfresco.error.AlfrescoRuntimeException: 06300002 api/solr/aclchangesets return status:403
        at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:170)
        at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
        at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
        at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
        at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:217)
        at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

En el archivo solr_gc.log tengo:

[2020-07-30T17:35:09.736-0300][0.028s] Using Concurrent Mark Sweep
[2020-07-30T17:35:09.736-0300][0.028s] Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit
[2020-07-30T17:35:18.179-0300][8,471s] GC(0) Pause Young (Allocation Failure)
[2020-07-30T17:35:18.180-0300][8,471s] GC(0) Using 4 workers of 4 for evacuation
[2020-07-30T17:35:18.232-0300][8,524s] GC(0) ParNew: 174848K->17453K(218496K)
[2020-07-30T17:35:18.232-0300][8,524s] GC(0) CMS: 0K->0K(786432K)
[2020-07-30T17:35:18.232-0300][8,524s] GC(0) Metaspace: 20284K->20284K(1067008K)
[2020-07-30T17:35:18.232-0300][8,524s] GC(0) Pause Young (Allocation Failure) 170M->17M(981M) 52,816ms
[2020-07-30T17:35:18.232-0300][8,524s] GC(0) User=0,09s Sys=0,01s Real=0,05s
[2020-07-30T17:35:20.237-0300][10,529s] GC(1) Pause Initial Mark
[2020-07-30T17:35:20.278-0300][10,570s] GC(1) Pause Initial Mark 161M->161M(981M) 40,933ms
[2020-07-30T17:35:20.278-0300][10,570s] GC(1) User=0,08s Sys=0,00s Real=0,05s
[2020-07-30T17:35:20.278-0300][10,570s] GC(1) Concurrent Mark
[2020-07-30T17:35:20.279-0300][10,570s] GC(1) Using 4 workers of 4 for marking
[2020-07-30T17:35:20.316-0300][10,608s] GC(1) Concurrent Mark 38,051ms
[2020-07-30T17:35:20.316-0300][10,608s] GC(1) User=0,08s Sys=0,00s Real=0,03s
[2020-07-30T17:35:20.316-0300][10,608s] GC(1) Concurrent Preclean
[2020-07-30T17:35:20.318-0300][10,610s] GC(1) Concurrent Preclean 1,569ms
[2020-07-30T17:35:20.318-0300][10,610s] GC(1) User=0,00s Sys=0,00s Real=0,01s
[2020-07-30T17:35:20.318-0300][10,610s] GC(1) Concurrent Abortable Preclean
[2020-07-30T17:35:20.638-0300][10,930s] GC(2) Pause Young (Allocation Failure)
[2020-07-30T17:35:20.638-0300][10,930s] GC(2) Using 4 workers of 4 for evacuation
[2020-07-30T17:35:20.677-0300][10,969s] GC(2) ParNew: 192301K->23249K(218496K)
[2020-07-30T17:35:20.677-0300][10,969s] GC(2) CMS: 0K->0K(786432K)
[2020-07-30T17:35:20.677-0300][10,969s] GC(2) Metaspace: 25047K->25047K(1073152K)
[2020-07-30T17:35:20.677-0300][10,969s] GC(2) Pause Young (Allocation Failure) 187M->22M(981M) 39,453ms
[2020-07-30T17:35:20.678-0300][10,969s] GC(2) User=0,06s Sys=0,01s Real=0,03s
[2020-07-30T17:35:23.803-0300][14,094s] GC(1) Concurrent Abortable Preclean 3484,498ms
[2020-07-30T17:35:23.803-0300][14,095s] GC(1) User=6,47s Sys=0,22s Real=3,48s
[2020-07-30T17:35:23.813-0300][14,105s] GC(1) Pause Remark
[2020-07-30T17:35:23.813-0300][14,105s] GC(3) Pause Young (CMS Final Remark)
[2020-07-30T17:35:23.813-0300][14,105s] GC(3) Using 4 workers of 4 for evacuation
[2020-07-30T17:35:23.855-0300][14,147s] GC(3) ParNew: 115292K->22916K(218496K)
[2020-07-30T17:35:23.855-0300][14,147s] GC(3) CMS: 0K->0K(786432K)
[2020-07-30T17:35:23.855-0300][14,147s] GC(3) Metaspace: 32199K->32199K(1079296K)
[2020-07-30T17:35:23.855-0300][14,147s] GC(3) Pause Young (CMS Final Remark) 112M->22M(981M) 41,920ms
[2020-07-30T17:35:23.855-0300][14,147s] GC(3) User=0,08s Sys=0,00s Real=0,04s
[2020-07-30T17:35:23.893-0300][14,184s] GC(1) Pause Remark 112M->22M(981M) 79,424ms
[2020-07-30T17:35:23.893-0300][14,185s] GC(1) User=0,13s Sys=0,00s Real=0,08s
[2020-07-30T17:35:23.893-0300][14,185s] GC(1) Concurrent Sweep
[2020-07-30T17:35:23.893-0300][14,185s] GC(1) Concurrent Sweep 0,062ms
[2020-07-30T17:35:23.893-0300][14,185s] GC(1) User=0,00s Sys=0,00s Real=0,00s
[2020-07-30T17:35:23.893-0300][14,185s] GC(1) Concurrent Reset
[2020-07-30T17:35:23.902-0300][14,194s] GC(1) Concurrent Reset 9,456ms
[2020-07-30T17:35:23.903-0300][14,194s] GC(1) User=0,01s Sys=0,01s Real=0,01s
[2020-07-30T17:35:23.903-0300][14,195s] GC(1) Old: 0K->0K(786432K)
[2020-07-30T17:35:27.812-0300][18,104s] GC(4) Pause Young (Allocation Failure)
[2020-07-30T17:35:27.812-0300][18,104s] GC(4) Using 4 workers of 4 for evacuation
[2020-07-30T17:35:27.875-0300][18,167s] GC(4) ParNew: 197764K->32573K(218496K)
[2020-07-30T17:35:27.875-0300][18,167s] GC(4) CMS: 0K->0K(786432K)
[2020-07-30T17:35:27.875-0300][18,167s] GC(4) Metaspace: 39824K->39824K(1085440K)
[2020-07-30T17:35:27.875-0300][18,167s] GC(4) Pause Young (Allocation Failure) 193M->31M(981M) 63,396ms
[2020-07-30T17:35:27.876-0300][18,167s] GC(4) User=0,10s Sys=0,01s Real=0,06s

El archivo solr.in.sh lo tengo con estas variables:

SOLR_JAVA_MEM="-Xms1g -Xmx1g"
SOLR_HOST="localhost"

# By default the start script uses UTC; override the timezone if needed
SOLR_TIMEZONE="UTC-3"

# Set to true to activate the JMX RMI connector to allow remote JMX client applications
# to monitor the JVM hosting Solr; set to "false" to disable that behavior
# (false is recommended in production environments)
#ENABLE_REMOTE_JMX_OPTS="false"

# The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
# RMI_PORT=18983

# Alfresco configuration. This file is automatically included by solr. You can define your custom settings here
SOLR_OPTS="$SOLR_OPTS -Dsolr.jetty.request.header.size=1000000 -Dsolr.jetty.threads.stop.timeout=300000 -Ddisable.configEdit=true"

SOLR_HOME=/opt/alfresco-search-services/solrhome/

SOLR_LOGS_DIR=/opt/alfresco-search-services/logs
LOG4J_PROPS=$SOLR_LOGS_DIR/log4j.properties

# Sets the port Solr binds to, default is 8983
SOLR_PORT=8983

SOLR_SSL_KEY_STORE=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.keystore
SOLR_SSL_KEY_STORE_PASSWORD=password
#SOLR_SSL_KEY_STORE_TYPE=JCEKS
SOLR_SSL_TRUST_STORE=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.truststore
SOLR_SSL_TRUST_STORE_PASSWORD=password
#SOLR_SSL_TRUST_STORE_TYPE=JCEKS
SOLR_SSL_NEED_CLIENT_AUTH=true
SOLR_SSL_WANT_CLIENT_AUTH=false

#SOLR_SSL_CLIENT_KEY_STORE=
#SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
#SOLR_SSL_CLIENT_KEY_STORE_TYPE=
#SOLR_SSL_CLIENT_TRUST_STORE=
#SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
#SOLR_SSL_CLIENT_TRUST_STORE_TYPE=

Estoy instalando a traves del zip, en un Centos 7 de 64bits.

Saludos