Try the fastest and simplest way to install ONLYOFFICE

Plesk / docker / onlyoffice

Issues during installation and related to database

Plesk / docker / onlyoffice

Postby crifalo » Fri May 11, 2018 3:12 pm

Hi all,
I install plesk onyx 17.8.11 and docker and only office. I put informations like the screenshot but I still have this error : Api url: Service is not defined
Do you have the same problem ?
Could you help me ?
Best regards
Laurent
Attachments
Capture d'écran 2018-05-11 17.07.44.png
Capture d'écran 2018-05-11 17.07.44.png (116.53 KiB) Viewed 52 times
crifalo
 
Posts: 2
Joined: Fri May 11, 2018 3:03 pm

Re: Plesk / docker / onlyoffice

Postby Maxim » Tue May 15, 2018 11:05 am

Hello crifalo!
1. Specify what instruction you followed to install Onlyoffice.
2. "Api url: Service is not defined" means that the Community Server cannot get access to the Document Server and vice versa.
3. try to change "localhost" to "http://onlyoffice-community-server"
I need to know how Onlyoffice was installed and server's OS.
Maxim
 
Posts: 1547
Joined: Tue Oct 11, 2016 2:34 pm

Re: Plesk / docker / onlyoffice

Postby crifalo » Sat May 19, 2018 10:09 pm

Hi,
I have the same pb check the screenshot attached.
I Used docker thought Plesk onyx 17.8.1 on Ubuntu 14.04.5 LTS‬.

I sent you the log :

* Restarting nginx nginx
...done.
onlyoffice: [Debug] Fix docker bug volume mapping for mysql
- check record delete-chain
- recovering (with sort) MyISAM-table '/var/lib/mysql/mysql/proc'
Data records: 14
- Fixing index 1
* Starting MySQL database server mysqld
...done.
* Checking for tables which need an upgrade, are corrupt or were
not closed cleanly.

