1 (edited by koval.roma 2020-06-23 17:05:37)

Topic: Failed to start SOGo server

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: iRedMail-1.2.1
- Deployed with iRedMail Easy or the downloadable installer: downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: No
====

Setting up sogo:amd64 (4.3.2.20200623-1) ...
======= Important SOGo post-installation note =======

SOGo database schemas are _not_ automatically upgraded by
the packaging system.

Please check the list of database schema upgrade scripts
inside /usr/share/doc/sogo/ and apply them if needed.

More details can be found in the Upgrading section:
https://sogo.nu/files/docs/SOGoInstallationGuide.html#_upgrading

Job for sogo.service failed because the control process exited with error code.
See "systemctl status sogo.service" and "journalctl -xe" for details.
invoke-rc.d: initscript sogo, action "start" failed.
* sogo.service - LSB: SOGo server
   Loaded: loaded (/etc/init.d/sogo; generated)
   Active: failed (Result: exit-code) since Tue 2020-06-23 01:02:29 PDT; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 18531 ExecStart=/etc/init.d/sogo start (code=exited, status=1/FAILURE)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/sogo.service
           `-18610 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log

Jun 23 01:02:29 server67 systemd[1]: Starting LSB: SOGo server...
Jun 23 01:02:29 server67 sogo[18531]:  * Starting SOGo sogo
Jun 23 01:02:29 server67 sogo[18531]: chown: cannot access '/var/run/sogo/sogo.pid': No such file or directory
Jun 23 01:02:29 server67 systemd[1]: sogo.service: Control process exited, code=exited status=1
Jun 23 01:02:29 server67 systemd[1]: sogo.service: Failed with result 'exit-code'.
Jun 23 01:02:29 server67 systemd[1]: Failed to start LSB: SOGo server.
dpkg: error processing package sogo:amd64 (--configure):
 installed sogo:amd64 package post-installation script subprocess returned error exit status 1
Setting up libconvert-tnef-perl (0.18-1) ...
Setting up sa-compile (3.4.2-0ubuntu0.18.04.4) ...
Running sa-compile (may take a long time)
Setting up amavisd-new (1:2.11.0-1ubuntu1.1) ...
Creating/updating amavis user account...
dpkg: dependency problems prevent configuration of sogo-activesync:
 sogo-activesync depends on sogo (= 4.3.2.20200623-1); however:
  Package sogo:amd64 is not configured yet.

dpkg: error processing package sogo-activesync (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for ufw (0.35-5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4) ...
Processing triggers for dovecot-core (1:2.2.33.2-1ubuntu4.5) ...
Errors were encountered while processing:
 sogo:amd64
 sogo-activesync
E: Sub-process /usr/bin/dpkg returned an error code (1)
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: https://forum.iredmail.org/
root@server67:~/iRedMail-1.2.1# 
root@server67:~/iRedMail-1.2.1# 
root@server67:~/iRedMail-1.2.1# cat /etc/iredmail-release
cat: /etc/iredmail-release: No such file or directory

Hello, clean Ubuntu 18.04 server.  bash iRedMail.sh  shows errors with SoGo. I've chose two options RoundCube and SoGo to be installed. Maybe this is cause a problem ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Failed to start SOGo server

After server reboot I checked SoGo

root@server67:~# service sogo status
● sogo.service - LSB: SOGo server
   Loaded: loaded (/etc/init.d/sogo; generated)
   Active: active (running) since Tue 2020-06-23 01:59:37 PDT; 2min 18s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 439 ExecStart=/etc/init.d/sogo start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/sogo.service
           ├─804 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
           ├─845 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
           ├─846 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
           └─847 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log

Jun 23 01:59:37 server67 systemd[1]: Starting LSB: SOGo server...
Jun 23 01:59:37 server67 sogo[439]:  * Starting SOGo sogo
Jun 23 01:59:37 server67 sogo[439]:    ...done.
Jun 23 01:59:37 server67 systemd[1]: Started LSB: SOGo server. 

But:

 cat: /etc/iredmail-release: No such file or directory 

And

Roundcube webmail: https://your_server/mail/
SOGo Groupware: https://your_server/SOGo
Web admin panel (iRedAdmin): httpS://your_server/iredadmin/ 
This site can’t be reached.

I think this is because installer was broken on SoGo stage.

3

Re: Failed to start SOGo server

The iRedMail installation did NOT succeeded, it aborted after failed to install required packages.
You can try to re-run the installer.

4

Re: Failed to start SOGo server

Re-run the installer helped. 
Thank you !