Closed (works as designed)
Project:
Barracuda
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2011 at 18:22 UTC
Updated:
22 Dec 2012 at 19:10 UTC
Jump to comment: Most recent file
I ran the upgrade, had some issues pertaining to MariaDB updating (see other issue), and then I got back online and my mail server refused all connections. Double checked, dovecot wasn't working. Ran
'aptitude install dovecot-common' and then, my dovecot server magically accepted connections
Q? Why did BARRACUDA.txt.sh remove dovecot-common?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | barracuda-upgrade-120519-1559.log_.txt | 155.22 KB | jim kirkpatrick |
Comments
Comment #1
omega8cc commentedIt is probably a side result of fairly aggressive apt-get upgrade procedure we use to avoid broken-in-the-middle upgrades for various system level stuff. Barracuda doesn't uninstall anything - it is apt-get or aptitude incremental or related dependencies which can lead to some unexpected issues if there are services installed besides those managed by Barracuda.
We would need detailed install log for debugging, but I don't think we can avoid such issues when there is unexpected extra software installed.
Comment #2
zkrebs commentedI am looking for a way to run a postfix/dovecot mail server in concurrency with Barracuda. It has been working, but every time I do an update it breaks. Is there any way I could avoid this issue?
Comment #3
omega8cc commentedUnfortunately, we can't guarantee anything for any extra stuff installed on the server. I'm afraid you need to watch it and manage on your own, as Barracuda can't be aware of anything installed extra and at the same time it has to force aggressive apt-get procedures to guarantee reliable upgrades of included system libraries and various services.
Comment #4
jim kirkpatrick commentedHappened to me after recent update to 2.0.3 too :-( Barracuda removed Dovecot, SASL and some related bits, no emails for me until I re-added these modules and a couple of config files.
Is this really something that can't be avoided? Didn't #1388704: Support standard Aptitude for all system updates w/o the need to run Barracuda make any difference here?
Reopening in hope...
Comment #5
omega8cc commentedWe can't be responsible for anything added/installed besides the packages installed by Barracuda, so if you are adding other services, you are on your own.
As for apt-get only upgrades, please read also this important update: http://drupal.org/node/1587786#comment-6011582
We may *try* to be friendly to other packages, but since BOA doesn't track them and doesn't support, there is no guarantee it will work.
Could you attach a full backend log for this upgrade resulting with removal of dovecot? You can find it in the file
/var/backups/barracuda-upgrade-DATE-TIME.log.Comment #6
jim kirkpatrick commentedHi Grace, thanks for considering this issue again... barracuda-upgrade-120519-1559.log attached as requested.
Looking through it it's clear when Barracuda removes the mysql package to replace it, all the dependent stuff gets dropped too... I wonder if there would be a way for the scripts to list the installed mysql-dependent packages somehow and then re-install them at the end?
And a .conf file got dropped on my box too, so I'm not sure if you're purging packages but if so maybe it'd be possible only purge the key packages for BOA and just 'gently' uninstall dependencies so everything comes back when they're re-installed.
I realise the above probably has knock-on effects, but really it's the 'other half' of #1388704: Support standard Aptitude for all system updates w/o the need to run Barracuda insofar as allowing BOA stuff to not nuke other server components...
Thanks,
Jim
Comment #7
jim kirkpatrick commentedFuther to my last,
apt-cache rdepends [package]will list the dependent packages which could be then used to re-install (and avoid purging) non-BOA packages that get dropped when Barracuda nukes the packages it needs to update. Might need to be combined withdpkg --get-selections.E.g.:
Comment #8
omega8cc commentedI don't think we can reliably avoid issues like this if we allow BOA to watch and re-install packages removed because of purged dependencies on mysql re-install etc. BOA needs to be aggressive to avoid broken upgrades and overridden configuration etc. Re-installing packages we don't support or track may just open a Pandora's box.
It will be possible when we will convert most of BOA bash code to Ansible, and you will be able to add your custom stuff as an extension Ansible understands and will be able to track and support without affecting BOA itself.