ONLYOFFICE / Docker-CommunityServer

Collaborative system for managing documents, projects, customer relations and emails in one place
MIT License
489 stars 180 forks source link

Unable to create new email domain - internal server error. Compose method. #165

Closed aaronouthier closed 1 year ago

aaronouthier commented 2 years ago

So on step 2 of the domain wizard, it says to create an MX record pointing level 0 to “.”, which I know is incorrect. It should show the domain name.

In step 4, when I click finish, I am told “internal server error”.

I investigated the issue, and noticed none of the containers seem to have DNS resolution. /etc/resolv.conf in the mail container has DNS pointing to loopback, however, there is no process listening there. I suspect the same in the other containers. I highly suspect this is related to the server error mentioned above.

Carazyda commented 2 years ago

Hello @aaronouthier Please try to restart mail server container sudo docker restart onlyoffice-mail-server, and try again.

aaronouthier commented 2 years ago

Ok, so restarting mail server did cause dns to start working.

However, I still am having the same symptoms with creating a new domain.

Looking at the logs, it appears there is an authentication issue between mail server and mysql server.

From the mail server logs: ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client appears a few times.

Another line reads: Waiting for external MySql response.

I am going to see if I can update mysql client safely.

aaronouthier commented 2 years ago

I am not able to do anything with the mail server as far as updates, as it is based on CentOS 6, which is now obsolete.

Have the devs been able to confirm this as a bug or reproduce the issue on your end?

If not, it could be user error. If so, then what are my options to troubleshoot?

Carazyda commented 2 years ago

Please check the table mail_server_server in the database, column mx_record, if your domain is there. If not, try adding.

aaronouthier commented 2 years ago

Unfortunately, I know almost nothing about using databases, and have not the skills to do as requested.

aaronouthier commented 2 years ago

After 2 hours, I was able to figure out how to show the columns in that database table.

Field Type Null Key Default Extra id int NO PRI NULL auto_increment mx_record varchar(128) NO connection_string text NO NULL server_type int NO MUL NULL smtp_settings_id int NO NULL imap_settings_id int NO NULL

Carazyda commented 2 years ago

It looks like something went wrong during the installation process and your mail server is missing a connection string. Try reconnecting the mail server in the portal settings(/Management.aspx?type=20) by specifying its IP address (you can check it through the docker inspect onlyoffice-mail-server).

aaronouthier commented 2 years ago

So, I have now started over from scratch, by reinstalling the OS on the entire machine. It has been about 8 hours now, but OnlyOffice is still setting up “The portal start up process might take some time, please wait”.

I am noticing in the mail server logs docker-compose logs onlyoffice-mail-server that I am getting authentication errors connecting to the mysql server, as I noted previously.

Attaching to onlyoffice-mail-server onlyoffice-mail-server | [ INFO ] Checking configuration file: /usr/src/iRedMail/config ... [FOUND] onlyoffice-mail-server | [ INFO ] Import installation process status from file: /usr/src/iRedMail/runtime/install.status. onlyoffice-mail-server | Waiting for external MySql response onlyoffice-mail-server | onlyoffice-mail-server | onlyoffice-mail-server | onlyoffice-mail-server | onlyoffice-mail-server | **** onlyoffice-mail-server | * Start iRedMail Configurations onlyoffice-mail-server | **** onlyoffice-mail-server | [ INFO ] Create required system accounts: vmail, iredapd. onlyoffice-mail-server | [ INFO ] Configure Apache web server and PHP. onlyoffice-mail-server | [ INFO ] Configure PHP. onlyoffice-mail-server | [ INFO ] Configure MySQL database server. onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [ INFO ] Configure Postfix (Message Transfer Agent). onlyoffice-mail-server | [ INFO ] Configure Cluebringer (postfix policy server). onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [ INFO ] Configure Dovecot (pop3/imap/managesieve server). onlyoffice-mail-server | [ INFO ] Configure ClamAV (anti-virus toolkit). onlyoffice-mail-server | [ INFO ] Configure Amavisd-new (interface between MTA and content checkers). onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [ INFO ] Configure SpamAssassin (content-based spam filter). onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [ INFO ] Configure OpenDkim. onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [ INFO ] Configure Fail2ban (authentication failure monitor). onlyoffice-mail-server | [ INFO ] Configure Server API. onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | rake aborted! onlyoffice-mail-server | Mysql2::Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/mysql2-0.3.21/lib/mysql2/client.rb:70:in connect' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/mysql2-0.3.21/lib/mysql2/client.rb:70:ininitialize' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in new' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/mysql2_adapter.rb:16:inmysql2_connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in new_connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:incheckout_new_connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in block (2 levels) in checkout' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:inloop' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in block in checkout' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:incheckout' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in block in connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:inconnection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in retrieve_connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:inretrieve_connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in connection' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:229:incolumns' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/schema_plus-1.5.3/lib/schema_plus/active_record/base.rb:23:in columns_with_schema_plus' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/model_schema.rb:244:incolumn_defaults' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/base.rb:482:in initialize' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:44:innew' onlyoffice-mail-server | /usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:44:in create' onlyoffice-mail-server | /var/www/html/mailserver_api-2.0.1/Rakefile:8:inblock (2 levels) in <top (required)>' onlyoffice-mail-server | Tasks: TOP => api_key:generate onlyoffice-mail-server | (See full trace by running task with --trace) onlyoffice-mail-server | [ INFO ] Configure SpamTrainer. onlyoffice-mail-server | [ INFO ] Configure Awstats (logfile analyzer for mail and web server). onlyoffice-mail-server | onlyoffice-mail-server | *** onlyoffice-mail-server | * iRedMail-0.9.2 installation and configuration complete. onlyoffice-mail-server | ***** onlyoffice-mail-server | onlyoffice-mail-server | [ INFO ] Disable SELinux in /etc/selinux/config. onlyoffice-mail-server | [ INFO ] Removing package(s): sendmail onlyoffice-mail-server | Loaded plugins: fastestmirror, ovl onlyoffice-mail-server | Setting up Remove Process onlyoffice-mail-server | Resolving Dependencies onlyoffice-mail-server | --> Running transaction check onlyoffice-mail-server | ---> Package sendmail.x86_64 0:8.14.4-9.el6_8.1 will be erased onlyoffice-mail-server | --> Processing Dependency: sendmail = 8.14.4-9.el6_8.1 for package: sendmail-devel-8.14.4-9.el6_8.1.x86_64 onlyoffice-mail-server | --> Running transaction check onlyoffice-mail-server | ---> Package sendmail-devel.x86_64 0:8.14.4-9.el6_8.1 will be erased onlyoffice-mail-server | --> Finished Dependency Resolution onlyoffice-mail-server | onlyoffice-mail-server | Dependencies Resolved onlyoffice-mail-server | onlyoffice-mail-server | ================================================================================ onlyoffice-mail-server | Package Arch Version Repository Size onlyoffice-mail-server | ================================================================================ onlyoffice-mail-server | Removing: onlyoffice-mail-server | sendmail x86_64 8.14.4-9.el6_8.1 @base 1.5 M onlyoffice-mail-server | Removing for dependencies: onlyoffice-mail-server | sendmail-devel x86_64 8.14.4-9.el6_8.1 @base 254 k onlyoffice-mail-server | onlyoffice-mail-server | Transaction Summary onlyoffice-mail-server | ================================================================================ onlyoffice-mail-server | Remove 2 Package(s) onlyoffice-mail-server | onlyoffice-mail-server | Installed size: 1.8 M onlyoffice-mail-server | Downloading Packages: onlyoffice-mail-server | Running rpm_check_debug onlyoffice-mail-server | Running Transaction Test onlyoffice-mail-server | Transaction Test Succeeded onlyoffice-mail-server | Running Transaction onlyoffice-mail-server | Warning: RPMDB altered outside of yum. Erasing : sendmail-devel-8.14.4-9.el6_8.1.x86_64 1/2 Erasing : sendmail-8.14.4-9.el6_8.1.x86_64 2/2 onlyoffice-mail-server | warning: erase unlink of /var/log/mail/statistics failed: No such file or directory onlyoffice-mail-server | warning: erase unlink of /var/log/mail failed: No such file or directory Verifying : sendmail-devel-8.14.4-9.el6_8.1.x86_64 1/2 Verifying : sendmail-8.14.4-9.el6_8.1.x86_64 2/2 onlyoffice-mail-server | onlyoffice-mail-server | Removed: onlyoffice-mail-server | sendmail.x86_64 0:8.14.4-9.el6_8.1
onlyoffice-mail-server | onlyoffice-mail-server | Dependency Removed: onlyoffice-mail-server | sendmail-devel.x86_64 0:8.14.4-9.el6_8.1
onlyoffice-mail-server | onlyoffice-mail-server | Complete! onlyoffice-mail-server | [ INFO ] Copy firewall sample rules: /etc/sysconfig/iptables. onlyoffice-mail-server | [ INFO ] Restarting firewall ... onlyoffice-mail-server | [ INFO ] Copy MySQL sample file: /etc/my.cnf. onlyoffice-mail-server | [ INFO ] Enable SSL support for MySQL server. onlyoffice-mail-server | **** onlyoffice-mail-server | First mail account credential: onlyoffice-mail-server | onlyoffice-mail-server | * o Username: postmaster@
redacted onlyoffice-mail-server | o Password: NzhhNTg4MWY1 onlyoffice-mail-server | onlyoffice-mail-server | * onlyoffice-mail-server | **** onlyoffice-mail-server | Congratulations, mail server setup completed successfully. Please onlyoffice-mail-server | read below file for more information: onlyoffice-mail-server | onlyoffice-mail-server | - /usr/src/iRedMail/iRedMail.tips onlyoffice-mail-server | onlyoffice-mail-server | And it's sent to your mail account postmaster@redacted onlyoffice-mail-server | * onlyoffice-mail-server | ***** WARNING ** onlyoffice-mail-server | Waiting for external MySql response onlyoffice-mail-server | [ INFO ] Configure MySQL database server. onlyoffice-mail-server | ERROR 1251 (08004): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | Starting crond: [ OK ] onlyoffice-mail-server | Starting Dovecot Imap: [ OK ] onlyoffice-mail-server | Starting system logger: [ OK ] onlyoffice-mail-server | Starting amavisd: [ OK ] onlyoffice-mail-server | onlyoffice-mail-server | Starting postfix: [ OK ] onlyoffice-mail-server | Starting cbpolicyd: [ OK ] onlyoffice-mail-server | Starting Clam AntiVirus Daemon: LibClamAV Warning: ** onlyoffice-mail-server | LibClamAV Warning: * The virus database is older than 7 days! onlyoffice-mail-server | LibClamAV Warning: Please update it as soon as possible. * onlyoffice-mail-server | LibClamAV Warning: ** onlyoffice-mail-server | [ OK ] onlyoffice-mail-server | Starting clamd.amavisd: LibClamAV Warning: ** onlyoffice-mail-server | LibClamAV Warning: * The virus database is older than 7 days! onlyoffice-mail-server | LibClamAV Warning: Please update it as soon as possible. * onlyoffice-mail-server | LibClamAV Warning: **** onlyoffice-mail-server | [ OK ] onlyoffice-mail-server | Starting httpd: [ OK ] onlyoffice-mail-server | Starting OpenDKIM Milter: opendkim: /etc/opendkim.conf: dsn:mysql://onlyoffice_mailserver_user:onlyoffice_mailserver_user_pass@onlyoffice-mysql-server/onlyoffice_mailserver/table=dkim?keycol=domain_name?datacol=id: dkimf_db_open(): Client does not support authentication protocol requested by server; consider upgrading MySQL client onlyoffice-mail-server | [FAILED] onlyoffice-mail-server | Starting spamd: [ OK ] onlyoffice-mail-server | Starting fail2ban: [ OK ] onlyoffice-mail-server | Starting server

