LXC - I-MSCP 1.4.x - Debian Wheezy to Jessie
-
- not i-MSCP related
- c64wolf
- Closed
- Thread is marked as Resolved.
-
-
Thanks Nuxwin! It seems that I have not received any emails from the period when the segfaulting started to happen, which would possibly indicate that the emails not delivered were in mail queue. Luckily I have a snapshot of the faulty upgraded container which I can use to restore the emails from the queue. I will need to investigate if I can just copy the queue over to the respective directory in the working container to have the mails delivered through proper path to mailboxes.
-
-
I cannot confirm your problems with proxmox 4.4-13 and a fresh i-MSCP installation through our development branch (1.4.x). There are no maildrop's segfault. I can send/receive mails to/from outside-world.
You should make sure to update your container correctly. Best is to wait for i-MSCP 1.4.4 version.
In order, I've done the following:
- I've updated my proxmox to version 4.4-13 using the deb http://download.proxmox.com/debian jessie pve-no-subscription repository
- I've created a new container using latest debian template
- I've installed new i-MSCP instance in the container, following the howto available at i-MSCP inside a LXC container (Managed by Proxmox 4.4)
- I've created a reseller and a customer
- I've created a mail account
RESULT
I've been able to send and receive mail to/from outside-world
root@pve:~# pveversion
pve-manager/4.4-13/7ea56165 (running kernel: 4.4.59-1-pve)root@pve:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie
root@pve:~# pct config 100
arch: amd64
cores: 2
hostname: lxc.bbox.nuxwin.com
memory: 1024
nameserver: 8.8.4.4
net0: name=eth0,bridge=vmbr0,gw=192.168.1.1,hwaddr=82:5D:68:51:C9:EB,ip=192.168.1.190/24,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-100-disk-1,size=15G
searchdomain: 8.8.8.8
swap: 512
unprivileged: 1
lxc.cap.drop:
lxc.aa_profile: lxc-container-imscproot@lxc:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie
root@lxc:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessieroot@lxc:~# cat /etc/imscp/imscp.conf |grep Version
Version = Git 1.4.xroot@lxc:~# cat /etc/imscp/imscp.conf |grep '_SERVER ='
FRONTEND_SERVER = nginx
FTPD_SERVER = proftpd
HTTPD_SERVER = apache_php_fpm
MTA_SERVER = postfix
NAMED_SERVER = bind
PHP_SERVER = php5.6
PO_SERVER = courier
SQL_SERVER = mysql_5.5
root@pve:~# apparmor_status
apparmor module is loaded.
6 profiles are loaded.
6 profiles are in enforce mode.
/usr/bin/lxc-start
lxc-container-default
lxc-container-default-cgns
lxc-container-default-with-mounting
lxc-container-default-with-nesting
lxc-container-imscp
0 profiles are in complain mode.
50 processes have profiles defined.
50 processes are in enforce mode.
/usr/bin/lxc-start (20917)
lxc-container-imscp (20963)
lxc-container-imscp (21782)
lxc-container-imscp (21928)
lxc-container-imscp (22040)
lxc-container-imscp (22043)
lxc-container-imscp (22046)
lxc-container-imscp (22049)
lxc-container-imscp (22058)
lxc-container-imscp (22075)
lxc-container-imscp (22080)
lxc-container-imscp (22082)
lxc-container-imscp (22095)
lxc-container-imscp (22096)
lxc-container-imscp (22103)
lxc-container-imscp (22108)
lxc-container-imscp (22110)
lxc-container-imscp (22111)
lxc-container-imscp (22113)
lxc-container-imscp (22125)
lxc-container-imscp (22140)
lxc-container-imscp (22141)
lxc-container-imscp (22142)
lxc-container-imscp (22143)
lxc-container-imscp (22144)
lxc-container-imscp (22186)
lxc-container-imscp (22213)
lxc-container-imscp (22215)
lxc-container-imscp (22216)
lxc-container-imscp (22217)
lxc-container-imscp (22220)
lxc-container-imscp (22299)
lxc-container-imscp (22790)
lxc-container-imscp (22929)
lxc-container-imscp (22932)
lxc-container-imscp (22934)
lxc-container-imscp (22935)
lxc-container-imscp (22936)
lxc-container-imscp (23107)
lxc-container-imscp (23113)
lxc-container-imscp (23114)
lxc-container-imscp (23129)
lxc-container-imscp (23246)
lxc-container-imscp (23251)
lxc-container-imscp (23252)
lxc-container-imscp (23262)
lxc-container-imscp (23290)
lxc-container-imscp (23291)
lxc-container-imscp (23337)
lxc-container-imscp (23342)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.Note that init system was SysVinit (default).
-
Thanks for testing.
So you were using sysvinit in the container? Installing a brand new jessie from template is not the same as upgrading a container with i-mscp from wheezy to jessie. By default, the upgrade process pulls systemd into the container. Perhaps that could have caused the issue with apparmor and maildrop? I believe that whatever apparmor blocked caused the maildrop segfault. I will try the upgrade process again when 1.4.4 is released and next time I will configure the container so that systemd is not installed in the upgrade process. -
-
May 19 16:09:01 web kernel: [335147.880658] audit: type=1400 audit(1495199341.753:872): apparmor="DENIED" operation="file_lock" profile="lxc-container-imscp" pid=26284 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
This message has nothing to do with your maildrop segfaults. It comes from the phpsessionclean service that cannot start due to the new network namespace requirement (PrivateNetwork=true in the /lib/systemd/system/phpsessionclean.service file) and that can't be setup without the SYS_ADMIN capability and network permissions (apparmor). I need to investigate this issue because normaly you have already the SYS_ADMIN capability and the network permissions (apparmor).
Edit: This is a bug in apparmor. See https://bugs.launchpad.net/ubu…rce/apparmor/+bug/1575779
However, note that the phpsessionclean service is not needed with i-MSCP. Therefore, you can safetely disable it:
For the rest, I'll do some tests with systemd.
-
Thanks for the reply Nuxwin! Nice to see that there really was a bug in apparmor. Today I tried again to upgrade production to Jessie (and I-MSCP 1.4.6) and this time so far I have not observed the maildrop issue. What I did differently was making sure that systemd was not pulled in by the upgrade.
Before Debian upgrade process I made sure that systemd is not pulled in by creating a file /etc/apt/preferences.d/local-pin-init
Then I performed the distribution upgrade as standard:
Then before upgrading i-mscp I ran following commands:
And performed all things as required by i-mscp upgrade process and errata.
So far I have tested that emails seem to work, websites work, and FTP works.
I have not yet reactivated plugins (defaultpage, postgrey).
Only odd thing I see in the logs is:
Jun 21 01:26:19 webhost imapd-ssl: couriertls: /etc/imscp/imscp_services.pem: error:0906D06C:PEM routines:PEM_read_bio:no start line -
-
Installed the defaultpage plugin and spamassassin (with default configuration). Still no sight of maildrop segfault.
-
Courier Auth seems to be broken after upgrade. I am sure I did try it once and it worked as I did document trying that, but now every time I restore the test container to the state it was after jessie and i-mscp upgrade was installed, the courier auth logs just this when trying to send email through smtp auth:
Jun 21 17:20:26 web postfix/smtpd[3186]: warning: SASL authentication failure: cannot connect to Courier authdaemond: No such file or directory
Jun 21 17:20:26 web postfix/smtpd[3186]: warning: xxxxxxxxxx.x.fi[xx.xx.xx.xx]: SASL LOGIN authentication failed: generic failure -
-
Thread closed for the same reasons as explained here: SpamAssassin not blocking GTUBE test email