qwc-services / qwc-docker

Docker containers for qwc-services
MIT License
48 stars 36 forks source link

Can't start container #48

Closed missflash closed 1 year ago

missflash commented 2 years ago

I installed qgis server well at my arm64 linux machine. I want to set up qwc-docker at the same server. However, container couldn't start at all. The followings are docker-compose logs after docker-compose restart.

Thank you for your great project!

qwc-solr_1                     | 2022-09-21 03:05:51.418 INFO  (JettyShutdownThread) [   ] o.e.j.s.session node0 Stopped scavenging
qwc-solr_1                     | 2022-09-21 03:05:51.421 INFO  (JettyShutdownThread) [   ] o.a.s.c.CoreContainer Shutting down CoreContainer instance=964981922
qwc-solr_1                     | 2022-09-21 03:05:51.425 INFO  (coreCloseExecutor-21-thread-1) [   ] o.a.s.c.SolrCore [gdi]  CLOSING SolrCore org.apache.solr.core.SolrCore@75eaa53e
qwc-solr_1                     | 2022-09-21 03:05:51.425 INFO  (coreCloseExecutor-21-thread-1) [   ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.core.gdi tag=SolrCore@75eaa53e
qwc-solr_1                     | 2022-09-21 03:05:51.425 INFO  (coreCloseExecutor-21-thread-1) [   ] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter@88639a0: rootName = null, domain = solr.core.gdi, service url = null, agent id = null] for registry solr.core.gdi/com.codahale.metrics.MetricRegistry@6f43b84f
qwc-solr_1                     | 2022-09-21 03:05:51.469 INFO  (coreCloseExecutor-21-thread-1) [   ] o.a.s.u.DirectUpdateHandler2 Committing on IndexWriter.close()  ... SKIPPED (unnecessary).
qwc-solr_1                     | 2022-09-21 03:05:51.492 INFO  (JettyShutdownThread) [   ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.node tag=null
qwc-solr_1                     | 2022-09-21 03:05:51.492 INFO  (JettyShutdownThread) [   ] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter@25673087: rootName = null, domain = solr.node, service url = null, agent id = null] for registry solr.node/com.codahale.metrics.MetricRegistry@4bbb7d42
qwc-solr_1                     | 2022-09-21 03:05:51.495 INFO  (JettyShutdownThread) [   ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.jvm tag=null
qwc-solr_1                     | 2022-09-21 03:05:51.496 INFO  (JettyShutdownThread) [   ] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter@4c5228e7: rootName = null, domain = solr.jvm, service url = null, agent id = null] for registry solr.jvm/com.codahale.metrics.MetricRegistry@20914d7d
qwc-solr_1                     | 2022-09-21 03:05:51.498 INFO  (JettyShutdownThread) [   ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.jetty tag=null
qwc-solr_1                     | 2022-09-21 03:05:51.498 INFO  (JettyShutdownThread) [   ] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter@38e7ed69: rootName = null, domain = solr.jetty, service url = null, agent id = null] for registry solr.jetty/com.codahale.metrics.MetricRegistry@5ad7bc37
qwc-solr_1                     | 2022-09-21 03:05:51.519 INFO  (JettyShutdownThread) [   ] o.e.j.s.h.ContextHandler Stopped o.e.j.w.WebAppContext@18245eb0{/solr,null,STOPPED}{/opt/solr-8.11.1/server/solr-webapp/webapp}
qwc-solr_1                     | Executing /opt/docker-solr/scripts/solr-precreate gdi /gdi_conf
qwc-solr_1                     | Executing /opt/docker-solr/scripts/precreate-core gdi /gdi_conf
qwc-solr_1                     | Core gdi already exists
qwc-solr_1                     | Starting Solr 
qwc-solr_1                     | OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 1)
qwc-solr_1                     | OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 1)
qwc-solr_1                     | OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 1)
qwc-solr_1                     | 2022-09-21 03:05:55.551 INFO  (main) [   ] o.e.j.u.log Logging initialized @828ms to org.eclipse.jetty.util.log.Slf4jLog
qwc-solr_1                     | 2022-09-21 03:05:55.763 INFO  (main) [   ] o.e.j.s.Server jetty-9.4.44.v20210927; built: 2021-09-27T23:02:44.612Z; git: 8da83308eeca865e495e53ef315a249d63ba9332; jvm 11.0.15+10
qwc-solr_1                     | 2022-09-21 03:05:55.774 INFO  (main) [   ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:///opt/solr-8.11.1/server/contexts/] at interval 0
qwc-solr_1                     | 2022-09-21 03:05:56.013 INFO  (main) [   ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
qwc-solr_1                     | 2022-09-21 03:05:56.031 INFO  (main) [   ] o.e.j.s.session DefaultSessionIdManager workerName=node0
qwc-solr_1                     | 2022-09-21 03:05:56.032 INFO  (main) [   ] o.e.j.s.session No SessionScavenger set, using defaults
qwc-solr_1                     | 2022-09-21 03:05:56.034 INFO  (main) [   ] o.e.j.s.session node0 Scavenging every 660000ms
qwc-solr_1                     | 2022-09-21 03:05:56.096 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter Using logger factory org.apache.logging.slf4j.Log4jLoggerFactory
qwc-docker_qwc-permalink-service_1 exited with code 1
qwc-docker_qwc-postgis_1 exited with code 1
qwc-solr_1                     | 2022-09-21 03:05:56.099 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 8.11.1
qwc-solr_1                     | 2022-09-21 03:05:56.100 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port 8983
qwc-solr_1                     | 2022-09-21 03:05:56.100 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: /opt/solr
qwc-solr_1                     | 2022-09-21 03:05:56.100 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2022-09-21T03:05:56.100411Z
qwc-solr_1                     | 2022-09-21 03:05:56.133 INFO  (main) [   ] o.a.s.c.SolrPaths Using system property solr.solr.home: /var/solr/data
qwc-solr_1                     | 2022-09-21 03:05:56.134 INFO  (main) [   ] o.a.s.c.SolrXmlConfig Loading container configuration from /var/solr/data/solr.xml
qwc-solr_1                     | 2022-09-21 03:05:56.210 INFO  (main) [   ] o.a.s.c.SolrXmlConfig MBean server found: com.sun.jmx.mbeanserver.JmxMBeanServer@3f4faf53, but no JMX reporters were configured - adding default JMX reporter.
qwc-solr_1                     | 2022-09-21 03:05:56.859 INFO  (main) [   ] o.a.s.h.c.HttpShardHandlerFactory Host whitelist initialized: WhitelistHostChecker [whitelistHosts=null, whitelistHostCheckingEnabled=true]
qwc-solr_1                     | 2022-09-21 03:05:56.989 WARN  (main) [   ] o.e.j.u.s.S.config Trusting all certificates configured for Client@30e6a763[provider=null,keyStore=null,trustStore=null]
qwc-solr_1                     | 2022-09-21 03:05:56.990 WARN  (main) [   ] o.e.j.u.s.S.config No Client EndPointIdentificationAlgorithm configured for Client@30e6a763[provider=null,keyStore=null,trustStore=null]
qwc-solr_1                     | 2022-09-21 03:05:57.172 WARN  (main) [   ] o.e.j.u.s.S.config Trusting all certificates configured for Client@5c8e67b9[provider=null,keyStore=null,trustStore=null]
qwc-solr_1                     | 2022-09-21 03:05:57.172 WARN  (main) [   ] o.e.j.u.s.S.config No Client EndPointIdentificationAlgorithm configured for Client@5c8e67b9[provider=null,keyStore=null,trustStore=null]
qwc-solr_1                     | 2022-09-21 03:05:57.215 WARN  (main) [   ] o.a.s.c.CoreContainer Not all security plugins configured!  authentication=disabled authorization=disabled.  Solr is only as secure as you make it. Consider configuring authentication/authorization before exposing Solr to users internal or external.  See https://s.apache.org/solrsecurity for more info
qwc-solr_1                     | 2022-09-21 03:05:57.361 INFO  (main) [   ] o.a.s.c.TransientSolrCoreCacheDefault Allocating transient core cache for max 2147483647 cores with initial capacity of 1024
qwc-solr_1                     | 2022-09-21 03:05:57.370 INFO  (main) [   ] o.a.s.h.a.MetricsHistoryHandler No .system collection, keeping metrics history in memory.
qwc-solr_1                     | 2022-09-21 03:05:57.435 INFO  (main) [   ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.node' (registry 'solr.node') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@3f4faf53
qwc-solr_1                     | 2022-09-21 03:05:57.436 INFO  (main) [   ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.jvm' (registry 'solr.jvm') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@3f4faf53
qwc-solr_1                     | 2022-09-21 03:05:57.437 INFO  (main) [   ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.jetty' (registry 'solr.jetty') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@3f4faf53
qwc-solr_1                     | 2022-09-21 03:05:57.466 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Found 1 core definitions underneath /var/solr/data
qwc-solr_1                     | 2022-09-21 03:05:57.467 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Cores are: [gdi]
qwc-solr_1                     | 2022-09-21 03:05:57.523 INFO  (main) [   ] o.e.j.s.h.ContextHandler Started o.e.j.w.WebAppContext@18245eb0{/solr,file:///opt/solr-8.11.1/server/solr-webapp/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp}
qwc-solr_1                     | 2022-09-21 03:05:57.531 WARN  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.SolrConfig Couldn't add files from /opt/solr/contrib/clustering/lib filtered by .*\.jar to classpath: java.nio.file.NoSuchFileException: /opt/solr/contrib/clustering/lib
qwc-solr_1                     | 2022-09-21 03:05:57.540 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.SolrResourceLoader Added 58 libs to classloader, from paths: [/opt/solr/contrib/extraction/lib, /opt/solr/contrib/langid/lib, /opt/solr/contrib/velocity/lib, /opt/solr/dist, /var/solr/data/gdi/conf/lib]
qwc-solr_1                     | 2022-09-21 03:05:57.542 INFO  (main) [   ] o.e.j.s.AbstractConnector Started ServerConnector@1755e85b{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:8983}
qwc-solr_1                     | 2022-09-21 03:05:57.543 INFO  (main) [   ] o.e.j.s.Server Started @2821ms
qwc-solr_1                     | 2022-09-21 03:05:57.750 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.SolrConfig Using Lucene MatchVersion: 7.7.1
qwc-solr_1                     | 2022-09-21 03:05:57.783 WARN  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.SolrConfig solrconfig.xml: <jmx> is no longer supported, use solr.xml:/metrics/reporter section instead
qwc-solr_1                     | 2022-09-21 03:05:57.822 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.s.IndexSchema Schema name=default-config
qwc-solr_1                     | 2022-09-21 03:05:58.072 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.s.IndexSchema Loaded schema default-config/1.6 with uniqueid field id
qwc-solr_1                     | 2022-09-21 03:05:58.085 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.CoreContainer Creating SolrCore 'gdi' using configuration from instancedir /var/solr/data/gdi, trusted=true
qwc-solr_1                     | 2022-09-21 03:05:58.110 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.gdi' (registry 'solr.core.gdi') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@3f4faf53
qwc-solr_1                     | 2022-09-21 03:05:58.123 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.c.SolrCore [[gdi] ] Opening new SolrCore at [/var/solr/data/gdi], dataDir=[/var/solr/data/gdi/data/]
qwc-solr_1                     | 2022-09-21 03:05:58.152 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.r.XSLTResponseWriter xsltCacheLifetimeSeconds=5
qwc-solr_1                     | 2022-09-21 03:05:58.562 WARN  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.h.d.DataImportHandler Data Import Handler is deprecated as of Solr 8.6. See SOLR-14066 for more details.
qwc-solr_1                     | 2022-09-21 03:05:58.583 WARN  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.h.d.DataImportHandler Data Import Handler is deprecated as of Solr 8.6. See SOLR-14066 for more details.
qwc-solr_1                     | 2022-09-21 03:05:58.599 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.u.UpdateHandler Using UpdateLog implementation: org.apache.solr.update.UpdateLog
qwc-solr_1                     | 2022-09-21 03:05:58.599 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.u.UpdateLog Initializing UpdateLog: dataDir= defaultSyncLevel=FLUSH numRecordsToKeep=100 maxNumLogsToKeep=10 numVersionBuckets=65536
qwc-solr_1                     | 2022-09-21 03:05:58.608 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.u.CommitTracker Hard AutoCommit: if uncommitted for 15000ms; 
qwc-solr_1                     | 2022-09-21 03:05:58.608 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.u.CommitTracker Soft AutoCommit: disabled
qwc-solr_1                     | 2022-09-21 03:05:58.678 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.r.ManagedResourceStorage File-based storage initialized to use dir: /var/solr/data/gdi/conf
qwc-solr_1                     | 2022-09-21 03:05:58.689 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.h.c.SpellCheckComponent Initializing spell checkers
qwc-solr_1                     | 2022-09-21 03:05:58.695 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.s.DirectSolrSpellChecker init: {name=default,field=_text_,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxQueryFrequency=0.01,maxEdits=2,minPrefix=1,maxInspections=5,minQueryLength=4}
qwc-solr_1                     | 2022-09-21 03:05:58.707 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.h.ReplicationHandler Commits will be reserved for 10000 ms
qwc-solr_1                     | 2022-09-21 03:05:58.714 INFO  (coreLoadExecutor-13-thread-1) [   x:gdi] o.a.s.u.UpdateLog Could not find max version in index or recent updates, using new clock 1744546885758091264
qwc-solr_1                     | 2022-09-21 03:05:58.719 INFO  (searcherExecutor-15-thread-1-processing-x:gdi) [   x:gdi] o.a.s.c.QuerySenderListener QuerySenderListener done.
qwc-solr_1                     | 2022-09-21 03:05:58.719 INFO  (searcherExecutor-15-thread-1-processing-x:gdi) [   x:gdi] o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: default
qwc-solr_1                     | 2022-09-21 03:05:58.727 INFO  (searcherExecutor-15-thread-1-processing-x:gdi) [   x:gdi] o.a.s.c.SolrCore [gdi]  Registered new searcher autowarm time: 0 ms
qwc-docker_qwc-qgis-server_1 exited with code 1

Added another logs from qwc-docker_qwc-api-gateway_1


/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

2022/09/21 02:37:32 [emerg] 1#1: host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
\nginx: [emerg] host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

2022/09/21 02:44:36 [emerg] 1#1: host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
nginx: [emerg] host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

2022/09/21 02:59:28 [emerg] 1#1: host not found in upstream "qwc-auth-service" in /etc/nginx/conf.d/default.conf:21
nginx: [emerg] host not found in upstream "qwc-auth-service" in /etc/nginx/conf.d/default.conf:21
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

2022/09/21 03:05:53 [emerg] 1#1: host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
nginx: [emerg] host not found in upstream "qwc-map-viewer" in /etc/nginx/conf.d/default.conf:17
HusseinKabbout commented 2 years ago

It seems that the container qwc-map-viewer was not started or could not be created and nginx (qwc-api-gateway) did not start because it failed to connect to it. As you did not include any logs from the qwc-map-viewer, I cannot tell why the qwc-map-viewer container did not start.

This seems to me like a misconfiguration from your side. Could you post the content of the following files:

manisandro commented 1 year ago

Closing, please reopen if issue is still relevant.