Alfresco / alfresco-docker-installer

Generator to build Docker Compose templates to deploy Alfresco Community
Other
140 stars 57 forks source link

solr start error #161

Closed Amazingzzl closed 1 year ago

Amazingzzl commented 1 year ago

[0.003s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system. 2023-04-18 09:32:17.838 INFO (main) [ ] o.e.j.s.Server jetty-9.3.30.v20211001, build timestamp: 2021-10-01T15:51:54Z, git hash: 148ea770504ad315b7936c5737e462879680042b 2023-04-18 09:32:20.151 INFO (main) [ ] o.a.s.s.SolrDispatchFilter Welcome to Apache Solr? version 6.6.5-patched.11 67b7042d8e2134a87c2ef6e663b1fb0cc0c2d454 - pzurek - 2022-11-28 14:45:37 2023-04-18 09:32:20.161 INFO (main) [ ] o.a.s.s.SolrDispatchFilter / | | | Starting in standalone mode on port 8983 2023-04-18 09:32:20.161 INFO (main) [ ] o.a.s.s.SolrDispatchFilter _ \/ \ | '| Install dir: /opt/alfresco-search-services/solr 2023-04-18 09:32:20.176 INFO (main) [ ] o.a.s.s.SolrDispatchFilter |_/_/|| Start time: 2023-04-18T09:32:20.165027973Z 2023-04-18 09:32:25.435 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1858, 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' 2023-04-18 09:32:25.436 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1858, 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' 2023-04-18 09:32:25.772 INFO (main) [ ] o.e.j.s.Server Started @12532ms 2023-04-18 09:32:25.888 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.c.Config You should not use LATEST as luceneMatchVersion property: if you use this setting, and then Solr upgrades to a newer release of Lucene, sizable changes may happen. If precise back compatibility is important then you should instead explicitly specify an actual Lucene version. 2023-04-18 09:32:26.149 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.c.Config Beginning with Solr 5.5, is deprecated, use instead. 2023-04-18 09:32:26.153 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.c.Config Beginning with Solr 5.5, is deprecated, use instead. 2023-04-18 09:32:28.334 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] 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. 2023-04-18 09:32:28.366 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly. 2023-04-18 09:32:29.370 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field content@s__@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.370 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field content@s__lt@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field text@ssort@* is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field text@s__@ is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field content@s_l@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field text@sl_@ is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field text@s__lt@ is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field text@s_t@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.371 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.s.IndexSchema Field content@s___t@ is not multivalued and destination for multiple copyFields (4) 2023-04-18 09:32:29.375 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field content@s__@* is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.392 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field content@slt@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.392 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field text@s__sort@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.393 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field text@s__@* is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.393 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field content@sl_@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.393 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field text@s_l@ is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.394 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field text@slt@ is not multivalued and destination for multiple copyFields (16) 2023-04-18 09:32:29.394 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field text@s___t@ is not multivalued and destination for multiple copyFields (8) 2023-04-18 09:32:29.394 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.s.IndexSchema Field content@s_t@* is not multivalued and destination for multiple copyFields (4) 2023-04-18 09:32:33.100 WARN (coreLoadExecutor-6-thread-2) [ x:alfresco] o.a.s.h.c.ClusteringComponent No default engine for document clustering. 2023-04-18 09:32:33.106 WARN (coreLoadExecutor-6-thread-1) [ x:archive] o.a.s.h.c.ClusteringComponent No default engine for document clustering. /opt/alfresco-search-services/solr/bin/search_config_setup.sh: line 134: 11 Killed bash -c "$@"

Amazingzzl commented 1 year ago

system ubuntu 20
Docker version 23.0.4 acs 7.3

Amazingzzl commented 1 year ago

new error 2023-04-19 07:19:26.888 WARN (Thread-12) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1858, 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'

Amazingzzl commented 1 year ago

Your help is much needed, thanks

aborroy commented 1 year ago

May you attach your detailed configuration so we can reproduce the issue in our side?

Amazingzzl commented 1 year ago

thanks for your reply

         total        used        free      shared  buff/cache   available

Mem: 31Gi 5.9Gi 19Gi 21Mi 6.3Gi 24Gi

version: "2"

services: alfresco: build: context: ./alfresco args: ALFRESCO_TAG: ${ALFRESCO_CE_TAG} DB: postgres SOLR_COMMS: secret mem_limit: 7488m depends_on:

################

root@acs# ll config/ total 20 drwxr-x--- 3 admin users 4096 Apr 19 07:16 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 2 admin users 4096 Apr 19 07:52 cert/ -rw-r----- 1 admin users 2172 Apr 19 07:16 nginx.conf -rw-r----- 1 admin users 20 Apr 19 07:16 nginx.htpasswd root@acs# ll data/ total 24 drwxr-x--- 6 root root 4096 Apr 19 07:16 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 3 33031 root 4096 Apr 19 07:19 activemq-data/ drwxr-x--- 4 33000 root 4096 Apr 19 07:20 alf-repo-data/ drwx------ 19 systemd-coredump root 4096 Apr 19 08:10 postgres-data/ drwxr-x--- 5 33007 root 4096 Apr 19 07:19 solr-data/ root@acs# ll logs/ total 20 drwxr-x--- 5 root root 4096 Apr 19 07:19 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 2 33000 root 4096 Apr 19 07:19 alfresco/ drwxr-x--- 2 systemd-coredump root 4096 Apr 19 08:10 postgres/ drwxr-xr-x 2 root root 4096 Apr 19 07:19 share/

aborroy commented 1 year ago

The configuration seems to be working as expected.

Did you apply required permissions for mounted volume folders? As described in https://github.com/Alfresco/alfresco-docker-installer#docker-volumes

Amazingzzl commented 1 year ago

yes i m setup permissions

root@acs# ll config/ total 20 drwxr-x--- 3 admin users 4096 Apr 19 07:16 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 2 admin users 4096 Apr 19 07:52 cert/ -rw-r----- 1 admin users 2172 Apr 19 07:16 nginx.conf -rw-r----- 1 admin users 20 Apr 19 07:16 nginx.htpasswd root@acs# ll data/ total 24 drwxr-x--- 6 root root 4096 Apr 19 07:16 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 3 33031 root 4096 Apr 19 07:19 activemq-data/ drwxr-x--- 4 33000 root 4096 Apr 19 07:20 alf-repo-data/ drwx------ 19 systemd-coredump root 4096 Apr 19 08:10 postgres-data/ drwxr-x--- 5 33007 root 4096 Apr 19 07:19 solr-data/ root@acs# ll logs/ total 20 drwxr-x--- 5 root root 4096 Apr 19 07:19 ./ drwxr-x--- 8 admin users 4096 Apr 19 07:16 ../ drwxr-x--- 2 33000 root 4096 Apr 19 07:19 alfresco/ drwxr-x--- 2 systemd-coredump root 4096 Apr 19 08:10 postgres/ drwxr-xr-x 2 root root 4096 Apr 19 07:19 share/

aborroy commented 1 year ago

Can you include also the content of the ".env" file?

Amazingzzl commented 1 year ago

Docker Image versions

ALFRESCO_CE_TAG=7.3.1 SEARCH_CE_TAG=2.0.6 SHARE_TAG=7.3.1 ACA_TAG=3.1.0 POSTGRES_TAG=14.4 MARIADB_TAG=10.5 TRANSFORM_ENGINE_TAG=3.0.0 ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8

Server properties

SERVER_NAME=xxx

aborroy commented 1 year ago

That seems a problem related to Ubuntu 20, may you use a different release (like 22.04?)

Amazingzzl commented 1 year ago

ok i will create redhat 8 , continue to update later

Amazingzzl commented 1 year ago

Hi I still see similar errors when I change OS Red Hat Enterprise Linux release 8.6

2023-04-19 14:36:28.374 WARN (Thread-12) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1858, 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' 2023-04-19 14:36:28.430 WARN (Thread-12) [ x:alfresco] o.a.s.c.Config Beginning with Solr 5.5, is deprecated, use instead. /opt/alfresco-search-services/solr/bin/search_config_setup.sh: line 134: 11 Killed bash -c "$@"

Amazingzzl commented 1 year ago

I think ERROR has something to do with this -----> https://github.com/Alfresco/SearchServices/pull/407

aborroy commented 1 year ago

The error you linked is a WARNING message, that has no impact on running SOLR.

I've reproduced the error and it seems related with SOLR_JAVA_MEM settings. This only happens when using Linux, since it works from Mac and Windows.

In your Docker Compose template, change this setting:

SOLR_JAVA_MEM: "-Xms3488m -Xmx3488m"

by this one:

SOLR_JAVA_MEM: "-Xms2995m -Xmx2995m"

I'll release a new version of alfresco-docker-installer tool to adjust this setting to a lower value when generating the template.

Thanks for your feedback.

Amazingzzl commented 1 year ago

Thanks for your help,solr 6 does return to normal。 ^-^