現行のUbuntu16.04サーバーを18.04に移行しようとして、各サービスの移行に取りかかったのだが、Alfrescoがいくらやっても動かない。Dockerならそのまま動くイメージがダウンロードできるから、それと中身を比べてみりゃいいかなと思った。
そもそも、Dockerというのはなんとなくイメージは持っていたものの、まだ理解できていないから学習。
Qiita / Docker入門 #1 【Dockerとは】
Ubuntu 22.04 DockerでAlfrescoを書きました。※2022/06/15追記
Dockerのインストール
まず、構築中の環境に変化を与えたくないから、仮想PCをもう1つ作ってDocker用とした。
その上で…インストールにあたって、docker, docker-compose を使うそうなので、早速インストール。本家からじゃなくてUbuntuが用意してくれているパッケージ。
$ sudo apt install docker docker-compose
本家からインストールする方法はこちら。
Qiita / Ubuntuにdockerをインストールする
docker-composeは複数のコンテナをまとめて1つのアプリケーション実行環境を構成するために使うらしい。
Alfrescoのインストール
Alfresco docker-composeのダウンロード
手順書では、gitからクローンをとってくるようにと書かれている。多分それが簡単なんだろうけど、パッケージダウンロードのリンクから飛んだ先でzip形式をダウンロードしてきた。
GitHub / Alfresco/acs-community-deployment
コンテナのダウンロードと起動
これを展開して…イメージをダウンロードするので時間がかかる。
パラメータの最後に -d を付けると、バックグラウンド起動するらしい。
$ cd acs-community-deployment-2.2.0/docker-compose
$ sudo docker-compose upalfresco_1 | 2019-05-29 09:07:40,712 INFO [management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-7] Starting 'Transformers' subsystem, ID: [Transformers, default]…Attaching to dockercompose_share_1, dockercompose_postgres_1, dockercompose_activemq_1, dockercompose_alfresco_1, dockercompose_solr6_1
share_1 | Replace ‘REPO_HOST’ with ‘alfresco’ and ‘REPO_PORT’ with ‘8080’
share_1 | NEW -csrf.filter.referer is ”
share_1 | /usr/local/tomcat/shared/classes/alfresco/substituter.sh: line 19: [: !=: unary operator expected
share_1 | NEW -csrf.filter.origin is ”
share_1 | NOTE: Picked up JDK_JAVA_OPTIONS: –add-opens=java.base/java.lang=ALL-UNNAMED –add-opens=java.base/java.io=ALL-UNNAMED –add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
postgres_1 | The files belonging to this database system will be owned by user “postgres”.
postgres_1 | This user must also own the server process.
postgres_1 |
postgres_1 | The database cluster will be initialized with locale “en_US.utf8”.
postgres_1 | The default database encoding has accordingly been set to “UTF8”.
postgres_1 | The default text search configuration will be set to “english”.
postgres_1 |
postgres_1 | Data page checksums are disabled.
postgres_1 |
postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data … ok
postgres_1 | creating subdirectories … ok
postgres_1 | selecting default max_connections … 100
postgres_1 | selecting default shared_buffers … 128MB
postgres_1 | selecting dynamic shared memory implementation … posix
activemq_1 | INFO: Loading ‘/opt/activemq/bin/env’
activemq_1 | INFO: Using java ‘/usr/java/default/bin/java’
activemq_1 | INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
activemq_1 | INFO: Creating pidfile /opt/activemq/data/activemq.pid
alfresco_1 | NOTE: Picked up JDK_JAVA_OPTIONS: –add-opens=java.base/java.lang=ALL-UNNAMED –add-opens=java.base/java.io=ALL-UNNAMED –add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
postgres_1 | creating configuration files … ok
postgres_1 | running bootstrap script … ok
postgres_1 | performing post-bootstrap initialization … ok
activemq_1 | Java Runtime: Oracle Corporation 1.8.0_181 /usr/java/jdk1.8.0_181/jre
activemq_1 | Heap sizes: current=63360k free=58814k max=1013632k
activemq_1 | JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/activemq/conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/opt/activemq/tmp -Dactivemq.classpath=/opt/activemq/conf:/opt/activemq/../lib/: -Dactivemq.home=/opt/activemq -Dactivemq.base=/opt/activemq -Dactivemq.conf=/opt/activemq/conf -Dactivemq.data=/opt/activemq/data
activemq_1 | Extensions classpath:
activemq_1 | [/opt/activemq/lib,/opt/activemq/lib/camel,/opt/activemq/lib/optional,/opt/activemq/lib/web,/opt/activemq/lib/extra]activemq_1 | ACTIVEMQ_HOME: /opt/activemq
activemq_1 | ACTIVEMQ_BASE: /opt/activemq
activemq_1 | ACTIVEMQ_CONF: /opt/activemq/conf
activemq_1 | ACTIVEMQ_DATA: /opt/activemq/data
postgres_1 | syncing data to disk … ok
postgres_1 |
postgres_1 | WARNING: enabling “trust” authentication for local connections
postgres_1 | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1 | –auth-local and –auth-host, the next time you run initdb.
postgres_1 |
postgres_1 | Success. You can now start the database server using:
postgres_1 |
postgres_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1 |
postgres_1 | waiting for server to start….2019-05-29 09:03:14.436 UTC [36] LOG: listening on IPv4 address “127.0.0.1”, port 5432
postgres_1 | 2019-05-29 09:03:14.436 UTC [36] LOG: could not bind IPv6 address “::1”: Cannot assign requested address
postgres_1 | 2019-05-29 09:03:14.436 UTC [36] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
postgres_1 | 2019-05-29 09:03:14.569 UTC [36] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
postgres_1 | 2019-05-29 09:03:15.079 UTC [37] LOG: database system was shut down at 2019-05-29 09:03:13 UTC
postgres_1 | 2019-05-29 09:03:15.099 UTC [36] LOG: database system is ready to accept connections
postgres_1 | done
postgres_1 | server started
postgres_1 | CREATE DATABASE
postgres_1 |
postgres_1 | CREATE ROLE
postgres_1 |
postgres_1 |
postgres_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1 |
postgres_1 | 2019-05-29 09:03:16.407 UTC [36] LOG: received fast shutdown request
postgres_1 | waiting for server to shut down….2019-05-29 09:03:16.517 UTC [36] LOG: aborting any active transactions
postgres_1 | 2019-05-29 09:03:16.526 UTC [36] LOG: worker process: logical replication launcher (PID 43) exited with exit code 1
postgres_1 | 2019-05-29 09:03:16.528 UTC [38] LOG: shutting down
activemq_1 | Loading message broker from: xbean:activemq.xml
postgres_1 | 2019-05-29 09:03:17.240 UTC [36] LOG: database system is shut down
postgres_1 | done
postgres_1 | server stopped
postgres_1 |
postgres_1 | PostgreSQL init process complete; ready for start up.
postgres_1 |
postgres_1 | 2019-05-29 09:03:17.513 UTC [1] LOG: listening on IPv4 address “0.0.0.0”, port 5432
postgres_1 | 2019-05-29 09:03:17.514 UTC [1] LOG: listening on IPv6 address “::”, port 5432
activemq_1 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@73ad2d6: startup date [Wed May 29 09:03:17 UTC 2019]; root of context hierarchy
postgres_1 | 2019-05-29 09:03:17.756 UTC [1] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
postgres_1 | 2019-05-29 09:03:18.270 UTC [63] LOG: database system was shut down at 2019-05-29 09:03:17 UTC
postgres_1 | 2019-05-29 09:03:18.587 UTC [1] LOG: database system is ready to accept connections
share_1 | 29-May-2019 09:03:25.305 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.34
share_1 | 29-May-2019 09:03:25.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:28:22 UTC
share_1 | 29-May-2019 09:03:25.337 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.34.0
share_1 | 29-May-2019 09:03:25.338 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
share_1 | 29-May-2019 09:03:25.338 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-50-generic
share_1 | 29-May-2019 09:03:25.339 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
share_1 | 29-May-2019 09:03:25.346 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/java/jdk-11.0.1
share_1 | 29-May-2019 09:03:25.346 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.1+13
share_1 | 29-May-2019 09:03:25.355 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
share_1 | 29-May-2019 09:03:25.365 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
share_1 | 29-May-2019 09:03:25.367 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
alfresco_1 | 29-May-2019 09:03:25.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.34
alfresco_1 | 29-May-2019 09:03:25.373 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:28:22 UTC
alfresco_1 | 29-May-2019 09:03:25.376 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.34.0
alfresco_1 | 29-May-2019 09:03:25.381 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
alfresco_1 | 29-May-2019 09:03:25.385 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-50-generic
share_1 | 29-May-2019 09:03:25.375 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.base/java.lang=ALL-UNNAMED
share_1 | 29-May-2019 09:03:25.391 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.base/java.io=ALL-UNNAMED
alfresco_1 | 29-May-2019 09:03:25.396 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
alfresco_1 | 29-May-2019 09:03:25.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/java/jdk-11.0.1
alfresco_1 | 29-May-2019 09:03:25.402 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.1+13
share_1 | 29-May-2019 09:03:25.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
share_1 | 29-May-2019 09:03:25.404 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
alfresco_1 | 29-May-2019 09:03:25.407 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
share_1 | 29-May-2019 09:03:25.410 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
alfresco_1 | 29-May-2019 09:03:25.411 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
share_1 | 29-May-2019 09:03:25.412 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
alfresco_1 | 29-May-2019 09:03:25.421 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
alfresco_1 | 29-May-2019 09:03:25.423 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.base/java.lang=ALL-UNNAMED
alfresco_1 | 29-May-2019 09:03:25.437 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.base/java.io=ALL-UNNAMED
share_1 | 29-May-2019 09:03:25.438 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
alfresco_1 | 29-May-2019 09:03:25.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: –add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
alfresco_1 | 29-May-2019 09:03:25.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
alfresco_1 | 29-May-2019 09:03:25.449 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
share_1 | 29-May-2019 09:03:25.452 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
alfresco_1 | 29-May-2019 09:03:25.453 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Ddb.driver=org.postgresql.Driver
alfresco_1 | 29-May-2019 09:03:25.455 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Ddb.username=alfresco
share_1 | 29-May-2019 09:03:25.456 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms500m
share_1 | 29-May-2019 09:03:25.456 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx500m
share_1 | 29-May-2019 09:03:25.457 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
share_1 | 29-May-2019 09:03:25.461 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
share_1 | 29-May-2019 09:03:25.465 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
share_1 | 29-May-2019 09:03:25.466 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
share_1 | 29-May-2019 09:03:25.466 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.4.8].
alfresco_1 | 29-May-2019 09:03:25.467 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Ddb.password=alfresco
share_1 | 29-May-2019 09:03:25.467 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
alfresco_1 | 29-May-2019 09:03:25.470 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
share_1 | 29-May-2019 09:03:25.470 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]alfresco_1 | 29-May-2019 09:03:25.471 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsolr.host=solr6
alfresco_1 | 29-May-2019 09:03:25.482 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsolr.port=8983
alfresco_1 | 29-May-2019 09:03:25.493 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsolr.secureComms=none
alfresco_1 | 29-May-2019 09:03:25.494 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsolr.base.url=/solr
alfresco_1 | 29-May-2019 09:03:25.496 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dindex.subsystem.name=solr6
alfresco_1 | 29-May-2019 09:03:25.497 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dshare.host=localhost
alfresco_1 | 29-May-2019 09:03:25.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dalfresco.port=8082
alfresco_1 | 29-May-2019 09:03:25.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Daos.baseUrlOverwrite=http://localhost:8082/alfresco/aos
alfresco_1 | 29-May-2019 09:03:25.505 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dmessaging.broker.url=failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true
alfresco_1 | 29-May-2019 09:03:25.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Ddeployment.method=DOCKER_COMPOSE
alfresco_1 | 29-May-2019 09:03:25.523 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcsrf.filter.enabled=false
alfresco_1 | 29-May-2019 09:03:25.524 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms1g
alfresco_1 | 29-May-2019 09:03:25.530 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1g
alfresco_1 | 29-May-2019 09:03:25.531 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
share_1 | 29-May-2019 09:03:25.508 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2k-fips 26 Jan 2017]alfresco_1 | 29-May-2019 09:03:25.536 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
alfresco_1 | 29-May-2019 09:03:25.541 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
alfresco_1 | 29-May-2019 09:03:25.545 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
alfresco_1 | 29-May-2019 09:03:25.559 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.security.manager
alfresco_1 | 29-May-2019 09:03:25.560 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.security.policy==/usr/local/tomcat/conf/catalina.policy
alfresco_1 | 29-May-2019 09:03:25.565 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
alfresco_1 | 29-May-2019 09:03:25.568 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
alfresco_1 | 29-May-2019 09:03:25.575 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
alfresco_1 | 29-May-2019 09:03:25.580 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.4.8].
alfresco_1 | 29-May-2019 09:03:25.591 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
alfresco_1 | 29-May-2019 09:03:25.596 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]alfresco_1 | 29-May-2019 09:03:25.640 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2k-fips 26 Jan 2017]share_1 | 29-May-2019 09:03:26.127 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]alfresco_1 | 29-May-2019 09:03:26.362 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]share_1 | 29-May-2019 09:03:26.375 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
share_1 | 29-May-2019 09:03:26.465 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]share_1 | 29-May-2019 09:03:26.499 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
share_1 | 29-May-2019 09:03:26.523 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 11419 ms
activemq_1 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/activemq/data/kahadb]alfresco_1 | 29-May-2019 09:03:26.596 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
alfresco_1 | 29-May-2019 09:03:26.683 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]alfresco_1 | 29-May-2019 09:03:26.718 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
alfresco_1 | 29-May-2019 09:03:26.744 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 11475 ms
activemq_1 | INFO | PListStore:[/opt/activemq/data/localhost/tmp_storage] started
share_1 | 29-May-2019 09:03:27.452 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]share_1 | 29-May-2019 09:03:27.464 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
alfresco_1 | 29-May-2019 09:03:27.577 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]alfresco_1 | 29-May-2019 09:03:27.580 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
share_1 | 29-May-2019 09:03:27.602 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/share]alfresco_1 | 29-May-2019 09:03:27.710 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/api-explorer]activemq_1 | INFO | Apache ActiveMQ 5.15.6 (localhost, ID:321e02ca3164-39517-1559120607516-0:1) is starting
activemq_1 | INFO | Listening for connections at: tcp://321e02ca3164:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
activemq_1 | INFO | Connector openwire started
activemq_1 | INFO | Listening for connections at: amqp://321e02ca3164:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
activemq_1 | INFO | Connector amqp started
activemq_1 | INFO | Listening for connections at: stomp://321e02ca3164:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
activemq_1 | INFO | Connector stomp started
activemq_1 | INFO | Listening for connections at: mqtt://321e02ca3164:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
activemq_1 | INFO | Connector mqtt started
activemq_1 | WARN | ServletContext@o.e.j.s.ServletContextHandler@41ab013{/,null,STARTING} has uncovered http methods for path: /
activemq_1 | INFO | Listening for connections at ws://321e02ca3164:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
activemq_1 | INFO | Connector ws started
activemq_1 | INFO | Apache ActiveMQ 5.15.6 (localhost, ID:321e02ca3164-39517-1559120607516-0:1) started
activemq_1 | INFO | For help or more information please see: http://activemq.apache.org
alfresco_1 | 29-May-2019 09:03:34.297 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
alfresco_1 | 29-May-2019 09:03:34.709 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [144] milliseconds.
activemq_1 | INFO | No Spring WebApplicationInitializer types detected on classpath
solr6_1 | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
alfresco_1 | 29-May-2019 09:03:40.968 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/api-explorer] has finished in [13,257] ms
alfresco_1 | 29-May-2019 09:03:40.988 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/alfresco]activemq_1 | INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
activemq_1 | INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/
activemq_1 | INFO | Initializing Spring FrameworkServlet ‘dispatcher’
activemq_1 | INFO | No Spring WebApplicationInitializer types detected on classpath
solr6_1 | WARNING: An illegal reflective access operation has occurred
solr6_1 | 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
solr6_1 | WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil
solr6_1 | WARNING: Use –illegal-access=warn to enable warnings of further illegal reflective access operations
solr6_1 | WARNING: All illegal access operations will be denied in a future release
activemq_1 | INFO | jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml
solr6_1 | 2019-05-29 09:03:45.281 INFO (main) [ ] o.e.j.s.Server jetty-9.3.14.v20161028
alfresco_1 | 29-May-2019 09:03:46.833 WARNING [localhost-startStop-1] org.apache.juli.ClassLoaderLogManager.readConfiguration Reading /usr/local/tomcat/webapps/alfresco/WEB-INF/classes/logging.properties is not permitted. See “per context logging” in the default catalina.policy file.
solr6_1 | 2019-05-29 09:03:50.810 INFO (main) [ ] o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solr? version 6.6.5-patched a77dde61f5121c726afb0e50a8e34ebba88534a4 – build – 2018-10-26 16:24:31
solr6_1 | 2019-05-29 09:03:50.813 INFO (main) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port 8983
solr6_1 | 2019-05-29 09:03:50.826 INFO (main) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | ‘_| Install dir: /opt/alfresco-search-services/solr
solr6_1 | 2019-05-29 09:03:50.918 INFO (main) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2019-05-29T09:03:50.838413Z
solr6_1 | 2019-05-29 09:03:58.855 INFO (main) [ ] o.e.j.s.Server Started @21212ms
share_1 | May 29, 2019 9:04:00 AM org.apache.jasper.servlet.TldScanner scanJars
share_1 | INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
share_1 | May 29, 2019 9:04:00 AM org.apache.catalina.core.ApplicationContext log
share_1 | INFO: No Spring WebApplicationInitializer types detected on classpath
share_1 | May 29, 2019 9:04:00 AM org.apache.catalina.core.ApplicationContext log
share_1 | INFO: Initializing Spring root WebApplicationContext
share_1 | WARNING: An illegal reflective access operation has occurred
share_1 | WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/usr/local/tomcat/webapps/share/WEB-INF/lib/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
share_1 | WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
share_1 | WARNING: Use –illegal-access=warn to enable warnings of further illegal reflective access operations
share_1 | WARNING: All illegal access operations will be denied in a future release
solr6_1 | 2019-05-29 09:04:08.395 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’
solr6_1 | 2019-05-29 09:04:13.414 WARN (Thread-12) [ 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.
solr6_1 | 2019-05-29 09:04:13.494 WARN (Thread-12) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
solr6_1 | 2019-05-29 09:04:22.338 WARN (Thread-12) [ x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
solr6_1 | 2019-05-29 09:04:23.470 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/archive’
solr6_1 | 2019-05-29 09:04:28.035 WARN (Thread-12) [ x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
share_1 | 2019-05-29 09:04:35,829 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] Found 1 module package(s)
share_1 | 2019-05-29 09:04:35,845 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] Alfresco / Google Docs Share Module, 3.1.0, The Share side artifacts of the Alfresco / Google Docs Integration.
share_1 |
share_1 | 2019-05-29 09:04:38,388 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2019-05-29 09:04:38,423 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
share_1 | 2019-05-29 09:04:38,429 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2019-05-29 09:04:38,443 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
alfresco_1 | 29-May-2019 09:04:40.114 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
share_1 | 2019-05-29 09:04:50,864 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 393 Web Scripts (+0 failed), 411 URLs
share_1 | 2019-05-29 09:04:50,869 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
share_1 | 2019-05-29 09:04:50,879 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
share_1 | 2019-05-29 09:04:51,369 INFO [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Surf Container Web Script Container (in 12920.508ms)
share_1 | 2019-05-29 09:04:51,622 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2019-05-29 09:04:51,628 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
share_1 | May 29, 2019 9:04:53 AM org.apache.catalina.core.ApplicationContext log
share_1 | INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
share_1 | May 29, 2019 9:04:53 AM org.apache.catalina.core.ApplicationContext log
share_1 | INFO: Initializing Spring FrameworkServlet ‘Spring Surf Dispatcher Servlet’
share_1 | 29-May-2019 09:04:53.292 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/share] has finished in [85,688] ms
share_1 | 29-May-2019 09:04:53.308 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]share_1 | 29-May-2019 09:04:53.363 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-8009”]share_1 | 29-May-2019 09:04:53.380 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 86853 ms
alfresco_1 | 2019-05-29 09:05:12,042 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
alfresco_1 | 2019-05-29 09:05:12,045 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
alfresco_1 | 2019-05-29 09:05:12,046 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
alfresco_1 | 2019-05-29 09:05:12,843 INFO [alfresco.repo.admin] [localhost-startStop-1] Using database URL ‘jdbc:postgresql://postgres:5432/alfresco’ with user ‘alfresco’.
alfresco_1 | 2019-05-29 09:05:12,843 INFO [alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 10.1
alfresco_1 | 2019-05-29 09:05:27,465 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Authentication’ subsystem, ID: [Authentication, managed, alfrescoNtlm1]alfresco_1 | 2019-05-29 09:05:27,654 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Authentication’ subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
alfresco_1 | 2019-05-29 09:05:33,463 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
alfresco_1 | 2019-05-29 09:05:33,467 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor Repository Script Processor for extension js
alfresco_1 | 2019-05-29 09:05:39,560 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘ContentStore’ subsystem, ID: [ContentStore, managed, unencrypted]alfresco_1 | 2019-05-29 09:05:39,666 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘ContentStore’ subsystem, ID: [ContentStore, managed, unencrypted] complete
alfresco_1 | 2019-05-29 09:05:39,797 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Connecting to database: jdbc:postgresql://postgres:5432/alfresco, UserName=alfresco, PostgreSQL JDBC Driver
alfresco_1 | 2019-05-29 09:05:39,802 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.alfresco.repo.domain.dialect.PostgreSQLDialect.
alfresco_1 | 2019-05-29 09:05:40,031 WARN [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema validation found 85 potential problems, results written to: /usr/local/tomcat/temp/Alfresco/Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-alf_-1308494066561356893.txt
alfresco_1 | 2019-05-29 09:05:40,061 WARN [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema validation found 26 potential problems, results written to: /usr/local/tomcat/temp/Alfresco/Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-act_-13429161683576695568.txt
alfresco_1 | 2019-05-29 09:05:40,216 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Normalized schema dumped to file /usr/local/tomcat/temp/Alfresco/Alfresco-schema-PostgreSQLDialect-pre-upgrade-alf_-14985604869836235480.xml.
alfresco_1 | 2019-05-29 09:05:40,217 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Normalized schema dumped to file /usr/local/tomcat/temp/Alfresco/Alfresco-schema-PostgreSQLDialect-pre-upgrade-act_-14919365257020308085.xml.
alfresco_1 | 2019-05-29 09:05:40,225 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Bootstrap started.
alfresco_1 | 2019-05-29 09:05:40,226 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-13915431529152082780.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-RepoTables.sql).
alfresco_1 | 2019-05-29 09:05:41,215 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-4987554653099744147.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-LockTables.sql).
alfresco_1 | 2019-05-29 09:05:41,277 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-1880190126577467.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-ContentTables.sql).
alfresco_1 | 2019-05-29 09:05:41,444 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-6746389208518796168.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql).
alfresco_1 | 2019-05-29 09:05:41,755 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-11986889063239563864.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-ContentUrlEncryptionTables.sql).
alfresco_1 | 2019-05-29 09:05:41,804 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-14189779961662209730.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-AuditTables.sql).
alfresco_1 | 2019-05-29 09:05:42,032 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-12564181486853129920.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql).
alfresco_1 | 2019-05-29 09:05:42,189 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-4287856113811321291.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-UsageTables.sql).
alfresco_1 | 2019-05-29 09:05:42,217 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-7920299753119660183.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-SubscriptionTables.sql).
alfresco_1 | 2019-05-29 09:05:42,248 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-3161466137297769824.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-TenantTables.sql).
alfresco_1 | 2019-05-29 09:05:42,274 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-16923181197434957192.sql (Copied from classpath:alfresco/dbscripts/create/org.alfresco.repo.domain.dialect.PostgreSQLDialect/AlfrescoCreate-AuthorizationTables.sql).
alfresco_1 | 2019-05-29 09:05:42,337 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Creating Alfresco tables took 2471 ms
alfresco_1 | 2019-05-29 09:05:42,342 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Activiti tables need to be created
alfresco_1 | 2019-05-29 09:05:43,492 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Creating Activiti DB schema tables
alfresco_1 | 2019-05-29 09:05:44,747 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Creating Activiti tables took 2404 ms
alfresco_1 | 2019-05-29 09:05:44,748 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Creating the DB schema took 4938 ms
alfresco_1 | 2019-05-29 09:05:44,749 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] All executed statements: /usr/local/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-All_Statements-3004265449352138921.sql.
alfresco_1 | 2019-05-29 09:05:44,751 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Bootstrap completed.
alfresco_1 | WARNING: An illegal reflective access operation has occurred
alfresco_1 | WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/usr/local/tomcat/webapps/alfresco/WEB-INF/lib/mybatis-3.3.0.jar) to method java.util.HashMap.hash(java.lang.Object)
alfresco_1 | WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector
alfresco_1 | WARNING: Use –illegal-access=warn to enable warnings of further illegal reflective access operations
alfresco_1 | WARNING: All illegal access operations will be denied in a future release
alfresco_1 | 2019-05-29 09:05:59,592 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Search’ subsystem, ID: [Search, managed, solr6]alfresco_1 | 2019-05-29 09:06:00,416 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Search’ subsystem, ID: [Search, managed, solr6] complete
alfresco_1 | 2019-05-29 09:06:09,181 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘thirdparty’ subsystem, ID: [thirdparty, default]alfresco_1 | 2019-05-29 09:06:09,635 INFO [transform.pdfrenderer.AlfrescoPdfRendererContentTransformerWorker] [localhost-startStop-1] Using remote Alfresco PDF Renderer: Alfresco PDF Renderer Version 1.1 [5b0e0b81dt] 2018-02-20 15:34:00 using Pdfium [e53460ff] 2018-02-19 18:34:00 CEST
alfresco_1 | 2019-05-29 09:06:09,638 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘thirdparty’ subsystem, ID: [thirdparty, default] complete
alfresco_1 | 2019-05-29 09:06:09,638 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘OOoJodconverter’ subsystem, ID: [OOoJodconverter, default]alfresco_1 | 29-May-2019 09:06:09.750 INFO [localhost-startStop-1] org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.<init> ProcessManager implementation is LinuxProcessManager
alfresco_1 | 29-May-2019 09:06:09.836 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start Using original OpenOffice command: [/opt/libreoffice5.4/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8100;urp;, -env:UserInstallation=file:///usr/local/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]alfresco_1 | 29-May-2019 09:06:09.838 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start starting process with acceptString ‘socket,host=127.0.0.1,port=8100,tcpNoDelay=1’ and profileDir ‘/usr/local/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100’
alfresco_1 | 29-May-2019 09:06:09.869 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start started process; pid = 75
alfresco_1 | 29-May-2019 09:06:13.494 WARNING [OfficeProcessThread-0] org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt office process died with exit code 81; restarting it
alfresco_1 | 29-May-2019 09:06:13.503 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start Using original OpenOffice command: [/opt/libreoffice5.4/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8100;urp;, -env:UserInstallation=file:///usr/local/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]alfresco_1 | 29-May-2019 09:06:13.507 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start starting process with acceptString ‘socket,host=127.0.0.1,port=8100,tcpNoDelay=1’ and profileDir ‘/usr/local/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100’
alfresco_1 | 29-May-2019 09:06:13.537 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start started process; pid = 86
alfresco_1 | 29-May-2019 09:06:13.907 INFO [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeConnection.connect connected: ‘socket,host=127.0.0.1,port=8100,tcpNoDelay=1’
alfresco_1 | 2019-05-29 09:06:13,961 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘OOoJodconverter’ subsystem, ID: [OOoJodconverter, default] complete
alfresco_1 | 2019-05-29 09:06:13,965 WARN [repo.admin.ConfigurationChecker] [localhost-startStop-1] The ‘dir.root’ property is set to a relative path ‘./alf_data’. ‘dir.root’ should be overridden to point to a specific folder.
alfresco_1 | 2019-05-29 09:06:13,967 INFO [repo.admin.ConfigurationChecker] [localhost-startStop-1] The root data directory (‘dir.root’) is: ./alf_data
alfresco_1 | 2019-05-29 09:06:13,993 INFO [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply …
alfresco_1 | 2019-05-29 09:06:14,983 INFO [admin.patch.PatchExecuter] [localhost-startStop-1] Applying patch ‘patch.exampleJavaScript’ (Loads sample Javascript file into datadictionary scripts folder).
alfresco_1 | 2019-05-29 09:06:15,089 INFO [admin.patch.PatchExecuter] [localhost-startStop-1] Applying patch ‘patch.siteLoadPatch.swsdp’ (Loads a sample site into the repository.).
alfresco_1 | 2019-05-29 09:06:15,246 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘sysAdmin’ subsystem, ID: [sysAdmin, default]alfresco_1 | 2019-05-29 09:06:15,296 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘sysAdmin’ subsystem, ID: [sysAdmin, default] complete
alfresco_1 | 2019-05-29 09:06:23,016 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.db-V3.4-UsageTables
alfresco_1 | RESULT:
alfresco_1 | Script completed
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,017 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.db-V4.0-TenantTables
alfresco_1 | RESULT:
alfresco_1 | Script completed
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,019 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.db-V4.1-AuthorizationTables
alfresco_1 | RESULT:
alfresco_1 | Script completed
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,020 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.db-V5.0-ContentUrlEncryptionTables
alfresco_1 | RESULT:
alfresco_1 | Script completed
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,021 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.exampleJavaScript
alfresco_1 | RESULT:
alfresco_1 | Imported view into bootstrap location: /app:company_home/app:dictionary/app:scripts (workspace://SpacesStore/d0c0f678-7df7-412d-895c-11393c7fe91d)
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,022 INFO [admin.patch.PatchExecuter] [localhost-startStop-1]alfresco_1 | === Applied patch ===
alfresco_1 | ID: patch.siteLoadPatch.swsdp
alfresco_1 | RESULT:
alfresco_1 | Site swsdp imported.
alfresco_1 | =====================================
alfresco_1 | 2019-05-29 09:06:23,066 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Found 4 module package(s).
alfresco_1 | 2019-05-29 09:06:23,120 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module ‘alfresco-aos-module’ version 1.2.2.
alfresco_1 | 2019-05-29 09:06:23,162 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module ‘org.alfresco.integrations.google.docs’ version 3.1.0.
alfresco_1 | 2019-05-29 09:06:23,205 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module ‘alfresco-share-services’ version 6.1.0.
alfresco_1 | 2019-05-29 09:06:23,253 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module ‘alfresco-trashcan-cleaner’ version 2.3.
alfresco_1 | 2019-05-29 09:06:23,283 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘fileServers’ subsystem, ID: [fileServers, default]alfresco_1 | 2019-05-29 09:06:24,255 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘fileServers’ subsystem, ID: [fileServers, default] complete
alfresco_1 | 2019-05-29 09:06:24,258 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘imap’ subsystem, ID: [imap, default]alfresco_1 | 2019-05-29 09:06:24,466 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘imap’ subsystem, ID: [imap, default] complete
alfresco_1 | 2019-05-29 09:06:24,467 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ’email’ subsystem, ID: [email, outbound]alfresco_1 | 2019-05-29 09:06:24,692 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ’email’ subsystem, ID: [email, outbound] complete
alfresco_1 | 2019-05-29 09:06:24,693 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ’email’ subsystem, ID: [email, inbound]alfresco_1 | 2019-05-29 09:06:24,845 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ’email’ subsystem, ID: [email, inbound] complete
alfresco_1 | 2019-05-29 09:06:24,849 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Subscriptions’ subsystem, ID: [Subscriptions, default]alfresco_1 | 2019-05-29 09:06:24,900 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Subscriptions’ subsystem, ID: [Subscriptions, default] complete
alfresco_1 | 2019-05-29 09:06:24,944 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Synchronization’ subsystem, ID: [Synchronization, default]alfresco_1 | 2019-05-29 09:06:25,173 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Synchronization’ subsystem, ID: [Synchronization, default] complete
alfresco_1 | 2019-05-29 09:06:25,231 INFO [service.descriptor.DescriptorService] [localhost-startStop-1] Alfresco JVM – v11.0.1+13; maximum heap size 989.875MB
alfresco_1 | 2019-05-29 09:06:25,232 INFO [service.descriptor.DescriptorService] [localhost-startStop-1] Server Mode :UNKNOWN
alfresco_1 | 2019-05-29 09:06:25,236 INFO [service.descriptor.DescriptorService] [localhost-startStop-1] Alfresco Content Services started (Community). Current version: 6.1.2 (r589dc49b-b205) schema 13,001. Originally installed version: 6.1.2 (r589dc49b-b205) schema 13,001.
alfresco_1 | 2019-05-29 09:06:25,281 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘ActivitiesFeed’ subsystem, ID: [ActivitiesFeed, default]alfresco_1 | 2019-05-29 09:06:26,017 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘ActivitiesFeed’ subsystem, ID: [ActivitiesFeed, default] complete
alfresco_1 | 2019-05-29 09:06:26,021 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Replication’ subsystem, ID: [Replication, default]alfresco_1 | 2019-05-29 09:06:26,053 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Replication’ subsystem, ID: [Replication, default] complete
alfresco_1 | 2019-05-29 09:06:28,782 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘Messaging’ subsystem, ID: [Messaging, default]alfresco_1 | 2019-05-29 09:06:35,096 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘Messaging’ subsystem, ID: [Messaging, default] complete
alfresco_1 | 2019-05-29 09:06:35,104 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting ‘googledocs’ subsystem, ID: [googledocs, drive]alfresco_1 | 2019-05-29 09:06:35,569 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of ‘googledocs’ subsystem, ID: [googledocs, drive] complete
alfresco_1 | 2019-05-29 09:06:45,954 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 396 Web Scripts (+0 failed), 543 URLs
alfresco_1 | 2019-05-29 09:06:45,956 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 1 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:45,959 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:51,224 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 396 Web Scripts (+0 failed), 543 URLs
alfresco_1 | 2019-05-29 09:06:51,225 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 1 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:51,226 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:51,237 INFO [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Repository Web Script Container (in 15075.091ms)
alfresco_1 | 2019-05-29 09:06:51,330 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
alfresco_1 | 2019-05-29 09:06:51,358 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
alfresco_1 | 2019-05-29 09:06:56,224 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 396 Web Scripts (+0 failed), 543 URLs
alfresco_1 | 2019-05-29 09:06:56,224 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 1 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,225 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,500 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 14 Web Scripts (+0 failed), 103 URLs
alfresco_1 | 2019-05-29 09:06:56,501 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,501 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,629 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 14 Web Scripts (+0 failed), 103 URLs
alfresco_1 | 2019-05-29 09:06:56,631 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,632 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,645 INFO [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Public Api Web Script Container (in 5221.134ms)
alfresco_1 | 2019-05-29 09:06:56,772 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 14 Web Scripts (+0 failed), 103 URLs
alfresco_1 | 2019-05-29 09:06:56,780 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Package Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:56,781 INFO [extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 2019-05-29 09:06:57,036 WARN [scripts.servlet.X509ServletFilterBase] [localhost-startStop-1] clientAuth does not appear to be set for Tomcat. clientAuth must be set to ‘want’ for X509 Authentication
alfresco_1 | 2019-05-29 09:06:57,041 WARN [scripts.servlet.X509ServletFilterBase] [localhost-startStop-1] Attempting to set clientAuth=want through JMX…
alfresco_1 | 2019-05-29 09:06:57,081 WARN [scripts.servlet.X509ServletFilterBase] [localhost-startStop-1] Unable to set clientAuth=want through JMX.
alfresco_1 | 29-May-2019 09:07:04.826 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/alfresco] has finished in [203,838] ms
alfresco_1 | 29-May-2019 09:07:04.827 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]alfresco_1 | 29-May-2019 09:07:05.026 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property ‘debug’ to ‘100’ did not find a matching property.
alfresco_1 | 29-May-2019 09:07:05.301 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
alfresco_1 | 29-May-2019 09:07:05.310 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [483] ms
alfresco_1 | 29-May-2019 09:07:05.311 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/_vti_bin]alfresco_1 | 29-May-2019 09:07:05.646 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
alfresco_1 | 29-May-2019 09:07:05.659 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/_vti_bin] has finished in [346] ms
alfresco_1 | 29-May-2019 09:07:05.666 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]alfresco_1 | 29-May-2019 09:07:05.706 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-8009”]alfresco_1 | 29-May-2019 09:07:05.733 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 218984 ms
alfresco_1 | 2019-05-29 09:07:41,600 INFO [management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-7] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
最後の2行が表示されたら、システムは起動した、ということの模様。
アクセステスト
この段階で、以下のURLでアクセスできる。
user: admin
pass: admin
(この手順書に書いてあったのかぁ…)
http://hogeserver.hogeddns.jp:8082/alfresco
http://hogeserver.hogeddns.jp:8080/share
http://hogeserver.hogeddns.jp:8083/solr
確かにこれだけで起動する。簡単だ。
コンテナの停止
現在動いているセッションを [Ctrl]+[c] で止めるとサービスが止まる。
^CGracefully stopping... (press Ctrl+C again to force)
Stopping dockercompose_solr6_1 ... done
Stopping dockercompose_activemq_1 ... done
Stopping dockercompose_alfresco_1 ... done
Stopping dockercompose_postgres_1 ... done
Stopping dockercompose_share_1 ... done
コンテナの開始とか終了とか再起動とか
一度 up したら、後は以下の操作で色々できるみたい。
起動するときはそのディレクトリに行って実行。
$ cd acs-community-deployment-2.2.0/docker-compose
$ sudo docker-compose start
Starting activemq ... done
Starting solr6 ... done
Starting share ... done
Starting alfresco ... done
Starting postgres ... done
$
停止も同様。
$ cd acs-community-deployment-2.2.0/docker-compose
$ sudo docker-compose stop
Stopping dockercompose_solr6_1 ... done
Stopping dockercompose_activemq_1 ... done
Stopping dockercompose_alfresco_1 ... done
Stopping dockercompose_postgres_1 ... done
Stopping dockercompose_share_1 ... done
$
設定分析
かなり頑張ったけど、warのデプロイではちゃんとshareにログインできなかった。ということで、どこの設定がどう違うのかを確認したい。
コンテナへのログイン
dockerのコンテナ名を調べてみる。
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
152bdcb11903 alfresco/alfresco-search-services:1.3.0-RC2 "/bin/sh -c '$DIST_D…" 2 hours ago Up About a minute 0.0.0.0:8083->8983/tcp dockercompose_solr6_1
321e02ca3164 alfresco/alfresco-activemq:5.15.6 "/bin/sh -c './init.…" 2 hours ago Up About a minute 0.0.0.0:5672->5672/tcp, 0.0.0.0:8161->8161/tcp, 0.0.0.0:61613->61613/tcp, 0.0.0.0:61616->61616/tcp dockercompose_activemq_1
9cd50a89dc3f alfresco/alfresco-content-repository-community:6.1.2-ga "catalina.sh run -se…" 2 hours ago Up About a minute 0.0.0.0:8082->8080/tcp dockercompose_alfresco_1
7f99b5f4cdb7 postgres:10.1 "docker-entrypoint.s…" 2 hours ago Up About a minute 0.0.0.0:5432->5432/tcp dockercompose_postgres_1
12e82a1bb523 alfresco/alfresco-share:6.1.0-RC3 "/usr/local/tomcat/s…" 2 hours ago Up About a minute 8000/tcp, 0.0.0.0:8080->8080/tcp dockercompose_share_1
コンテナにログインするにはこれが使えそう。
Qiita / dockerで立ち上げたコンテナにログインする
$ sudo docker exec -it dockercompose_alfresco_1 /bin/bash
[root@9cd50a89dc3f tomcat]#
ファイルの転送
dockerのコンテナからファイルを取り出すときって、どうすりゃいいのかな?
Qiita / Dockerでホストとコンテナ間でのファイルコピー
コンテナにあるファイルをまとめて外に取り出してみる。
これは share に入ってファイルを取り出している。
$ sudo docker exec -it dockercompose_share_1 /bin/bash
[root@12e82a1bb523 tomcat]# cd ..
[root@12e82a1bb523 local]# tar -zcvf tomcat.tar.gz tomcat
[root@12e82a1bb523 local]# exit
$ sudo docker cp dockercompose_share_1:/usr/local/tomcat.tar.gz ./tomcat.tar.gz
※ファイルをコンテナに転送することもできるみたい。
取り出したファイルを、構築中の環境に持って行く。scpで行けるのか?
構築中の環境でログインして、dockerホストに接続してtomcat.tar.gzを持ってくる。
$ scp hogeuser@hogeserver:/home/hogeuser/work/tomcat.tar.gz ./tomcat.tar.gz
ファイルの比較
とってきたファイルを展開。
$ tar -zxvf tomcat.tar.gz
比較。
$ diff -r 展開先/tomcat/shared /usr/share/alfresco/tomcat/shared
一番最初に目に付いたのは、改行コードの違い。
Windowsでデプロイすることが考慮されているのかもしれない。
でも、まともな比較にならないので、改行コードを無視する。
Qiita / diffで改行コードの違いを無視する
$ diff -r --strip-trailing-cr 展開先/tomcat/shared /usr/share/alfresco/tomcat/shared
これで分析して原因となる箇所が分かった。ま、分析と言うほど素晴らしいものではないんだけど…比較して確認はマニュアルを読むより圧倒的に楽。
さいごに
dockerを色々なところで見かけるようになってから久しい。今回本気になってみるまでは「仮想環境の上に仮想環境」…なのに何故こんなに人気があるのか分からなかった。
でも、kernelはホストのものを使い、そこから上のレイヤーは全て独立していて、dockerで開発者が「これなら動くよ!」っていうコンポーネントを用意してくれて、そのコンポーネント同士が簡単につなげられる…環境構築が楽ちんになるこの技術は人気が出て当たり前だなって思った。可能性が広がリングだもん。
今はプアーな環境でサーバーを稼働させているから、色々と節約しなきゃだからAlfrescoを手動でインストールする道を選んだけど、余裕がある環境ならdockerでサクサクと動かすのがおすすめ。設定に苦労するなんて無駄だもん、トラブルに強いエンジニアにはなれるかもだけど。
コメントはこちらから お気軽にどうぞ ~ 投稿に関するご意見・感想・他