Docker-CommunityServer icon indicating copy to clipboard operation
Docker-CommunityServer copied to clipboard

Installation issues

Open tedd77 opened this issue 8 years ago • 7 comments
trafficstars

Hello,

I am trying to install on Ubuntu 16.04.02 and having several issues.

  1. I am using docker option since I could not succeed in any other method. with the following commands I can make the onlyoffice work in community however no mail server is possible

Document server sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-document-server -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice onlyoffice/documentserver

OK

Mail server sudo docker run --net onlyoffice --privileged -i -t -d --restart=always --name onlyoffice-mail-server -p 25:25 -p 143:143 -p 587:587
-v /app/onlyoffice/MailServer/data:/var/vmail -v /app/onlyoffice/MailServer/data/certs:/etc/pki/tls/mailserver -v /app/onlyoffice/MailServer/logs:/var/log
-v /app/onlyoffice/MailServer/mysql:/var/lib/mysql -h my_private_ip onlyoffice/mailserver

OK

sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-community-server
-p 80:80 -p 5222:5222 -p 443:443 -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data
-v /app/onlyoffice/CommunityServer/mysql:/var/lib/mysql
-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData
-e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
-e MAIL_SERVER_DB_HOST=onlyoffice-mail-server onlyoffice/communityserver

Not OK .. impossible to access the community server

sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-community-server
-p 80:80 -p 5222:5222 -p 443:443 -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data
-v /app/onlyoffice/CommunityServer/mysql:/var/lib/mysql
-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData
-e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
onlyoffice/communityserver

OK however I cannot see the possibility to create own domain name, basically the mail functionality will be limited to client mail not a mail server.

  1. Oneclick install does not work form me at all. Although I enabled the SSH port 22 through my firewall , I can see request coming but later I get an error and does not proceed.

Could someone help me on the mail issue (point 1)

tedd77 avatar May 19 '17 10:05 tedd77

Hello @tedd77 ! Please run the following commands

docker logs onlyoffice-community-server
docker logs onlyoffice-mail-server

Then send to us resulting logs

JohnPerkin avatar May 22 '17 11:05 JohnPerkin

Hello @JohnPerkin Thank you for your reply, I assume that I need to run the command sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-community-server -p 80:80 -p 5222:5222 -p 443:443 -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data -v /app/onlyoffice/CommunityServer/mysql:/var/lib/mysql -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData -e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server -e MAIL_SERVER_DB_HOST=onlyoffice-mail-server onlyoffice/communityserver

then the following docker logs onlyoffice-community-server docker logs onlyoffice-mail-server

tedd77 avatar May 22 '17 13:05 tedd77

Before using commands docker logs you need to make sure that the corresponding containers are running. You may use docker ps. If community server and mail server have statuses 'UP' there is no need to use docker run

JohnPerkin avatar May 22 '17 13:05 JohnPerkin

Hello @JohnPerkin ~# docker logs onlyoffice-community-server

  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 12485: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 51: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 51: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 52: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty
  • Restarting nginx nginx start-stop-daemon: warning: failed to kill 50: No such process [ OK ] MAIL_SERVER_API_HOST is empty ~# docker logs onlyoffice-mail-server [ INFO ] Checking configuration file: /usr/src/iRedMail/config ... [FOUND] [ INFO ] Import installation process status from file: /usr/src/iRedMail/runtime/install.status.

  • Start iRedMail Configurations

[ INFO ] Create required system accounts: vmail, iredapd. [ INFO ] Configure Apache web server and PHP. [ INFO ] Configure PHP. [ INFO ] Configure MySQL database server. 170522 13:17:46 mysqld_safe Logging to '/var/log/mysqld.log'. 170522 13:17:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 170522 13:17:51 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended [ INFO ] Configure Postfix (Message Transfer Agent). [ INFO ] Configure Cluebringer (postfix policy server). [ INFO ] Configure Dovecot (pop3/imap/managesieve server). [ INFO ] Configure ClamAV (anti-virus toolkit). [ INFO ] Configure Amavisd-new (interface between MTA and content checkers). [ INFO ] Configure SpamAssassin (content-based spam filter). [ INFO ] Configure OpenDkim. [ INFO ] Configure Fail2ban (authentication failure monitor). [ INFO ] Configure Server API. [ INFO ] Configure SpamTrainer. mkdir: cannot create directory `/var/log/spamtrainer': File exists [ INFO ] Configure Awstats (logfile analyzer for mail and web server).


  • iRedMail-0.9.2 installation and configuration complete.

[ INFO ] Disable SELinux in /etc/selinux/config. [ INFO ] Removing package(s): sendmail Loaded plugins: fastestmirror Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package sendmail.x86_64 0:8.14.4-9.el6_8.1 will be erased --> Processing Dependency: sendmail = 8.14.4-9.el6_8.1 for package: sendmail-devel-8.14.4-9.el6_8.1.x86_64 --> Running transaction check ---> Package sendmail-devel.x86_64 0:8.14.4-9.el6_8.1 will be erased --> Finished Dependency Resolution

Dependencies Resolved

================================================================================ Package Arch Version Repository Size

Removing: sendmail x86_64 8.14.4-9.el6_8.1 @base 1.5 M Removing for dependencies: sendmail-devel x86_64 8.14.4-9.el6_8.1 @base 254 k

Transaction Summary

Remove 2 Package(s)

Installed size: 1.8 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction 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 warning: erase unlink of /var/log/mail/statistics failed: No such file or directory 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

Removed: sendmail.x86_64 0:8.14.4-9.el6_8.1

Dependency Removed: sendmail-devel.x86_64 0:8.14.4-9.el6_8.1

Complete! grep: /etc/ssh/sshd_config: No such file or directory [ INFO ] Copy firewall sample rules: /etc/sysconfig/iptables. [ INFO ] Restarting firewall ... [ INFO ] Copy MySQL sample file: /etc/my.cnf. [ INFO ] Enable SSL support for MySQL server.


  • URLs of installed web applications:
    • Webmail:
    • Web admin panel (iRedAdmin): httpS://192.168.xx.xx/iredadmin/
  • You can login to above links with same credential:
  • o Username: [email protected]
  • o Password: oxx61vxxx15

  • Congratulations, mail server setup completed successfully. Please
  • read below file for more information:
    • /usr/src/iRedMail/iRedMail.tips
  • And it's sent to your mail account [email protected].

********************* WARNING ************************************** *

  • Rebooting your system is required to enable mail services.

mkdir: cannot create directory /var/log/httpd': File exists rm: cannot remove /var/run/syslogd.pid': No such file or directory rm: cannot remove /var/run/cbpolicyd.pid': No such file or directory rm: cannot remove /var/run/opendkim/opendkim.pid': No such file or directory Starting mysqld: [ OK ] /usr/src/iRedMail/functions/mysql.sh: line 33: ECHO_INFO: command not found /usr/src/iRedMail/functions/mysql.sh: line 36: ECHO_DEBUG: command not found Starting crond: [ OK ] Starting Dovecot Imap: [ OK ] Starting system logger: [ OK ] Starting amavisd: [ OK ]

Starting postfix: [FAILED] Starting cbpolicyd: [ OK ] Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** [ OK ] Starting clamd.amavisd: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** [ OK ] Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.xx.xx for ServerName [ OK ] Generating default DKIM keys: [ OK ] Default DKIM keys for 168.xx.xx created in /usr/local/etc/opendkim/keys. Starting OpenDKIM Milter: [ OK ] Starting spamd: [ OK ] Starting fail2ban: [ OK ] Starting server

tedd77 avatar May 22 '17 13:05 tedd77