WARN Duplicate profile when updating

8 posts / 0 new
Last post
#1 Wed, 10/14/2015 - 20:10
AllanIT

WARN Duplicate profile when updating

Hi each time I run updates I get the following warnings while updating apache. Is there something I need to do so that I no longer get these warnings?

WARN: Duplicate profile 'Apache', using last found
WARN: Duplicate profile 'Apache Secure', using last found
WARN: Duplicate profile 'Apache Full', using last found
WARN: Duplicate profile 'Dovecot POP3', using last found
WARN: Duplicate profile 'Dovecot Secure POP3', using last found
WARN: Duplicate profile 'Dovecot IMAP', using last found
WARN: Duplicate profile 'Dovecot Secure IMAP', using last found
Thu, 10/15/2015 - 00:16
andreychek

Howdy,

Googling that error, it appears to be related to UFW.

Are you running UFW on your server there?

If so, the resolution here may help out:

https://bugs.launchpad.net/apache2/+bug/1311423

Tue, 10/27/2015 - 19:15
AllanIT

Hi Eric

I am not running UFW I am running iptables.

Tue, 10/27/2015 - 20:27
andreychek

Howdy,

Was it ever installed though, perhaps used previously and then removed?

What is the output of this command:

/etc/ufw

Also, what processes are currently running? You can determine that with this command:

ps auxw

Wed, 10/28/2015 - 21:15
AllanIT

Hi Eric

