Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162348 - net-mail/vpopmail CONFIG_PROTECT causes portage/etc-update/dispatch-conf to freeze for hours
Summary: net-mail/vpopmail CONFIG_PROTECT causes portage/etc-update/dispatch-conf to f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 118410 146260 186610 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-16 12:59 UTC by Alex V. Koval
Modified: 2007-08-09 08:04 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex V. Koval 2007-01-16 12:59:33 UTC
Hi!

I have a mail server where vpopmail is installed. After some time of its normal work I started to notice that 'emerge' became extremely slow. I have tried to find out what actual problem is, and what I found is that etc-update is the cause. It freezes and every etc-update takes 30-40 minutes to finish. My server experiences big sysload during this action. 

I tried to debug whats wrong inside of etc-upate. And found that one of CONFIG_PROTECT directories is: /var/vpopmail/domains. Obviously thats the problem. I never heard of any configuration files in this directory. This is mail storage directory for hundreds of mail server users. Its main mail base and its extremely large. 

I would like to suggest to remove /var/vpopmail/domains from CONFIG_PROTECT of vpopmail ebuild (at least I have such dir listed in files/99vpopmail

At all, why it was included originally? I do not remember any configuration files stored there. All vpopmail configuration files are in /var/vpopmail/etc. I  am sure 'domains' is only for data storage, no configuration files are stored there.

File location:
/usr/portage/net-mail/vpopmail/files/99vpopmail

appserver files # cat 99vpopmail 
ROOTPATH="/var/vpopmail/bin"
CONFIG_PROTECT="/var/vpopmail/domains /var/vpopmail/etc"



Reproducible: Always

Steps to Reproduce:
1. Install vpopmail
2. Have a large database of Email (2-3 Gb would be enoug)
3. run etc-update. System will freeze for a long time especially if your drives are slow.


Actual Results:  
it should be 2-3 seconds of scanning. as it is after I removed CONFIG_PROTECT, from /etc/env.d/99vpopmail and run env-update
Comment 1 Alex V. Koval 2007-04-29 11:01:40 UTC
interesting, how can I help in the pushing of this bug fix? I hate doing same things again and again, and this bug appears every time new version of vpopmail is installed. 

the fix is simple: remove /var/vpopmail/domains from CONFIG_PROTECT . do you want me to submit a patch? Here it is (a dumb simple remove /var/vpopmail/domains from CONFIG_PROTECT:

*** 99vpopmail  2007-04-29 14:00:15.000000000 +0300
--- 99vpopmail~ 2003-08-06 12:24:54.000000000 +0300
***************
*** 1,2 ****
  ROOTPATH="/var/vpopmail/bin"
! CONFIG_PROTECT="/var/vpopmail/etc"
--- 1,2 ----
  ROOTPATH="/var/vpopmail/bin"
! CONFIG_PROTECT="/var/vpopmail/domains /var/vpopmail/etc"


anything else I can do?
Comment 2 Zac Medico gentoo-dev 2007-07-26 22:04:55 UTC
(In reply to comment #1)
> anything else I can do?

Adding CONFIG_PROTECT="-/var/vpopmail/domains" to make.conf will negate that path.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-26 22:50:56 UTC
*** Bug 186610 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-26 22:52:37 UTC
*** Bug 118410 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-26 22:54:04 UTC
@net-mail: ping!
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-29 23:00:01 UTC
fixed in 5.4.19
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-09 08:04:41 UTC
*** Bug 146260 has been marked as a duplicate of this bug. ***