Buenas, estoy intentando iniciar Alfresco Search Services 1.4 en un servidor Centos 7 desde la instalacion zip. Al ejecutar el programa parece iniciar bien:
./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=2045). Happy searching!
Pero cuando entro a los logs hay errores de conexion. Dentro del archivo logs/solr.log encuentro:
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)
Ese error se repite cada 10 segundos tanto para el core archive como para el core alfresco.
Viendo al archivo logs/solr-8983-console.log veo:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (file:/opt/alfresco-search-services/solr/server/lib/jetty-util-9.3.14.v20161028.jar) to field java.nio.MappedByteBuffer.fd WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2020-07-31 10:59:31.252 INFO (main) [ ] o.e.j.s.Server jetty-9.3.14.v20161028 2020-07-31 10:59:33.004 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-31 10:59:33.018 INFO (main) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port 8983 2020-07-31 10:59:33.019 INFO (main) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: /opt/alfresco-search-services/solr 2020-07-31 10:59:33.047 INFO (main) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2020-07-31T13:59:33.020216Z
Y en el archivo logs/solr_gc.log:
[2020-07-31T10:59:28.921-0300][0.032s] Using Concurrent Mark Sweep [2020-07-31T10:59:28.921-0300][0.033s] Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit [2020-07-31T10:59:36.385-0300][7,496s] GC(0) Pause Young (Allocation Failure) [2020-07-31T10:59:36.386-0300][7,498s] GC(0) Using 4 workers of 4 for evacuation [2020-07-31T10:59:36.454-0300][7,565s] GC(0) ParNew: 174848K->18300K(218496K) [2020-07-31T10:59:36.454-0300][7,565s] GC(0) CMS: 0K->0K(786432K) [2020-07-31T10:59:36.454-0300][7,565s] GC(0) Metaspace: 20321K->20321K(1067008K) [2020-07-31T10:59:36.454-0300][7,565s] GC(0) Pause Young (Allocation Failure) 170M->17M(981M) 68,989ms [2020-07-31T10:59:36.454-0300][7,565s] GC(0) User=0,10s Sys=0,04s Real=0,07s [2020-07-31T10:59:38.475-0300][9,587s] GC(1) Pause Initial Mark [2020-07-31T10:59:38.537-0300][9,648s] GC(1) Pause Initial Mark 160M->160M(981M) 61,652ms [2020-07-31T10:59:38.537-0300][9,648s] GC(1) User=0,12s Sys=0,00s Real=0,06s [2020-07-31T10:59:38.539-0300][9,650s] GC(1) Concurrent Mark [2020-07-31T10:59:38.550-0300][9,661s] GC(1) Using 4 workers of 4 for marking [2020-07-31T10:59:38.568-0300][9,679s] GC(1) Concurrent Mark 29,247ms [2020-07-31T10:59:38.568-0300][9,680s] GC(1) User=0,05s Sys=0,00s Real=0,03s [2020-07-31T10:59:38.568-0300][9,680s] GC(1) Concurrent Preclean [2020-07-31T10:59:38.570-0300][9,681s] GC(1) Concurrent Preclean 1,610ms [2020-07-31T10:59:38.570-0300][9,682s] GC(1) User=0,00s Sys=0,00s Real=0,00s [2020-07-31T10:59:38.570-0300][9,682s] GC(1) Concurrent Abortable Preclean [2020-07-31T10:59:38.984-0300][10,095s] GC(2) Pause Young (Allocation Failure) [2020-07-31T10:59:38.984-0300][10,096s] GC(2) Using 4 workers of 4 for evacuation [2020-07-31T10:59:39.047-0300][10,158s] GC(2) ParNew: 193148K->22557K(218496K) [2020-07-31T10:59:39.047-0300][10,158s] GC(2) CMS: 0K->0K(786432K) [2020-07-31T10:59:39.047-0300][10,158s] GC(2) Metaspace: 24247K->24247K(1071104K) [2020-07-31T10:59:39.047-0300][10,158s] GC(2) Pause Young (Allocation Failure) 188M->22M(981M) 63,003ms [2020-07-31T10:59:39.047-0300][10,158s] GC(2) User=0,11s Sys=0,02s Real=0,06s
El archivo solr.in.sh contiene estos parametros:
SOLR_JAVA_MEM="-Xms1g -Xmx1g" SOLR_HOST="localhost" SOLR_TIMEZONE="UTC-3" 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 SOLR_PORT=8983 SOLR_SSL_KEY_STORE=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.keystore SOLR_SSL_KEY_STORE_PASSWORD=xxxxxxx SOLR_SSL_TRUST_STORE=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.truststore SOLR_SSL_TRUST_STORE_PASSWORD=xxxxxx SOLR_SSL_NEED_CLIENT_AUTH=true SOLR_SSL_WANT_CLIENT_AUTH=false
Y el solrhome/templates/rerank/conf/solrcore.properties:
enable.alfresco.tracking=true alfresco.host=localhost alfresco.port=8080 alfresco.port.ssl=8443 alfresco.baseUrl=/alfresco alfresco.lag=1000 alfresco.hole.retention=3600000 alfresco.hole.check.after=300000 alfresco.batch.count=5000 alfresco.recordUnindexedNodes=false # encryption # none, https alfresco.secureComms=none alfresco.encryption.ssl.keystore.type=JCEKS alfresco.encryption.ssl.keystore.provider= alfresco.encryption.ssl.keystore.location=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.keystore alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties alfresco.encryption.ssl.truststore.type=JCEKS alfresco.encryption.ssl.truststore.provider= alfresco.encryption.ssl.truststore.location=/opt/alfresco-search-services/solrhome/keystore/ssl.repo.client.truststore alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
Habia configurado alfresco.secureComms=https pero despues lo saqué para ver si funcionaba sin SSL. Pero de ninguna de las dos formas funcionó
Por ultimo, el archivo solrhome/conf/shared.properties contiene estas variables (No agrego todo):
solr.host=localhost #If not set then solr.port will be the jetty.port #solr.port=8983 solr.baseurl=/solr
Gracias de antemano.
Saludos
Es necesario utilizar
alfresco.secureComms=https
Y eliminar los índices de "alfresco" y "archive" antes de volver a arrancar SOLR.
Discussions about Alfresco Content Services and Alfresco Process Services in Spanish
Related:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.