I never knowingly installed it. Surely It would not be installed as a dependency of something else?

 
> /etc/ufw
sh: 1: /etc/ufw: Permission denied
> ps auxw
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  33584  2164 ?        Ss   Oct24   0:03 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Oct24   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Oct24   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    Oct24   2:14 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    Oct24   1:25 [rcuos/0]
root         9  0.0  0.0      0     0 ?        S    Oct24   1:13 [rcuos/1]
root        10  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuos/2]
root        11  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuos/3]
root        12  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuos/4]
root        13  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuos/5]
root        14  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcu_bh]
root        15  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/0]
root        16  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/1]
root        17  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/2]
root        18  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/3]
root        19  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/4]
root        20  0.0  0.0      0     0 ?        S    Oct24   0:00 [rcuob/5]
root        21  0.0  0.0      0     0 ?        S    Oct24   0:02 [migration/0]
root        22  0.0  0.0      0     0 ?        S    Oct24   0:02 [watchdog/0]
root        23  0.0  0.0      0     0 ?        S    Oct24   0:02 [watchdog/1]
root        24  0.0  0.0      0     0 ?        S    Oct24   0:02 [migration/1]
root        25  0.0  0.0      0     0 ?        S    Oct24   0:01 [ksoftirqd/1]
root        27  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kworker/1:0H]
root        28  0.0  0.0      0     0 ?        S<   Oct24   0:00 [khelper]
root        29  0.0  0.0      0     0 ?        S    Oct24   0:00 [kdevtmpfs]
root        30  0.0  0.0      0     0 ?        S<   Oct24   0:00 [netns]
root        31  0.0  0.0      0     0 ?        S<   Oct24   0:00 [writeback]
root        32  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kintegrityd]
root        33  0.0  0.0      0     0 ?        S<   Oct24   0:00 [bioset]
root        35  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kblockd]
root        36  0.0  0.0      0     0 ?        S<   Oct24   0:00 [ata_sff]
root        37  0.0  0.0      0     0 ?        S    Oct24   0:00 [khubd]
root        38  0.0  0.0      0     0 ?        S<   Oct24   0:00 [md]
root        39  0.0  0.0      0     0 ?        S<   Oct24   0:00 [devfreq_wq]
root        41  0.0  0.0      0     0 ?        S    Oct24   0:00 [khungtaskd]
root        42  0.0  0.0      0     0 ?        S    Oct24   0:15 [kswapd0]
root        43  0.0  0.0      0     0 ?        SN   Oct24   0:00 [ksmd]
root        44  0.0  0.0      0     0 ?        SN   Oct24   0:26 [khugepaged]
root        45  0.0  0.0      0     0 ?        S    Oct24   0:00 [fsnotify_mark]
root        46  0.0  0.0      0     0 ?        S    Oct24   0:00 [ecryptfs-kthrea]
root        47  0.0  0.0      0     0 ?        S<   Oct24   0:00 [crypto]
root        59  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kthrotld]
root        80  0.0  0.0      0     0 ?        S<   Oct24   0:00 [deferwq]
root        81  0.0  0.0      0     0 ?        S<   Oct24   0:00 [charger_manager]
root       125  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_0]
root       126  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_1]
root       127  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_2]
root       128  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_3]
root       133  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_4]
root       134  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kpsmoused]
root       135  0.0  0.0      0     0 ?        S    Oct24   0:00 [scsi_eh_5]
root       139  0.0  0.0      0     0 ?        S<   Oct24   0:00 [ttm_swap]
root       181  0.0  0.0      0     0 ?        S<   Oct24   0:00 [raid5wq]
root       208  0.0  0.0      0     0 ?        S    Oct24   0:21 [jbd2/sda1-8]
root       209  0.0  0.0      0     0 ?        S<   Oct24   0:00 [ext4-rsv-conver]
root       340  0.0  0.0  19472   484 ?        S    Oct24   0:01 upstart-udev-bridge --daemon
root       348  0.0  0.0  51608  1448 ?        Ss   Oct24   0:03 /lib/systemd/systemd-udevd --daemon
root       394  0.0  0.0      0     0 ?        S    Oct24   0:00 [jbd2/sdb1-8]
root       395  0.0  0.0      0     0 ?        S<   Oct24   0:00 [ext4-rsv-conver]
root       454  0.0  0.0  15272   504 ?        S    Oct24   0:00 upstart-file-bridge --daemon
root       471  0.0  0.0      0     0 ?        S<   Oct24   0:00 [kvm-irqfd-clean]
root       474  0.0  0.0      0     0 ?        S<   Oct24   0:00 [edac-poller]
root       475  0.0  0.0      0     0 ?        S<   Oct24   0:00 [hd-audio0]
root       478  0.0  0.0      0     0 ?        S<   Oct24   0:00 [hd-audio1]
syslog     518  0.1  0.3 256188 12436 ?        Ssl  Oct24  11:39 rsyslogd
root       567  0.0  0.0  15256   496 ?        S    Oct24   0:00 upstart-socket-bridge --daemon
message+   570  0.0  0.0  39224   900 ?        Ss   Oct24   0:04 dbus-daemon --system --fork
root       579  0.0  0.0 271128  1584 ?        Ss   Oct24   0:18 smbd -F
root       610  0.0  0.0  43540  1372 ?        Ss   Oct24   0:05 /lib/systemd/systemd-logind
root       957  0.0  0.0 191444  1112 ?        Ss   Oct24   0:05 nmbd -D
root       986  0.0  0.0  15816   560 tty4     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty4
root       989  0.0  0.0  15816   560 tty5     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty5
root       993  0.0  0.0  15816   560 tty2     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty2
root       994  0.0  0.0  15816   560 tty3     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty3
root       998  0.0  0.0  15816   560 tty6     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty6
root      1015  0.0  0.0 271128  1328 ?        S    Oct24   0:02 smbd -F
root      1140  0.0  0.0  61364  1004 ?        Ss   Oct24   0:00 /usr/sbin/sshd -D
daemon    1148  0.0  0.0  19136    12 ?        Ss   Oct24   0:00 atd
root      1149  0.0  0.0  23652   788 ?        Ss   Oct24   0:03 cron
root      1169  0.0  0.0  17772   940 ?        Ss   Oct24   0:04 /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf
root      1177  0.0  0.0      0     0 ?        S<   07:55   0:00 [kworker/u13:2]
root      1183  0.0  0.0  19188   532 ?        Ss   Oct24   0:51 /usr/sbin/irqbalance
bind      1188  0.0  1.8 290684 68248 ?        Ssl  Oct24   4:02 /usr/sbin/named -u bind
dovecot   1465  0.0  0.0   9280   508 ?        S    Oct24   0:00 dovecot/anvil
root      1466  0.0  0.0   9528   856 ?        S    Oct24   0:01 dovecot/log
amavis    1504  0.0  1.0 238608 41360 ?        Ss   Oct24   0:08 /usr/sbin/amavisd-new (master)
postgres  1525  0.0  0.0 134812  3172 ?        S    Oct24   0:18 /usr/lib/postgresql/8.4/bin/postgres -D /var/lib/postgresql/8.4/main -c config_file=/etc/postgresql/8.4/main/postgresql.conf
postgres  1539  0.0  0.0 134812   516 ?        Ss   Oct24   1:03 postgres: writer process                                                                                                   
postgres  1540  0.0  0.0 134812   260 ?        Ss   Oct24   0:51 postgres: wal writer process                                                                                               
postgres  1541  0.0  0.0 134944   696 ?        Ss   Oct24   0:20 postgres: autovacuum launcher process                                                                                      
postgres  1542  0.0  0.0 106356   456 ?        Ss   Oct24   0:27 postgres: stats collector process                                                                                          
postgres  1578  0.0  0.1 134768  6084 ?        S    Oct24   0:08 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf
postgres  1586  0.0  0.0 134768   648 ?        Ss   Oct24   1:04 postgres: writer process                                                                                                   
postgres  1587  0.0  0.0 134768   388 ?        Ss   Oct24   0:51 postgres: wal writer process                                                                                               
postgres  1588  0.0  0.0 135592  1292 ?        Ss   Oct24   0:16 postgres: autovacuum launcher process                                                                                      
postgres  1589  0.0  0.0 103184   524 ?        Ss   Oct24   0:17 postgres: stats collector process                                                                                          
postgres  2067  0.0  0.2 247784  9344 ?        S    Oct24   0:08 /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf
postgres  2070  0.0  0.0 247784   392 ?        Ss   Oct24   0:00 postgres: checkpointer process                                                                                             
postgres  2071  0.0  0.0 247784  1232 ?        Ss   Oct24   0:03 postgres: writer process                                                                                                   
postgres  2072  0.0  0.0 247784   212 ?        Ss   Oct24   0:03 postgres: wal writer process                                                                                               
postgres  2073  0.0  0.0 248596  1084 ?        Ss   Oct24   0:05 postgres: autovacuum launcher process                                                                                      
postgres  2074  0.0  0.0 103460   536 ?        Ss   Oct24   0:14 postgres: stats collector process                                                                                          
root      2098  0.0  0.8 158872 33644 ?        Ss   Oct24   1:54 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d --pidfile=/var/run/spamd.pid
clamav    2398  0.0  8.9 554160 339936 ?       Ssl  Oct24   4:33 /usr/sbin/clamd
clamav    2516  0.0  0.0  58820  1612 ?        Ss   Oct24   3:51 /usr/bin/freshclam -d --quiet
list      2540  0.0  0.0  60568  2424 ?        Ss   Oct24   0:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl -s -q start
greylist  2560  0.0  0.0 137052   456 ?        Ssl  Oct24   0:07 /usr/sbin/milter-greylist -P /var/run/greylist.pid -u greylist -p /var/run/milter-greylist/greylist.sock
list      2572  0.0  0.0  60496  2760 ?        S    Oct24   1:02 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
list      2573  0.0  0.0  60496  2784 ?        S    Oct24   1:03 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
list      2574  0.0  0.1  60504  4660 ?        S    Oct24   1:03 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
list      2575  0.0  0.0  60440  2788 ?        S    Oct24   1:02 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
list      2576  0.0  0.0  60456  3032 ?        S    Oct24   1:02 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
list      2577  0.0  0.0  60476  2804 ?        S    Oct24   1:03 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
list      2578  0.0  0.0  60488  2784 ?        S    Oct24   1:02 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
list      2579  0.0  0.0  60488  3000 ?        S    Oct24   0:00 /usr/bin/python /var/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
root      2595  0.0  0.0  15940   252 ?        Ss   Oct24   0:02 /usr/sbin/pkcsslotd
root      2698  0.0  0.0  25340   896 ?        Ss   Oct24   0:12 /usr/lib/postfix/master
root      2735  0.0  0.0  93476  1740 ?        Ss   Oct24   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      2736  0.0  0.0  93476  1736 ?        S    Oct24   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      2737  0.0  0.0  93476  1740 ?        S    Oct24   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      2738  0.0  0.0  93476  1740 ?        S    Oct24   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      2739  0.0  0.0  93476  1736 ?        S    Oct24   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      2764  0.0  0.0      0     0 ?        S    Oct24   0:00 [kauditd]
root      2773  0.0  0.0  85812  3328 ?        Ss   Oct24   0:09 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
root      2815  0.0  0.0  13268   336 ?        Ss   Oct24   0:00 /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog
root      3000  1.0  0.5 1510964 19164 ?       Sl   Oct24  73:16 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid
root      3187  0.0  1.6 144296 64364 ?        Ss   Oct24   0:38 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
root      3210  0.0  1.4  92212 53780 ?        Ss   Oct24   0:01 /usr/share/webmin/virtual-server/lookup-domain-daemon.pl
root      3250  0.0  0.0  15816   560 tty1     Ss+  Oct24   0:00 /sbin/getty -8 38400 tty1
postfix   4000  0.0  0.0  27404  1508 ?        S    08:42   0:00 pickup -l -t fifo -u -c -o content_filter= -o receive_override_options=no_header_body_checks
amavis    4045  0.0  2.1 248068 80236 ?        S    08:43   0:03 /usr/sbin/amavisd-new (ch4-avail)
amavis    4053  0.0  2.0 246848 78724 ?        S    08:43   0:02 /usr/sbin/amavisd-new (ch3-avail)
root      5007  0.0  0.0  22984  2400 ?        S    09:03   0:00 dovecot/config
root      5132  0.0  0.0      0     0 ?        S    09:05   0:00 [kworker/1:0]
root      5212  0.0  0.0      0     0 ?        S<   Oct28   0:00 [kworker/u13:0]
dovenull  5233  0.0  0.0  18088  2776 ?        S    09:07   0:00 dovecot/imap-login
1002      5236  0.0  0.0  21336  2368 ?        S    09:07   0:00 dovecot/imap
root      5249  0.0  0.0      0     0 ?        S    09:08   0:00 [kworker/u12:1]
postfix   5628  0.0  0.1  59544  4544 ?        S    09:17   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2 -o smtpd_sasl_auth_enable=yes
root      6348  0.0  0.0      0     0 ?        S    09:32   0:00 [kworker/0:0]
postfix   6521  0.0  0.1  59396  4296 ?        S    09:36   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2 -o smtpd_sasl_auth_enable=yes
postfix   6660  0.0  0.1  59396  4304 ?        S    09:39   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2 -o smtpd_sasl_auth_enable=yes
root      6763  0.0  0.0      0     0 ?        S    09:41   0:00 [kworker/1:2]
root      6776  0.0  0.0      0     0 ?        S    09:43   0:00 [kworker/0:1]
root      6816  0.0  0.0      0     0 ?        S    09:43   0:00 [kworker/u12:0]
root      6991  0.1  0.0      0     0 ?        S    09:46   0:00 [kworker/1:1]
postfix  10047  0.0  0.0  27800  1816 ?        S    06:21   0:03 anvil -l -t unix -u -c
root     10465  0.0  0.6 446836 23132 ?        Ss   09:47   0:00 /usr/sbin/apache2 -k start
www-data 10468  0.0  0.1 164580  4704 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
www-data 10470  0.0  0.2 447556 10820 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
www-data 10471  0.0  0.3 447552 11404 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
www-data 10472  0.0  0.2 447528 10824 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
www-data 10473  0.0  0.2 448016 11276 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
www-data 10474  0.0  0.3 447524 11376 ?        S    09:47   0:00 /usr/sbin/apache2 -k start
binaryo+ 11202  1.1  1.6 339196 64332 ?        S    09:48   0:01 /usr/bin/php5-cgi
www-data 11206  0.0  0.2 447536 10812 ?        S    09:48   0:00 /usr/sbin/apache2 -k start
root     11227  0.0  0.0      0     0 ?        S    09:48   0:00 [kworker/0:2]
root     11285  0.0  0.0      0     0 ?        S    09:48   0:00 [kworker/u12:2]
root     11351  0.0  0.1 103584  4052 ?        S    09:48   0:00 dovecot/auth
1047     11383  1.2  1.7 337024 66992 ?        S    09:49   0:01 /usr/bin/php5-cgi
www-data 11397  0.0  0.2 446868  9096 ?        S    09:49   0:00 /usr/sbin/apache2 -k start
1047     11409  1.3  1.9 343772 74620 ?        S    09:49   0:01 /usr/bin/php5-cgi
www-data 12553  0.0  0.2 446868  9096 ?        S    09:49   0:00 /usr/sbin/apache2 -k start
binaryo+ 12554  1.5  1.7 337636 65032 ?        S    09:49   0:01 /usr/bin/php5-cgi
root     12559  0.0  0.0  13228  1280 ?        S    09:49   0:00 dovecot/ssl-params
root     12560  0.1  0.1 114532  4776 ?        S    09:49   0:00 dovecot/auth -w
postfix  12601  0.0  0.0  27404  1508 ?        S    09:50   0:00 showq -t unix -u -c
postfix  12650  0.0  0.0  27416  1884 ?        S    09:50   0:00 trivial-rewrite -n rewrite -t unix -u -c
root     12664 14.0  1.8 147472 70144 ?        S    09:51   0:00 /usr/share/webmin/shell/index.cgi
root     12665  0.0  0.0   4440   400 ?        S    09:51   0:00 sh -c (ps auxw) 2>&1
root     12666  0.0  0.0  15564  1116 ?        R    09:51   0:00 ps auxw
mysql    13258  0.1  3.8 944284 145904 ?       Ssl  Oct27   3:37 /usr/sbin/mysqld
postfix  16119  0.0  0.0  27568  1324 ?        S    Oct24   0:01 qmgr -l -t fifo -u
postfix  16319  0.0  0.0  40320  1752 ?        S    Oct24   0:01 tlsmgr -l -t unix -u -c
root     16402  0.1  2.2 186760 85400 ?        S    Oct27   3:05 spamd child
ntp      22091  0.0  0.0  31448  1932 ?        Ss   Oct28   0:06 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 119:126
root     23172  0.0  1.7 167556 65568 ?        S    Oct28   0:03 spamd child
proftpd  26142  0.0  0.0  86616  1920 ?        Ss   Oct25   0:03 proftpd: (accepting connections)
Thu, 10/29/2015 - 00:53
andreychek

Howdy,

It doesn't look like UFW is currently running, but it does appear that at some point, it had been installed.

It isn't a dependency of any standard apps that would come with Virtualmin. So it's tough to say how it may have been installed previously.

My suggestion is to try the solution at the link in my comment above -- that should be a fairly straight forward fix.

-Eric

Thu, 10/29/2015 - 08:14
AllanIT

Hi Eric, and thanks for your help.

I followed the guide above as a first step but if it is not running and I am using iptables would it not make sence to remove it?

Thu, 10/29/2015 - 10:08
andreychek

Sure, you could remove it!

And if it's not currently installed, it may have just left some config files behind... if you remove it and still receive those messages, you could then just delete the /etc/ufw directory.

-Eric

Topic locked