Carazyda commented 2 years ago

Please check the status of onlyoffice-mysql-server container. If this is "restarting" - you need to redownload this repo and run docker-compose install one more time.

aaronouthier commented 2 years ago

All containers are “up”, none are restarting.

aaronouthier commented 2 years ago

It seems the mail server is not able to authenticate with mysql server. Problem seems to me to be related to the move from mysql-5.7 to mysql-8, but I’m the novice here. I’m likely way off.

Carazyda commented 2 years ago

Ok, then please look at docker logs onlyoffice-community-server and docker exec -it onlyoffice-community-server systemctl status monoserve.

aaronouthier commented 2 years ago

docker exec -it onlyoffice-community-server systemctl status monoserve System has not been booted with systemd as init system (PID 1). Can't operate. mastermind@office:/srv$ docker exec -it onlyoffice-community-server service monoserve status monoserve: unrecognized service

aaronouthier commented 2 years ago

The only errors I see in community server are:

ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist MAIL_SERVER_HOSTNAME=

aaronouthier commented 2 years ago

Should I post the entire communityserver log?

Carazyda commented 2 years ago

Let's start over:

  1. What host OS do you use?
  2. Did you download the repository again?
  3. What changes do you make to the file docker-compose.yml?
  4. Show the full log of docker logs onlyoffice-community-server.
aaronouthier commented 2 years ago
  1. Ubuntu Server 22.04 “Jammy” - no xorg, just cli.
  2. I wiped the drive and reinstalled with the above OS yesterday.
  3. Removed the environment variable starting with ‘$’ and replaced with the FQDN of my mail server.
  4. Coming at you momentarily.