onlyoffice: [Debug] Mysql check connection for localhost
mysqld is alive
onlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service
fix docker bug volume mapping for onlyoffice
Starting monoserve... OK
Starting monoserveApiSystem... OK
Starting onlyofficeSocketIO... OK
Starting onlyofficeFeed... OK
Starting onlyofficeIndex... OK
Starting onlyofficeJabber... OK
Starting onlyofficeMailAggregator... OK
Starting onlyofficeMailWatchdog... OK
Starting onlyofficeNotify... OK
Starting onlyofficeBackup... OK
onlyofficeAutoreply is not running
Restarting god... The server is not available (or you do not have permissions to access it)
OK
* Reloading nginx nginx
...done.
onlyoffice: [Debug] reload nginx config
onlyoffice: [Debug] FINISH
+ SERVER_HOST=
+ ONLYOFFICE_DIR=/var/www/onlyoffice
+ ONLYOFFICE_DATA_DIR=/var/www/onlyoffice/Data
+ ONLYOFFICE_PRIVATE_DATA_DIR=/var/www/onlyoffice/Data/.private
+ ONLYOFFICE_SERVICES_DIR=/var/www/onlyoffice/Services
+ ONLYOFFICE_SQL_DIR=/var/www/onlyoffice/Sql
+ ONLYOFFICE_ROOT_DIR=/var/www/onlyoffice/WebStudio
+ ONLYOFFICE_APISYSTEM_DIR=/var/www/onlyoffice/ApiSystem
+ ONLYOFFICE_MONOSERVER_PATH=/etc/init.d/monoserve
+ ONLYOFFICE_HYPERFASTCGI_PATH=/etc/hyperfastcgi/onlyoffice
+ ONLYOFFICE_MONOSERVE_COUNT=1
+ ONLYOFFICE_MODE=SERVER
+ ONLYOFFICE_GOD_DIR=/etc/god/conf.d
+ ONLYOFFICE_CRON_DIR=/etc/cron.d
+ ONLYOFFICE_CRON_PATH=/etc/cron.d/onlyoffice
++ ip -o -f inet addr show
++ awk '/scope global/ {print $4}'
++ head -1
+ DOCKER_ONLYOFFICE_SUBNET=172.17.0.2/16
++ ip addr show eth0
++ awk '/inet / {gsub(/\/.*/,"",$2); print $2}'
++ head -1
+ DOCKER_CONTAINER_IP=172.17.0.2
+ DOCKER_CONTAINER_NAME=onlyoffice-community-server
+ DOCKER_ENABLED=true
+++ dirname /app/onlyoffice/run-community-server.sh
++ cd /app/onlyoffice
++ pwd
+ DIR=/app/onlyoffice
+ NGINX_CONF_DIR=/etc/nginx/sites-enabled
++ grep processor /proc/cpuinfo
++ wc -l
+ NGINX_WORKER_PROCESSES=2
++ ulimit -n
+ NGINX_WORKER_CONNECTIONS=524288
+ SERVICE_SSO_AUTH_HOST_ADDR=
++ sudo sed -n '/"core.machinekey"/s!.*value\s*=\s*"\([^"]*\)".*!\1!p' /var/www/onlyoffice/WebStudio/web.appsettings.config
+ DEFAULT_ONLYOFFICE_CORE_MACHINEKEY='Vskoproizvolny Salt par Chivreski'
+ ONLYOFFICE_CORE_MACHINEKEY='Vskoproizvolny Salt par Chivreski'
+ '[' '!' -d /var/www/onlyoffice/Data/.private ']'
+ mkdir -p /var/www/onlyoffice/Data/.private
+ echo 'Vskoproizvolny Salt par Chivreski'
+ chmod -R 444 /var/www/onlyoffice/Data/.private
+ cat /proc/1/cgroup
+ grep -qE 'docker|lxc'
+ DOCKER_ENABLED=true
+ '[' '!' -d /etc/nginx/sites-enabled ']'
+ '[' '!' -d /var/www/onlyoffice/DocumentServerData ']'
+ NGINX_ROOT_DIR=/etc/nginx
+ VALID_IP_ADDRESS_REGEX='^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
+ LOG_DEBUG=DEBUG
+ LOG_DIR=/var/log/onlyoffice/
+ ONLYOFFICE_HTTPS=false
+ SSL_CERTIFICATES_DIR=/var/www/onlyoffice/Data/certs
+ SSL_CERTIFICATE_PATH=/var/www/onlyoffice/Data/certs/onlyoffice.crt
+ SSL_KEY_PATH=/var/www/onlyoffice/Data/certs/onlyoffice.key
+ SSL_CERTIFICATE_PATH_PFX=/var/www/onlyoffice/Data/certs/onlyoffice.pfx
+ SSL_CERTIFICATE_PATH_PFX_PWD=onlyoffice
+ SSL_DHPARAM_PATH=/var/www/onlyoffice/Data/certs/dhparam.pem
+ SSL_VERIFY_CLIENT=off
+ SSL_OCSP_CERTIFICATE_PATH=/var/www/onlyoffice/Data/certs/stapling.trusted.crt
+ CA_CERTIFICATES_PATH=/var/www/onlyoffice/Data/certs/ca.crt
+ ONLYOFFICE_HTTPS_HSTS_ENABLED=true
+ ONLYOFFICE_HTTPS_HSTS_MAXAGE=63072000
+ SYSCONF_TEMPLATES_DIR=/app/onlyoffice/config
+ mkdir -p /app/onlyoffice/config/nginx
+ SYSCONF_TOOLS_DIR=/app/onlyoffice/assets/tools
+ ONLYOFFICE_SERVICES_INTERNAL_HOST=
+ ONLYOFFICE_SERVICES_EXTERNAL=false
+ DOCUMENT_SERVER_ENABLED=false
+ DOCUMENT_SERVER_JWT_ENABLED=false
+ DOCUMENT_SERVER_JWT_SECRET=
+ DOCUMENT_SERVER_JWT_HEADER=
+ DOCUMENT_SERVER_HOST=
+ DOCUMENT_SERVER_HOST_PROXY=
+ DOCUMENT_SERVER_PROTOCOL=http
+ DOCUMENT_SERVER_API_URL=
+ DOCUMENT_SERVER_HOST_IP=
+ CONTROL_PANEL_ENABLED=false
+ MAIL_SERVER_ENABLED=false
+ MYSQL_SERVER_ROOT_PASSWORD=
+ MYSQL_SERVER_HOST=localhost
+ MYSQL_SERVER_PORT=3306
+ MYSQL_SERVER_DB_NAME=onlyoffice
+ MYSQL_SERVER_USER=root
+ MYSQL_SERVER_PASS=
+ MYSQL_SERVER_EXTERNAL=false
+ mkdir -p /var/www/onlyoffice/Data/certs/.well-known/acme-challenge
+ check_partnerdata
+ PARTNER_DATA_FILE=/var/www/onlyoffice/Data/json-data.txt
+ '[' -f /var/www/onlyoffice/Data/json-data.txt ']'
+ re='^[0-9]+$'
+ [[ 1 =~ ^[0-9]+$ ]]
+ cp /etc/nginx/includes/onlyoffice-communityserver-nginx.conf.template /etc/nginx/nginx.conf
+ sed 's/^worker_processes.*/worker_processes 2;/' -i /etc/nginx/nginx.conf
+ sed 's/worker_connections.*/worker_connections 524288;/' -i /etc/nginx/nginx.conf
+ cp /etc/nginx/includes/onlyoffice-communityserver-common-init.conf.template /etc/nginx/sites-enabled/onlyoffice
+ rm -f /etc/nginx/conf.d/default.conf
+ rsyslogd
+ service nginx restart
start-stop-daemon: warning: failed to kill 25814: No such process
+ '[' ']'
+ '[' ']'
+ '[' ']'
+ '[' false == true ']'
+ '[' localhost '!=' localhost ']'
+ '[' ']'
+ '[' ']'
+ MAIL_SERVER_API_PORT=8081
+ MAIL_SERVER_API_HOST=
+ MAIL_SERVER_DB_HOST=
+ MAIL_SERVER_DB_PORT=3306
+ MAIL_SERVER_DB_NAME=onlyoffice_mailserver
+ MAIL_SERVER_DB_USER=mail_admin
+ MAIL_SERVER_DB_PASS=Isadmin123
+ '[' ']'
+ '[' ']'
+ REDIS_SERVER_HOST=
+ REDIS_SERVER_CACHEPORT=6379
+ REDIS_SERVER_PASSWORD=
+ REDIS_SERVER_SSL=false
+ REDIS_SERVER_DATABASE=0
+ REDIS_SERVER_CONNECT_TIMEOUT=5000
+ REDIS_SERVER_EXTERNAL=false
+ '[' ']'
+ '[' false == false ']'
+ chown -R mysql:mysql /var/lib/mysql/
+ chmod -R 755 /var/lib/mysql/
+ '[' '!' -f /var/lib/mysql/ibdata1 ']'
+ '[' DEBUG ']'
+ log_debug 'Fix docker bug volume mapping for mysql'
+ echo 'onlyoffice: [Debug] Fix docker bug volume mapping for mysql'
+ myisamchk -q -r /var/lib/mysql/mysql/proc
+ service mysql start
+ '[' '!' -f /var/lib/mysql/mysql_upgrade_info ']'
+ '[' -n '' ']'
++ tr -d '[[:space:]]'
++ sed 's/password\s*=\s*//'
++ head -1
++ grep password /etc/mysql/debian.cnf
+ DEBIAN_SYS_MAINT_PASS=ZzCjYV5ULxTIyMrj
+ mysql_scalar_exec 'GRANT ALL PRIVILEGES ON *.* TO '\''debian-sys-maint'\''@'\''localhost'\'' IDENTIFIED BY '\''ZzCjYV5ULxTIyMrj'\'''
+ local queryResult=
+ '[' '' == opt_ignore_db_name ']'
++ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice -e 'GRANT ALL PRIVILEGES ON *.* TO '\''debian-sys-maint'\''@'\''localhost'\'' IDENTIFIED BY '\''ZzCjYV5ULxTIyMrj'\'''
+ queryResult=
+ echo
+ mysql_check_connection
+ '[' DEBUG ']'
+ log_debug 'Mysql check connection for localhost'
+ echo 'onlyoffice: [Debug] Mysql check connection for localhost'
+ mysqladmin ping -h localhost -P 3306 -u root --password= --silent
++ mysql_scalar_exec 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
++ local queryResult=
++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
+++ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -e 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
++ queryResult=onlyoffice
++ echo onlyoffice
+ DB_IS_EXIST=onlyoffice
++ mysql_list_exec 'SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
++ local queryResult=
++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
+++ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -e 'SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
++ queryResult=utf8
++ read -ra vars
++ for i in '"${vars[0][@]}"'
++ echo utf8
+ DB_CHARACTER_SET_NAME=utf8
++ mysql_list_exec 'SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
++ local queryResult=
++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
+++ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -e 'SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
++ queryResult=utf8_general_ci
++ read -ra vars
++ for i in '"${vars[0][@]}"'
++ echo utf8_general_ci
+ DB_COLLATION_NAME=utf8_general_ci
++ mysql_scalar_exec 'SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='\''onlyoffice'\'''
++ local queryResult=
++ '[' '' == opt_ignore_db_name ']'
+++ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice -e 'SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='\''onlyoffice'\'''
++ queryResult=192
++ echo 192
+ DB_TABLES_COUNT=192
+ '[' -z onlyoffice ']'
+ '[' utf8 '!=' utf8 ']'
+ '[' 192 -eq 0 ']'
+ change_connections default /var/www/onlyoffice/WebStudio/web.connections.config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/WebStudio/web.connections.config
+ change_connections teamlabsite /var/www/onlyoffice/WebStudio/web.connections.config
+ sed '/teamlabsite/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/WebStudio/web.connections.config
+ change_connections default /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config
+ change_connections default /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config
+ change_connections default /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.EmlDownloader.exe.config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.EmlDownloader.exe.config
+ change_connections default /var/www/onlyoffice/Services/MailWatchdog/ASC.Mail.Watchdog.Service.exe.config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/Services/MailWatchdog/ASC.Mail.Watchdog.Service.exe.config
+ change_connections default /var/www/onlyoffice/ApiSystem/Web.config
+ sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=localhost;Port=3306;Database=onlyoffice;User ID=root;Password=;Pooling=true;Character Set=utf8;AutoEnlist=false\"/' -i /var/www/onlyoffice/ApiSystem/Web.config
+ sed 's!\(sql_host\s*=\s*\)\S*!\1localhost!' -i /var/www/onlyoffice/Services/TeamLabSvc/sphinx-min.conf.in
+ sed 's!\(sql_pass\s*=\s*\)\S*!\1!' -i /var/www/onlyoffice/Services/TeamLabSvc/sphinx-min.conf.in
+ sed 's!\(sql_user\s*=\s*\)\S*!\1root!' -i /var/www/onlyoffice/Services/TeamLabSvc/sphinx-min.conf.in
+ sed 's!\(sql_db\s*=\s*\)\S*!\1onlyoffice!' -i /var/www/onlyoffice/Services/TeamLabSvc/sphinx-min.conf.in
+ sed 's!\(sql_port\s*=\s*\)\S*!\13306!' -i /var/www/onlyoffice/Services/TeamLabSvc/sphinx-min.conf.in
++ ls /var/www/onlyoffice/Sql/onlyoffice.upgrade80.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade81.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade85.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade86.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade87.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade88.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade892.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade89.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade90.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade91.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade952.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade95.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade96.sql /var/www/onlyoffice/Sql/onlyoffice.upgrade.resources.sql
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade80.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade81.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade85.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade86.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade87.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade88.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade892.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade89.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade90.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade91.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade952.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade95.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade96.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ for i in '$(ls ${ONLYOFFICE_SQL_DIR}/onlyoffice.upgrade*)'
+ mysql_batch_exec /var/www/onlyoffice/Sql/onlyoffice.upgrade.resources.sql
+ mysql --silent --skip-column-names -h localhost -P 3306 -u root --password= -D onlyoffice
+ '[' -f /var/www/onlyoffice/Data/certs/onlyoffice.crt -a -f /var/www/onlyoffice/Data/certs/onlyoffice.key ']'
+ cp /etc/nginx/includes/onlyoffice-communityserver-common.conf.template /app/onlyoffice/config/nginx/prepare-onlyoffice
+ sed -i 1d /etc/logrotate.d/nginx
+ sed '1 i\/var/log/nginx/*.log /var/log/onlyoffice/nginx.*.log {' -i /etc/logrotate.d/nginx
+ '[' 172.17.0.2/16 ']'
+ sed 's,{{DOCKER_ONLYOFFICE_SUBNET}},172.17.0.2/16,' -i /app/onlyoffice/config/nginx/prepare-onlyoffice
+ '[' ']'
+ echo Start=No
+ grep -q 'name="textindex"' /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config
+ sed -i 's/.*<add\s*name="default"\s*connectionString=.*/&\n<add name="textindex" connectionString="Server=localhost;Port=9306;Pooling=True;Character Set=utf8;AutoEnlist=false" providerName="MySql.Data.MySqlClient"\/>/' /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config
+ '[' false == true ']'
+ '[' false == true ']'
+ '[' false == true ']'
+ '[' SERVER == SERVER ']'
++ seq 1 1
+ for serverID in '$(seq 1 ${ONLYOFFICE_MONOSERVE_COUNT})'
+ '[' 1 == 1 ']'
+ sed '/web.warmup.count/s/value=\"\S*\"/value=\"1\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
+ sed '/web.warmup.domain/s/value=\"\S*\"/value=\"localhost\/warmup\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
+ sed '/core.machinekey/s!value=".*"!value="Vskoproizvolny Salt par Chivreski"!g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
+ sed '/core.machinekey/s!value=".*"!value="Vskoproizvolny Salt par Chivreski"!g' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config
+ sed '/core\.machinekey/s!"core\.machinekey".*!"core\.machinekey":"Vskoproizvolny Salt par Chivreski",!' -i /var/www/onlyoffice/Services/ASC.Socket.IO/config/config.json
+ sed '/core.machinekey/s!value=".*"!value="Vskoproizvolny Salt par Chivreski"!g' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.EmlDownloader.exe.config
+ sed '/core.machinekey/s!value=".*"!value="Vskoproizvolny Salt par Chivreski"!g' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config
+ continue
+ sed 's/{{ONLYOFFICE_NIGNX_KEEPLIVE}}/32/g' -i /app/onlyoffice/config/nginx/prepare-onlyoffice
+ bash -c 'echo "onlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service" | (EDITOR="tee -a" visudo)'
+ '[' false == true ']'
+ service redis-server start
redis-server: unrecognized service
+ '[' false == true ']'
+ '[' SERVER == SERVICES ']'
+ '[' DEBUG ']'
+ echo 'fix docker bug volume mapping for onlyoffice'
+ chown -R onlyoffice:onlyoffice /var/log/onlyoffice
+ chown -R onlyoffice:onlyoffice /var/www/onlyoffice/DocumentServerData
++ awk '{ print $3 }'
++ ls -alhd /var/www/onlyoffice/Data
+ '[' onlyoffice '!=' onlyoffice ']'
++ seq 1 1
+ for serverID in '$(seq 1 ${ONLYOFFICE_MONOSERVE_COUNT})'
+ index=1
+ '[' 1 == 1 ']'
+ index=
+ service monoserve restart
+ service monoserveApiSystem restart
+ '[' false == true ']'
+ service onlyofficeSocketIO restart
+ service onlyofficeFeed restart
+ service onlyofficeIndex restart
+ service onlyofficeJabber restart
+ service onlyofficeMailAggregator restart
+ service onlyofficeMailWatchdog restart
+ service onlyofficeNotify restart
+ service onlyofficeBackup restart
+ service onlyofficeAutoreply stop
+ service onlyofficeHealthCheck stop
onlyofficeHealthCheck: unrecognized service
+ service god restart
+ '[' SERVER == SERVER ']'
+ mv /app/onlyoffice/config/nginx/prepare-onlyoffice /etc/nginx/sites-enabled/onlyoffice
+ service nginx reload
+ log_debug 'reload nginx config'
+ echo 'onlyoffice: [Debug] reload nginx config'
+ log_debug FINISH
+ echo 'onlyoffice: [Debug] FINISH'
++ grep -v grep
++ awk '{print $2}'
++ grep cron
++ ps auxf
+ PID=
+ '[' -n '' ']'
+ cron
+ '[' true == true ']'
+ exec tail -f /dev/null

Best regards
Laurent
Attachments
Capture d'écran 2018-05-20 00.01.45.png
Capture d'écran 2018-05-20 00.01.45.png (180.12 KiB) Viewed 11 times
crifalo
 
Posts: 2
Joined: Fri May 11, 2018 3:03 pm

Re: Plesk / docker / onlyoffice

Postby Maxim » Mon May 21, 2018 6:34 am

Hello crifalo!
1. This is docker log you have attached but you should to take a look at /app/onlyoffice/CommunityServer/logs
2. You need to check connection between containers (Community Server and Document Server), use following commands
docker inspect [container ID or Name] - Return low-level information on Docker objects, to get IP address of the container
docker ps - to show containers ID
docker exec -it [container ID or Name] bash - to run a command in a running container
wget [container's ip address] (smth. like wget 172.18.0.2) - to make a request to another container to check access from a container to another container
You need to check the ability to access from the Community Server container to the Document Server container using wget command.
You need to check from both containers (from Community Server -> Document Server and from Document Server -> Community Server)
if you get error please attach screenshot of the issue.
Maxim
 
Posts: 1547
Joined: Tue Oct 11, 2016 2:34 pm


Return to Installation issues

Who is online

Users browsing this forum: Google [Bot] and 0 guests