aaronouthier commented 2 years ago
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 90 -lt 120 ']'
onlyoffice-community-server    | + interval=100
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 100 -lt 120 ']'
onlyoffice-community-server    | + interval=110
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 110 -lt 120 ']'
onlyoffice-community-server    | + interval=120
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 120 -lt 120 ']'
onlyoffice-community-server    | + sed -r '/web\.hide-settings/s/,AdministrationPage//' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | ++ mysql_scalar_exec 'select id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'select id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=208
onlyoffice-community-server    | ++ echo 208
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ID=208
onlyoffice-community-server    | + echo 'MYSQL mail server id '\''208'\'''
onlyoffice-community-server    | MYSQL mail server id '208'
onlyoffice-community-server    | + SENDER_IP=
onlyoffice-community-server    | + check_ip_is_internal 172.19.0.0/16 172.19.0.4
onlyoffice-community-server    | + local 'IPRE=\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)'
onlyoffice-community-server    | + IP=($(echo "$1" | sed -ne 's:^'"$IPRE"'/.*$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/.*$:\1 \2 \3 \4:p'
onlyoffice-community-server    | + local IP
onlyoffice-community-server    | + MASK=($(echo "$1" | sed -ne 's:^[^/]*/'"$IPRE"'$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^[^/]*/\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)$:\1 \2 \3 \4:p'
onlyoffice-community-server    | + local MASK
onlyoffice-community-server    | + '[' 0 -ne 4 ']'
onlyoffice-community-server    | + BITCNT=($(echo "$1" | sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'
onlyoffice-community-server    | + local BITCNT
onlyoffice-community-server    | + BITCNT=4294901760
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=255
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=255
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK=()
onlyoffice-community-server    | + local NETWORK
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=172
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=19
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + INIP=($(echo "$2" | sed -ne 's:^'"$IPRE"'$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ echo 172.19.0.4
onlyoffice-community-server    | ++ sed -ne 's:^\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)$:\1 \2 \3 \4:p'
onlyoffice-community-server    | + local INIP
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 172 -ne 172 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 19 -ne 19 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 0 -ne 0 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 0 -ne 0 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + return 0
onlyoffice-community-server    | ++ hostname -i
onlyoffice-community-server    | + SENDER_IP=172.19.0.6
onlyoffice-community-server    | + [[ -n '' ]]
onlyoffice-community-server    | + mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'DELETE FROM greylisting_whitelist WHERE Comment='\''onlyoffice-community-server'\'';'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'REPLACE INTO greylisting_whitelist (Source, Comment, Disabled) VALUES ("SenderIP:172.19.0.6", '\''onlyoffice-community-server'\'', 0);'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + '[' -z 208 ']'
onlyoffice-community-server    | ++ mysql_scalar_exec 'select imap_settings_id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'select imap_settings_id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=999
onlyoffice-community-server    | ++ echo 999
onlyoffice-community-server    | + id1=999
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | ++ mysql_scalar_exec 'select smtp_settings_id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'select smtp_settings_id from mail_server_server where mx_record='\'''\'' limit 1'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=1000
onlyoffice-community-server    | ++ echo 1000
onlyoffice-community-server    | + id2=1000
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + mysql_scalar_exec
onlyoffice-community-server    | + local queryResult=
onlyoffice-community-server    | + '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e ''
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | + queryResult=
onlyoffice-community-server    | + echo
onlyoffice-community-server    | 
onlyoffice-community-server    | + interval=10
onlyoffice-community-server    | + '[' 10 -lt 120 ']'
onlyoffice-community-server    | + interval=20
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 20 -lt 120 ']'
onlyoffice-community-server    | + interval=30
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 30 -lt 120 ']'
onlyoffice-community-server    | + interval=40
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 40 -lt 120 ']'
onlyoffice-community-server    | + interval=50
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 50 -lt 120 ']'
onlyoffice-community-server    | + interval=60
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 60 -lt 120 ']'
onlyoffice-community-server    | + interval=70
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 70 -lt 120 ']'
onlyoffice-community-server    | + interval=80
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 80 -lt 120 ']'
onlyoffice-community-server    | + interval=90
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 90 -lt 120 ']'
onlyoffice-community-server    | + interval=100
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 100 -lt 120 ']'
onlyoffice-community-server    | + interval=110
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 110 -lt 120 ']'
onlyoffice-community-server    | + interval=120
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'select access_token from api_keys where id=1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.api_keys' doesn't exist
onlyoffice-community-server    | + MYSQL_MAIL_SERVER_ACCESS_TOKEN=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' 120 -lt 120 ']'
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + MAIL_SERVER_API_HOST_ADDRESS=172.19.0.4
onlyoffice-community-server    | + [[ onlyoffice-mysql-server == \o\n\l\y\o\f\f\i\c\e\-\m\a\i\l\-\s\e\r\v\e\r ]]
onlyoffice-community-server    | + mysql_scalar_exec 'DELETE FROM mail_server_server;'
onlyoffice-community-server    | + local queryResult=
onlyoffice-community-server    | + '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'DELETE FROM mail_server_server;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | + queryResult=
onlyoffice-community-server    | + echo
onlyoffice-community-server    | 
onlyoffice-community-server    | + mysql_scalar_exec 'INSERT INTO mail_server_server (mx_record, connection_string, server_type, smtp_settings_id, imap_settings_id)                        VALUES ('\'''\'', '\''{"DbConnection" : "Server=onlyoffice-mysql-server;Database=onlyoffice_mailserver;User ID=onlyoffice_mailserver_user;Password=onlyoffice_mailserver_user_pass;Pooling=True;Character Set=utf8;AutoEnlist=false;SSL Mode=None;Connection Timeout=30;Maximum Pool Size=300;", "Api":{"Protocol":"http", "Server":"172.19.0.4", "Port":"8081", "Version":"v1","Token":""}}'\'', 2, '\''1000'\'', '\''999'\'');'
onlyoffice-community-server    | + local queryResult=
onlyoffice-community-server    | + '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'INSERT INTO mail_server_server (mx_record, connection_string, server_type, smtp_settings_id, imap_settings_id)                        VALUES ('\'''\'', '\''{"DbConnection" : "Server=onlyoffice-mysql-server;Database=onlyoffice_mailserver;User ID=onlyoffice_mailserver_user;Password=onlyoffice_mailserver_user_pass;Pooling=True;Character Set=utf8;AutoEnlist=false;SSL Mode=None;Connection Timeout=30;Maximum Pool Size=300;", "Api":{"Protocol":"http", "Server":"172.19.0.4", "Port":"8081", "Version":"v1","Token":""}}'\'', 2, '\''1000'\'', '\''999'\'');'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | + queryResult=
onlyoffice-community-server    | + echo
onlyoffice-community-server    | 
onlyoffice-community-server    | + '[' true == true ']'
onlyoffice-community-server    | + cp /etc/nginx/includes/onlyoffice-communityserver-proxy-to-controlpanel.conf.template /etc/nginx/includes/onlyoffice-communityserver-proxy-to-controlpanel.conf
onlyoffice-community-server    | + sed 's,{{CONTROL_PANEL_HOST_ADDR}},onlyoffice-control-panel,' -i /etc/nginx/includes/onlyoffice-communityserver-proxy-to-controlpanel.conf
onlyoffice-community-server    | + sed 's,{{SERVICE_SSO_AUTH_HOST_ADDR}},onlyoffice-control-panel,' -i /etc/nginx/includes/onlyoffice-communityserver-proxy-to-controlpanel.conf
onlyoffice-community-server    | + sed '/web\.controlpanel\.url/s/\(value\s*=\s*\"\)[^\"]*\"/\1\/controlpanel\/\"/' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/web\.controlpanel\.url/s/\(value\s*=\s*\"\)[^\"]*\"/\1\/controlpanel\/\"/' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + '[' SERVER == SERVER ']'
onlyoffice-community-server    | ++ seq 1 1
onlyoffice-community-server    | + for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})
onlyoffice-community-server    | + '[' 1 == 1 ']'
onlyoffice-community-server    | + sed '/web.warmup.count/s/value=\"\S*\"/value=\"1\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/web.warmup.domain/s/value=\"\S*\"/value=\"localhost\/warmup\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/core.machinekey/s!value=".*"!value="core_secret"!g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/core.machinekey/s!value=".*"!value="core_secret"!g' -i /var/www/onlyoffice/ApiSystem/Web.config
onlyoffice-community-server    | + sed '/core.machinekey/s!value=".*"!value="core_secret"!g' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + sed '/core\.machinekey/s!"core\.machinekey".*!"core\.machinekey":"core_secret",!' -i /var/www/onlyoffice/Services/ASC.Socket.IO/config/config.json
onlyoffice-community-server    | + sed 's!machine_key\s*=.*!machine_key = core_secret!g' -i /var/www/onlyoffice/Services/TeamLabSvc/radicale.config
onlyoffice-community-server    | + sed 's!"core\.machinekey":.*,!"core\.machinekey":"core_secret",!g' -i /var/www/onlyoffice/Services/ASC.UrlShortener/config/config.json
onlyoffice-community-server    | + sed 's!"machinekey":.*!"machinekey":"core_secret",!' -i /etc/onlyoffice/communityserver/appsettings.production.json
onlyoffice-community-server    | + continue
onlyoffice-community-server    | + sed 's/{{APP_NIGNX_KEEPLIVE}}/32/g' -i /app/config/nginx/prepare-onlyoffice
onlyoffice-community-server    | + bash -c 'echo "onlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service" | (EDITOR="tee -a" visudo)'
onlyoffice-community-server    | onlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + systemctl enable redis-server.service
onlyoffice-community-server    | Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
onlyoffice-community-server    | Executing: /lib/systemd/systemd-sysv-install enable redis-server
onlyoffice-community-server    | + service redis-server start
onlyoffice-community-server    | Starting redis-server: redis-server.
onlyoffice-community-server    | + redis-cli config set save ''
onlyoffice-community-server    | OK
onlyoffice-community-server    | + redis-cli config rewrite
onlyoffice-community-server    | OK
onlyoffice-community-server    | + redis-cli flushall
onlyoffice-community-server    | OK
onlyoffice-community-server    | + service redis-server stop
onlyoffice-community-server    | Stopping redis-server: redis-server.
onlyoffice-community-server    | + '[' SERVER == SERVICES ']'
onlyoffice-community-server    | + systemctl enable monoserveApiSystem.service
onlyoffice-community-server    | ++ seq 1 1
onlyoffice-community-server    | + for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})
onlyoffice-community-server    | + index=1
onlyoffice-community-server    | + '[' 1 == 1 ']'
onlyoffice-community-server    | + index=
onlyoffice-community-server    | + systemctl enable monoserve.service
onlyoffice-community-server    | + chown -R onlyoffice:onlyoffice /var/log/onlyoffice
onlyoffice-community-server    | + chown -R onlyoffice:onlyoffice /var/www/onlyoffice/DocumentServerData
onlyoffice-community-server    | ++ ls -alhd /var/www/onlyoffice/Data
onlyoffice-community-server    | ++ awk '{ print $3 }'
onlyoffice-community-server    | + '[' onlyoffice '!=' onlyoffice ']'
onlyoffice-community-server    | + '[' '!' -d /var/www/onlyoffice/Data/Index/v7.16.3 ']'
onlyoffice-community-server    | + mkdir -p /var/log/onlyoffice//Index
onlyoffice-community-server    | + mkdir -p /var/www/onlyoffice/Data/Index/v7.16.3
onlyoffice-community-server    | ++ ls -alhd /var/www/onlyoffice/Data/Index/v7.16.3
onlyoffice-community-server    | ++ awk '{ print $3 }'
onlyoffice-community-server    | + '[' elasticsearch '!=' elasticsearch ']'
onlyoffice-community-server    | + chown -R elasticsearch:elasticsearch /var/log/onlyoffice//Index
onlyoffice-community-server    | + dpkg -l
onlyoffice-community-server    | + grep -q onlyoffice-xmppserver
onlyoffice-community-server    | + sed '/web\.talk/s/value=\"\S*\"/value=\"true\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/web\.chat/s/value=\"\S*\"/value=\"false\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + systemctl stop onlyofficeRadicale
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeTelegram
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeSocketIO
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeThumb
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeFeed
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeIndex
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeJabber
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailAggregator
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailWatchdog
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailCleaner
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailImap
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeNotify
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeBackup
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeStorageMigrate
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeStorageEncryption
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeUrlShortener
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeThumbnailBuilder
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeAutoCleanUp
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop god
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable god
onlyoffice-community-server    | + systemctl stop elasticsearch
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop redis-server
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop mysql
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop nginx
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop monoserveApiSystem.service
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable monoserveApiSystem.service
onlyoffice-community-server    | ++ seq 1 1
onlyoffice-community-server    | + for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})
onlyoffice-community-server    | + index=1
onlyoffice-community-server    | + '[' 1 == 1 ']'
onlyoffice-community-server    | + index=
onlyoffice-community-server    | + systemctl stop monoserve.service
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable monoserve.service
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + systemctl enable onlyofficeRadicale.service
onlyoffice-community-server    | + systemctl enable onlyofficeTelegram.service
onlyoffice-community-server    | + systemctl enable onlyofficeSocketIO.service
onlyoffice-community-server    | + systemctl enable onlyofficeThumb.service
onlyoffice-community-server    | + systemctl enable onlyofficeFeed.service
onlyoffice-community-server    | + systemctl enable onlyofficeIndex.service
onlyoffice-community-server    | + systemctl enable onlyofficeJabber.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailAggregator.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailWatchdog.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailCleaner.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailImap.service
onlyoffice-community-server    | + systemctl enable onlyofficeNotify.service
onlyoffice-community-server    | + systemctl enable onlyofficeBackup.service
onlyoffice-community-server    | + systemctl enable onlyofficeStorageMigrate.service
onlyoffice-community-server    | + systemctl enable onlyofficeStorageEncryption.service
onlyoffice-community-server    | + systemctl enable onlyofficeUrlShortener.service
onlyoffice-community-server    | + systemctl enable onlyofficeThumbnailBuilder.service
onlyoffice-community-server    | + systemctl enable onlyofficeAutoCleanUp.service
onlyoffice-community-server    | + '[' SERVER == SERVER ']'
onlyoffice-community-server    | + mv /app/config/nginx/prepare-onlyoffice /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + service nginx stop
onlyoffice-community-server    | + systemctl enable nginx.service
onlyoffice-community-server    | Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
onlyoffice-community-server    | Executing: /lib/systemd/systemd-sysv-install enable nginx
onlyoffice-community-server    | ++ ps auxf
onlyoffice-community-server    | ++ awk '{print $2}'
onlyoffice-community-server    | ++ grep -v grep
onlyoffice-community-server    | ++ grep cron
onlyoffice-community-server    | + PID=
onlyoffice-community-server    | + '[' onlyoffice-elasticsearch ']'
onlyoffice-community-server    | + service elasticsearch stop
onlyoffice-community-server    | elasticsearch: unrecognized service
onlyoffice-community-server    | + systemctl disable elasticsearch.service
onlyoffice-community-server    | Failed to disable unit, unit elasticsearch.service does not exist.
onlyoffice-community-server    | + rm -f /usr/lib/systemd/system/elasticsearch.service
onlyoffice-community-server    | + rm -f /etc/init.d/elasticsearch
onlyoffice-community-server    | + '[' -n '' ']'
onlyoffice-community-server    | + rm -dfr '/tmp/onlyoffice*'
onlyoffice-community-server    | + rm -dfr '/var/run/onlyoffice/*'
onlyoffice-community-server    | + rm -dfr '/var/cache/nginx/onlyoffice/*'
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + echo '##########################################################'
onlyoffice-community-server    | ##########################################################
onlyoffice-community-server    | + echo '#########  Start container configuration  ################'
onlyoffice-community-server    | #########  Start container configuration  ################
onlyoffice-community-server    | + echo '##########################################################'
onlyoffice-community-server    | ##########################################################
onlyoffice-community-server    | + SERVER_HOST=
onlyoffice-community-server    | + APP_DIR=/var/www/onlyoffice
onlyoffice-community-server    | + APP_DATA_DIR=/var/www/onlyoffice/Data
onlyoffice-community-server    | + APP_INDEX_DIR=/var/www/onlyoffice/Data/Index/v7.16.3
onlyoffice-community-server    | + APP_PRIVATE_DATA_DIR=/var/www/onlyoffice/Data/.private
onlyoffice-community-server    | + APP_SERVICES_DIR=/var/www/onlyoffice/Services
onlyoffice-community-server    | + APP_CONFIG_DIR=/etc/onlyoffice/communityserver
onlyoffice-community-server    | + APP_SQL_DIR=/var/www/onlyoffice/Sql
onlyoffice-community-server    | + APP_ROOT_DIR=/var/www/onlyoffice/WebStudio
onlyoffice-community-server    | + APP_APISYSTEM_DIR=/var/www/onlyoffice/ApiSystem
onlyoffice-community-server    | + APP_GOD_DIR=/etc/god/conf.d
onlyoffice-community-server    | + APP_MONOSERVER_PATH=/lib/systemd/system/monoserve.service
onlyoffice-community-server    | + APP_HYPERFASTCGI_PATH=/etc/hyperfastcgi/onlyoffice
onlyoffice-community-server    | + APP_MONOSERVE_COUNT=1
onlyoffice-community-server    | + APP_MODE=SERVER
onlyoffice-community-server    | + APP_CRON_DIR=/etc/cron.d
onlyoffice-community-server    | + APP_CRON_PATH=/etc/cron.d/onlyoffice
onlyoffice-community-server    | + LICENSE_FILE_PATH=/var/www/onlyoffice/DocumentServerData/license.lic
onlyoffice-community-server    | ++ ip -o -f inet addr show
onlyoffice-community-server    | ++ awk '/scope global/ {print $4}'
onlyoffice-community-server    | ++ head -1
onlyoffice-community-server    | + DOCKER_APP_SUBNET=172.19.0.6/16
onlyoffice-community-server    | ++ awk '/inet / {gsub(/\/.*/,"",$2); print $2}'
onlyoffice-community-server    | ++ head -1
onlyoffice-community-server    | ++ ip addr show eth0
onlyoffice-community-server    | + DOCKER_CONTAINER_IP=172.19.0.6
onlyoffice-community-server    | + DOCKER_CONTAINER_NAME=onlyoffice-community-server
onlyoffice-community-server    | + DOCKER_DOCUMENT_SERVER_CONTAINER_NAME=onlyoffice-document-server
onlyoffice-community-server    | + DOCKER_ENABLED=true
onlyoffice-community-server    | +++ dirname /app/run-community-server.sh
onlyoffice-community-server    | ++ cd /app
onlyoffice-community-server    | ++ pwd
onlyoffice-community-server    | + DIR=/app
onlyoffice-community-server    | + NGINX_CONF_DIR=/etc/nginx/sites-enabled
onlyoffice-community-server    | ++ cat /proc/cpuinfo
onlyoffice-community-server    | ++ wc -l
onlyoffice-community-server    | ++ awk '{print $1}'
onlyoffice-community-server    | ++ grep -i processor
onlyoffice-community-server    | ++ grep -i processor
onlyoffice-community-server    | + CPU_PROCESSOR_COUNT=2
onlyoffice-community-server    | ++ ulimit -n
onlyoffice-community-server    | + NGINX_WORKER_CONNECTIONS=1048576
onlyoffice-community-server    | + SERVICE_SSO_AUTH_HOST_ADDR=onlyoffice-control-panel
onlyoffice-community-server    | ++ sudo sed -n '/"core.machinekey"/s!.*value\s*=\s*"\([^"]*\)".*!\1!p' /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + DEFAULT_APP_CORE_MACHINEKEY=core_secret
onlyoffice-community-server    | + IS_UPDATE=false
onlyoffice-community-server    | + WORKSPACE_ENTERPRISE=false
onlyoffice-community-server    | + '[' '!' -e /var/www/onlyoffice/Data/.private/machinekey ']'
onlyoffice-community-server    | ++ head -n 1 /var/www/onlyoffice/Data/.private/machinekey
onlyoffice-community-server    | + APP_CORE_MACHINEKEY=core_secret
onlyoffice-community-server    | ++ sudo sed -n '/"version.release-date"/s!.*value\s*=\s*"\([^"]*\)".*!\1!p' /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + RELEASE_DATE=
onlyoffice-community-server    | ++ CreateAuthToken '' core_secret
onlyoffice-community-server    | ++ local pkey=
onlyoffice-community-server    | +++ echo -n core_secret
onlyoffice-community-server    | ++ local machinekey=core_secret
onlyoffice-community-server    | ++ local a=1
onlyoffice-community-server    | ++ local LIMIT=10
onlyoffice-community-server    | ++ '[' 1 -le 10 ']'
onlyoffice-community-server    | +++ date +%Y%m%d%H%M%S
onlyoffice-community-server    | ++ local now=20220914101925
onlyoffice-community-server    | +++ echo -n -e '20220914101925\n'
onlyoffice-community-server    | +++ openssl dgst -sha1 -binary -mac HMAC -macopt key:core_secret
onlyoffice-community-server    | ++ local $'authkey=NZ\3366\3037g\237V\332\360h\313\031\244DE\330\334\301'
onlyoffice-community-server    | +++ echo -n $'NZ\3366\3037g\237V\332\360h\313\031\244DE\330\334\301'
onlyoffice-community-server    | +++ base64
onlyoffice-community-server    | ++ authkey=TlreNsM3Z59W2vBoyxmkREXY3ME=
onlyoffice-community-server    | ++ local 'result=ASC :20220914101925:TlreNsM3Z59W2vBoyxmkREXY3ME='
onlyoffice-community-server    | ++ a=2
onlyoffice-community-server    | +++ echo '"ASC' ':20220914101925:TlreNsM3Z59W2vBoyxmkREXY3ME="'
onlyoffice-community-server    | +++ grep ==
onlyoffice-community-server    | ++ '[' -z '' ']'
onlyoffice-community-server    | ++ echo 'ASC :20220914101925:TlreNsM3Z59W2vBoyxmkREXY3ME='
onlyoffice-community-server    | ++ exit 0
onlyoffice-community-server    | + RELEASE_DATE_SIGN='ASC :20220914101925:TlreNsM3Z59W2vBoyxmkREXY3ME='
onlyoffice-community-server    | + sed -i '/version.release-date.sign/s!value="[^"]*"!value=\"ASC :20220914101925:TlreNsM3Z59W2vBoyxmkREXY3ME=\"!g' /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | ++ head -n 1 /var/www/onlyoffice/Data/.private/release_date
onlyoffice-community-server    | head: cannot open '/var/www/onlyoffice/Data/.private/release_date' for reading: No such file or directory
onlyoffice-community-server    | + PREV_RELEASE_DATE=
onlyoffice-community-server    | + '[' '' '!=' '' ']'
onlyoffice-community-server    | + chmod -R 444 /var/www/onlyoffice/Data/.private
onlyoffice-community-server    | + cat /proc/1/cgroup
onlyoffice-community-server    | + grep -qE 'docker|lxc|kubepods|libpod'
onlyoffice-community-server    | + DOCKER_ENABLED=false
onlyoffice-community-server    | + '[' '!' -d /etc/nginx/sites-enabled ']'
onlyoffice-community-server    | + '[' '!' -d /var/www/onlyoffice/DocumentServerData ']'
onlyoffice-community-server    | + NGINX_ROOT_DIR=/etc/nginx
onlyoffice-community-server    | + 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])$'
onlyoffice-community-server    | + LOG_DEBUG=
onlyoffice-community-server    | + LOG_DIR=/var/log/onlyoffice/
onlyoffice-community-server    | + APP_HTTPS=false
onlyoffice-community-server    | + SSL_CERTIFICATES_DIR=/var/www/onlyoffice/Data/certs
onlyoffice-community-server    | + SSL_CERTIFICATE_PATH=/var/www/onlyoffice/Data/certs/onlyoffice.crt
onlyoffice-community-server    | + SSL_KEY_PATH=/var/www/onlyoffice/Data/certs/onlyoffice.key
onlyoffice-community-server    | + SSL_CERTIFICATE_PATH_PFX=/var/www/onlyoffice/Data/certs/onlyoffice.pfx
onlyoffice-community-server    | + SSL_CERTIFICATE_PATH_PFX_PWD=onlyoffice
onlyoffice-community-server    | + SSL_DHPARAM_PATH=/var/www/onlyoffice/Data/certs/dhparam.pem
onlyoffice-community-server    | + SSL_VERIFY_CLIENT=off
onlyoffice-community-server    | + SSL_OCSP_CERTIFICATE_PATH=/var/www/onlyoffice/Data/certs/stapling.trusted.crt
onlyoffice-community-server    | + CA_CERTIFICATES_PATH=/var/www/onlyoffice/Data/certs/ca.crt
onlyoffice-community-server    | + APP_HTTPS_HSTS_ENABLED=true
onlyoffice-community-server    | + APP_HTTPS_HSTS_MAXAGE=63072000
onlyoffice-community-server    | + SYSCONF_TEMPLATES_DIR=/app/config
onlyoffice-community-server    | + mkdir -p /app/config/nginx
onlyoffice-community-server    | + SYSCONF_TOOLS_DIR=/app/assets/tools
onlyoffice-community-server    | + APP_SERVICES_INTERNAL_HOST=
onlyoffice-community-server    | + APP_SERVICES_EXTERNAL=false
onlyoffice-community-server    | + DOCUMENT_SERVER_ENABLED=false
onlyoffice-community-server    | + DOCUMENT_SERVER_JWT_ENABLED=true
onlyoffice-community-server    | + DOCUMENT_SERVER_JWT_SECRET=jwt_secret
onlyoffice-community-server    | + DOCUMENT_SERVER_JWT_HEADER=AuthorizationJwt
onlyoffice-community-server    | + DOCUMENT_SERVER_HOST=
onlyoffice-community-server    | + DOCUMENT_SERVER_PROTOCOL=http
onlyoffice-community-server    | + DOCUMENT_SERVER_API_URL=
onlyoffice-community-server    | + DOCUMENT_SERVER_HOST_IP=
onlyoffice-community-server    | + CONTROL_PANEL_ENABLED=false
onlyoffice-community-server    | + MAIL_SERVER_ENABLED=false
onlyoffice-community-server    | + MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw
onlyoffice-community-server    | + MYSQL_SERVER_HOST=onlyoffice-mysql-server
onlyoffice-community-server    | + MYSQL_SERVER_PORT=3306
onlyoffice-community-server    | + MYSQL_SERVER_DB_NAME=onlyoffice
onlyoffice-community-server    | + MYSQL_SERVER_USER=onlyoffice_user
onlyoffice-community-server    | + MYSQL_SERVER_PASS=onlyoffice_pass
onlyoffice-community-server    | + MYSQL_SERVER_EXTERNAL=false
onlyoffice-community-server    | + mkdir -p /var/www/onlyoffice/Data/certs/.well-known/acme-challenge
onlyoffice-community-server    | + '[' 172.19.0.6/16 ']'
onlyoffice-community-server    | ++ normalize_subnet 172.19.0.6/16
onlyoffice-community-server    | ++ local 'IPRE=\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)'
onlyoffice-community-server    | ++ IP=($(echo "$1" | sed -ne 's:^'"$IPRE"'/.*$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | +++ echo 172.19.0.6/16
onlyoffice-community-server    | +++ sed -ne 's:^\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/.*$:\1 \2 \3 \4:p'
onlyoffice-community-server    | ++ local IP
onlyoffice-community-server    | ++ MASK=($(echo "$1" | sed -ne 's:^[^/]*/'"$IPRE"'$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | +++ echo 172.19.0.6/16
onlyoffice-community-server    | +++ sed -ne 's:^[^/]*/\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)$:\1 \2 \3 \4:p'
onlyoffice-community-server    | ++ local MASK
onlyoffice-community-server    | ++ '[' 0 -ne 4 ']'
onlyoffice-community-server    | ++ BITCNT=($(echo "$1" | sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'))
onlyoffice-community-server    | +++ echo 172.19.0.6/16
onlyoffice-community-server    | +++ sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'
onlyoffice-community-server    | ++ local BITCNT
onlyoffice-community-server    | ++ BITCNT=4294901760
onlyoffice-community-server    | ++ (( I=0 ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ MASK[$I]=255
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ MASK[$I]=255
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ MASK[$I]=0
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ MASK[$I]=0
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ NETWORK=()
onlyoffice-community-server    | ++ local NETWORK
onlyoffice-community-server    | ++ (( I=0 ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ NETWORK[$I]=172
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ NETWORK[$I]=19
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ NETWORK[$I]=0
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | ++ NETWORK[$I]=0
onlyoffice-community-server    | ++ (( I++  ))
onlyoffice-community-server    | ++ (( I<4 ))
onlyoffice-community-server    | +++ echo 172.19.0.6/16
onlyoffice-community-server    | +++ sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'
onlyoffice-community-server    | ++ local IP_MASK=16
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | + DOCKER_APP_SUBNET=172.19.0.0/16
onlyoffice-community-server    | + check_partnerdata
onlyoffice-community-server    | + PARTNER_DATA_FILE=/var/www/onlyoffice/Data/json-data.txt
onlyoffice-community-server    | + '[' -f /var/www/onlyoffice/Data/json-data.txt ']'
onlyoffice-community-server    | + re='^[0-9]+$'
onlyoffice-community-server    | + [[ 1 =~ ^[0-9]+$ ]]
onlyoffice-community-server    | + '[' '!' -f /proc/net/if_inet6 ']'
onlyoffice-community-server    | + cp /etc/nginx/includes/onlyoffice-communityserver-nginx.conf.template /etc/nginx/nginx.conf
onlyoffice-community-server    | + sed 's/^worker_processes.*/worker_processes 2;/' -i /etc/nginx/nginx.conf
onlyoffice-community-server    | + sed 's/worker_connections.*/worker_connections 1048576;/' -i /etc/nginx/nginx.conf
onlyoffice-community-server    | + cp /etc/nginx/includes/onlyoffice-communityserver-common-init.conf.template /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + '[' -f /var/www/onlyoffice/Data/certs/onlyoffice.crt -a -f /var/www/onlyoffice/Data/certs/onlyoffice.key ']'
onlyoffice-community-server    | + sed '/{{SSL_CERTIFICATE_PATH}}/d' -i /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + sed '/{{SSL_KEY_PATH}}/d' -i /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + sed '/listen\s*443/d' -i /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + rm -f '/etc/nginx/conf.d/*.conf'
onlyoffice-community-server    | + service nginx restart
onlyoffice-community-server    |  * Restarting nginx nginx               [ OK ] 
onlyoffice-community-server    | ++ head -n 1
onlyoffice-community-server    | ++ free -m
onlyoffice-community-server    | ++ grep -oP '\d+'
onlyoffice-community-server    | + TOTAL_MEMORY=15967
onlyoffice-community-server    | + MEMORY_REQUIREMENTS=12228
onlyoffice-community-server    | + '[' 15967 -gt 12228 ']'
onlyoffice-community-server    | + grep -q '[-]Xms1g' /etc/elasticsearch/jvm.options
onlyoffice-community-server    | + echo -Xms4g
onlyoffice-community-server    | + grep -q '[-]Xmx1g' /etc/elasticsearch/jvm.options
onlyoffice-community-server    | + echo -Xmx4g
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' onlyoffice-document-server ']'
onlyoffice-community-server    | + DOCUMENT_SERVER_ENABLED=true
onlyoffice-community-server    | + DOCUMENT_SERVER_HOST=onlyoffice-document-server
onlyoffice-community-server    | + DOCUMENT_SERVER_API_URL='\/ds-vpath'
onlyoffice-community-server    | + '[' true == true ']'
onlyoffice-community-server    | + '[' 172.19.0.0/16 ']'
onlyoffice-community-server    | + '[' -z '' ']'
onlyoffice-community-server    | ++ dig +short onlyoffice-document-server
onlyoffice-community-server    | + DOCUMENT_SERVER_HOST_IP=172.19.0.5
onlyoffice-community-server    | + check_ip_is_internal 172.19.0.0/16 172.19.0.5
onlyoffice-community-server    | + local 'IPRE=\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)'
onlyoffice-community-server    | + IP=($(echo "$1" | sed -ne 's:^'"$IPRE"'/.*$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/.*$:\1 \2 \3 \4:p'
onlyoffice-community-server    | + local IP
onlyoffice-community-server    | + MASK=($(echo "$1" | sed -ne 's:^[^/]*/'"$IPRE"'$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^[^/]*/\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)$:\1 \2 \3 \4:p'
onlyoffice-community-server    | + local MASK
onlyoffice-community-server    | + '[' 0 -ne 4 ']'
onlyoffice-community-server    | + BITCNT=($(echo "$1" | sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'))
onlyoffice-community-server    | ++ echo 172.19.0.0/16
onlyoffice-community-server    | ++ sed -ne 's:^[^/]*/\([0-9]\+\)$:\1:p'
onlyoffice-community-server    | + local BITCNT
onlyoffice-community-server    | + BITCNT=4294901760
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=255
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=255
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + MASK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK=()
onlyoffice-community-server    | + local NETWORK
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=172
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=19
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + NETWORK[$I]=0
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + INIP=($(echo "$2" | sed -ne 's:^'"$IPRE"'$:\1 \2 \3 \4:p'))
onlyoffice-community-server    | ++ sed -ne 's:^\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)$:\1 \2 \3 \4:p'
onlyoffice-community-server    | ++ echo 172.19.0.5
onlyoffice-community-server    | + local INIP
onlyoffice-community-server    | + (( I=0 ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 172 -ne 172 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 19 -ne 19 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 0 -ne 0 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + [[ 0 -ne 0 ]]
onlyoffice-community-server    | + (( I++  ))
onlyoffice-community-server    | + (( I<4 ))
onlyoffice-community-server    | + return 0
onlyoffice-community-server    | ++ dig +short onlyoffice-community-server
onlyoffice-community-server    | + _DOCKER_CONTAINER_IP=172.19.0.6
onlyoffice-community-server    | + '[' 172.19.0.6 == 172.19.0.6 ']'
onlyoffice-community-server    | + SERVER_HOST=onlyoffice-community-server
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + '[' onlyoffice-mysql-server '!=' localhost ']'
onlyoffice-community-server    | + '[' onlyoffice-mysql-server '!=' 127.0.0.1 ']'
onlyoffice-community-server    | + MYSQL_SERVER_EXTERNAL=true
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 80 ']'
onlyoffice-community-server    | + CONTROL_PANEL_ENABLED=true
onlyoffice-community-server    | + MAIL_SERVER_API_PORT=8081
onlyoffice-community-server    | + MAIL_SERVER_API_HOST=onlyoffice-mail-server
onlyoffice-community-server    | + MAIL_SERVER_DB_HOST=onlyoffice-mysql-server
onlyoffice-community-server    | + MAIL_SERVER_DB_PORT=3306
onlyoffice-community-server    | + MAIL_SERVER_DB_NAME=onlyoffice_mailserver
onlyoffice-community-server    | + MAIL_SERVER_DB_USER=onlyoffice_mailserver_user
onlyoffice-community-server    | + MAIL_SERVER_DB_PASS=onlyoffice_mailserver_user_pass
onlyoffice-community-server    | + '[' onlyoffice-mysql-server ']'
onlyoffice-community-server    | + MAIL_SERVER_ENABLED=true
onlyoffice-community-server    | + '[' -z onlyoffice-mail-server ']'
onlyoffice-community-server    | + [[ ! onlyoffice-mail-server =~ ^(([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])$ ]]
onlyoffice-community-server    | ++ dig +short onlyoffice-mail-server
onlyoffice-community-server    | + MAIL_SERVER_API_HOST=172.19.0.4
onlyoffice-community-server    | + '[' -z 172.19.0.4 ']'
onlyoffice-community-server    | ++ date +%Y-%m-%dT%H:%M:%S
onlyoffice-community-server    | + MAIL_IMAPSYNC_START_DATE=2022-09-14T10:19:25
onlyoffice-community-server    | + sed 's_\(\"ImapSyncStartDate":\).*,_\1 "2022-09-14T10:19:25",_' -i /etc/onlyoffice/communityserver/mail.production.json
onlyoffice-community-server    | + sed '/mail\.imap-sync-start-date/s/value="\S*"/value="2022-09-14T10:19:25"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + '[' 172.19.0.4 ']'
onlyoffice-community-server    | + '[' '!' bash /app/assets/tools/wait-for-it.sh 172.19.0.4:25 --timeout=300 --quiet -s -- echo 'MailServer is up' ']'
onlyoffice-community-server    | /app/run-community-server.sh: line 439: [: too many arguments
onlyoffice-community-server    | + REDIS_SERVER_HOST=
onlyoffice-community-server    | + REDIS_SERVER_CACHEPORT=6379
onlyoffice-community-server    | + REDIS_SERVER_PASSWORD=
onlyoffice-community-server    | + REDIS_SERVER_SSL=false
onlyoffice-community-server    | + REDIS_SERVER_DATABASE=0
onlyoffice-community-server    | + REDIS_SERVER_CONNECT_TIMEOUT=5000
onlyoffice-community-server    | + REDIS_SERVER_EXTERNAL=false
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' false == false ']'
onlyoffice-community-server    | + '[' -e /etc/redis/redis.conf ']'
onlyoffice-community-server    | + sed -i 's/bind .*/bind 127.0.0.1/g' /etc/redis/redis.conf
onlyoffice-community-server    | + ELASTICSEARCH_SERVER_HOST=onlyoffice-elasticsearch
onlyoffice-community-server    | + ELASTICSEARCH_SERVER_HTTPPORT=9200
onlyoffice-community-server    | + grep -q '<section name="elastic" type="ASC.ElasticSearch.Config.ElasticSection, ASC.ElasticSearch" />' /var/www/onlyoffice/WebStudio/Web.config
onlyoffice-community-server    | + echo 'This entry is already there'
onlyoffice-community-server    | This entry is already there
onlyoffice-community-server    | + '[' true == false ']'
onlyoffice-community-server    | + service mysql stop
onlyoffice-community-server    |  * Stopping MySQL database server mysqld[ OK ] 
onlyoffice-community-server    | + systemctl disable mysql.service
onlyoffice-community-server    | Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
onlyoffice-community-server    | Executing: /lib/systemd/systemd-sysv-install disable mysql
onlyoffice-community-server    | + mysql_check_connection
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + mysqladmin ping -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass --silent
onlyoffice-community-server    | mysqladmin: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | mysqld is alive
onlyoffice-community-server    | ++ mysql_scalar_exec 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -e 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=onlyoffice
onlyoffice-community-server    | ++ echo onlyoffice
onlyoffice-community-server    | + DB_IS_EXIST=onlyoffice
onlyoffice-community-server    | ++ mysql_scalar_exec 'SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -e 'SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=utf8mb3
onlyoffice-community-server    | ++ echo utf8mb3
onlyoffice-community-server    | + DB_CHARACTER_SET_NAME=utf8mb3
onlyoffice-community-server    | ++ mysql_scalar_exec 'SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\''' opt_ignore_db_name
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' opt_ignore_db_name == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -e 'SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME='\''onlyoffice'\'''
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=utf8_general_ci
onlyoffice-community-server    | ++ echo utf8_general_ci
onlyoffice-community-server    | + DB_COLLATION_NAME=utf8_general_ci
onlyoffice-community-server    | ++ mysql_scalar_exec 'SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='\''onlyoffice'\'''
onlyoffice-community-server    | ++ local queryResult=
onlyoffice-community-server    | ++ '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | +++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='\''onlyoffice'\'''
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ++ queryResult=199
onlyoffice-community-server    | ++ echo 199
onlyoffice-community-server    | + DB_TABLES_COUNT=199
onlyoffice-community-server    | + '[' -z onlyoffice ']'
onlyoffice-community-server    | + '[' utf8mb3 '!=' utf8 ']'
onlyoffice-community-server    | + mysql_scalar_exec 'ALTER DATABASE onlyoffice CHARACTER SET utf8 COLLATE utf8_general_ci'
onlyoffice-community-server    | + local queryResult=
onlyoffice-community-server    | + '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'ALTER DATABASE onlyoffice CHARACTER SET utf8 COLLATE utf8_general_ci'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | + queryResult=
onlyoffice-community-server    | + echo
onlyoffice-community-server    | 
onlyoffice-community-server    | + change_connections default /var/www/onlyoffice/WebStudio/web.connections.config
onlyoffice-community-server    | + sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;\"/' -i /var/www/onlyoffice/WebStudio/web.connections.config
onlyoffice-community-server    | + change_connections teamlabsite /var/www/onlyoffice/WebStudio/web.connections.config
onlyoffice-community-server    | + sed '/teamlabsite/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;\"/' -i /var/www/onlyoffice/WebStudio/web.connections.config
onlyoffice-community-server    | + change_connections default /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;\"/' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + change_connections default /var/www/onlyoffice/Services/Jabber/ASC.Xmpp.Server.Launcher.exe.config
onlyoffice-community-server    | + sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;\"/' -i /var/www/onlyoffice/Services/Jabber/ASC.Xmpp.Server.Launcher.exe.config
onlyoffice-community-server    | + change_connections default /var/www/onlyoffice/ApiSystem/Web.config
onlyoffice-community-server    | + sed '/default/s/\(connectionString\s*=\s*\"\)[^\"]*\"/\1Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;\"/' -i /var/www/onlyoffice/ApiSystem/Web.config
onlyoffice-community-server    | + sed 's!"host":.*,!"host":"onlyoffice-mysql-server",!' -i /var/www/onlyoffice/Services/ASC.UrlShortener/config/config.json
onlyoffice-community-server    | + sed 's!"user":.*,!"user":"onlyoffice_user",!' -i /var/www/onlyoffice/Services/ASC.UrlShortener/config/config.json
onlyoffice-community-server    | + sed 's!"password":.*,!"password":"onlyoffice_pass",!' -i /var/www/onlyoffice/Services/ASC.UrlShortener/config/config.json
onlyoffice-community-server    | + sed 's!"database":.*!"database":"onlyoffice"!' -i /var/www/onlyoffice/Services/ASC.UrlShortener/config/config.json
onlyoffice-community-server    | + sed -i 's/Server=.*/Server=onlyoffice-mysql-server;Port=3306;Database=onlyoffice;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=true;Connection Timeout=30;Maximum Pool Size=300;",/g' /etc/onlyoffice/communityserver/appsettings.production.json
onlyoffice-community-server    | + '[' 199 -eq 0 ']'
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + mysql_scalar_exec 'DELETE FROM webstudio_settings WHERE id='\''5C699566-34B1-4714-AB52-0E82410CE4E5'\'';'
onlyoffice-community-server    | + local queryResult=
onlyoffice-community-server    | + '[' '' == opt_ignore_db_name ']'
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server -P 3306 -u onlyoffice_user --password=onlyoffice_pass -D onlyoffice -e 'DELETE FROM webstudio_settings WHERE id='\''5C699566-34B1-4714-AB52-0E82410CE4E5'\'';'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | + queryResult=
onlyoffice-community-server    | + echo
onlyoffice-community-server    | 
onlyoffice-community-server    | + '[' -f /var/www/onlyoffice/Data/certs/onlyoffice.crt -a -f /var/www/onlyoffice/Data/certs/onlyoffice.key ']'
onlyoffice-community-server    | + cp /etc/nginx/includes/onlyoffice-communityserver-common.conf.template /app/config/nginx/prepare-onlyoffice
onlyoffice-community-server    | + sed -i 1d /etc/logrotate.d/nginx
onlyoffice-community-server    | + sed '1 i\/var/log/nginx/*.log /var/log/onlyoffice/nginx.*.log {' -i /etc/logrotate.d/nginx
onlyoffice-community-server    | + '[' 172.19.0.0/16 ']'
onlyoffice-community-server    | + sed 's,{{DOCKER_APP_SUBNET}},172.19.0.0/16,' -i /app/config/nginx/prepare-onlyoffice
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' true == true ']'
onlyoffice-community-server    | + sed '/files\.docservice\.secret/s!\(value\s*=\s*\"\)[^\"]*\"!\1jwt_secret\"!' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/files\.docservice\.secret.header/s!\(value\s*=\s*\"\)[^\"]*\"!\1AuthorizationJwt\"!' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/files\.docservice\.secret/s!\(value\s*=\s*\"\)[^\"]*\"!\1jwt_secret\"!' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + sed '/files\.docservice\.secret.header/s!\(value\s*=\s*\"\)[^\"]*\"!\1AuthorizationJwt\"!' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + '[' true == true ']'
onlyoffice-community-server    | + cp /etc/nginx/includes/onlyoffice-communityserver-proxy-to-documentserver.conf.template /etc/nginx/includes/onlyoffice-communityserver-proxy-to-documentserver.conf
onlyoffice-community-server    | + sed 's,{{DOCUMENT_SERVER_HOST_ADDR}},http:\/\/onlyoffice-document-server,' -i /etc/nginx/includes/onlyoffice-communityserver-proxy-to-documentserver.conf
onlyoffice-community-server    | + sed '/files\.docservice\.url\.internal/s!\(value\s*=\s*\"\)[^\"]*\"!\1http:\/\/onlyoffice-document-server\/\"!' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/files\.docservice\.url\.public/s!\(value\s*=\s*\"\)[^\"]*\"!\1\/ds-vpath\/\"!' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/files\.docservice\.url\.internal/s!\(value\s*=\s*\"\)[^\"]*\"!\1http:\/\/onlyoffice-document-server\/\"!' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + sed '/files\.docservice\.url\.public/s!\(value\s*=\s*\"\)[^\"]*\"!\1\/ds-vpath\/\"!' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + '[' -n 172.19.0.0/16 ']'
onlyoffice-community-server    | + '[' -n onlyoffice-community-server ']'
onlyoffice-community-server    | + sed '/files\.docservice\.url\.portal/s!\(value\s*=\s*\"\)[^\"]*\"!\1http:\/\/onlyoffice-community-server\"!' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/files\.docservice\.url\.portal/s!\(value\s*=\s*\"\)[^\"]*\"!\1http:\/\/onlyoffice-community-server\"!' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.config
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + '[' true == true ']'
onlyoffice-community-server    | + timeout=120
onlyoffice-community-server    | + interval=10
onlyoffice-community-server    | + '[' 10 -lt 120 ']'
onlyoffice-community-server    | + interval=20
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 20 -lt 120 ']'
onlyoffice-community-server    | + interval=30
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 30 -lt 120 ']'
onlyoffice-community-server    | + interval=40
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
onlyoffice-community-server    | + '[' ']'
onlyoffice-community-server    | + '[' 40 -lt 120 ']'
onlyoffice-community-server    | + interval=50
onlyoffice-community-server    | ++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u onlyoffice_mailserver_user --password=onlyoffice_mailserver_user_pass -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.19.0.4'\'' limit 1;'
onlyoffice-community-server    | mysql: [Warning] Using a password on the command line interface can be insecure.
onlyoffice-community-server    | ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
onlyoffice-community-server    | + MAIL_SERVER_HOSTNAME=
onlyoffice-community-server    | + [[ 1 -eq 0 ]]
onlyoffice-community-server    | + sleep 10
Carazyda commented 2 years ago

Yes, I confirm that we have a problem of running Onlyoffice with a mail server via docker-compose(bug 59041 in our private bugtracker).

Carazyda commented 1 year ago

Fixed by https://github.com/ONLYOFFICE/Docker-CommunityServer/commit/a35dfc7abf32093a9f20ad2127ced8825fbda10b https://github.com/ONLYOFFICE/Docker-CommunityServer/commit/bf11d95fb5eb66f3e451b6aabd637e69786d3883 https://github.com/ONLYOFFICE/Docker-CommunityServer/commit/10f15ec4d9b562027d20f0ba4c0a77300f1134b0