'Bad file descriptor' when adding a new e-mail user to an existing domain

3 posts / 0 new
Last post
#1 Wed, 10/21/2009 - 10:06
GlennD

'Bad file descriptor' when adding a new e-mail user to an existing domain

It appears that after the 3.74 upgrade the 'Add a new user' function is broken. When attempting to add an e-mail-only user ('username') to any existing domain ('sitename'), we receive :

Failed to save mailbox : Failed to write to /home/sitename/homes/username/Maildir/ when closing : Bad file descriptor

We ran an fsck which turned up nothing, and we are able to create dirs manually. Disk is nowhere near full. It only seems to fail under Virtualmin.

We turned on debug and noticed that Virtualmin seems to be appending spaces to the Maildir (last line below). Could that be the problem ? Any advice ?

24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx quota CMD "cmd=setquota -u username 102400 0 0 0 \/ "
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server READ "/etc/webmin/virtual-server/plainpass/12553041203844"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server WRITE "/etc/webmin/virtual-server/plainpass/12553041203844"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server CLOSE "/etc/webmin/virtual-server/plainpass/12553041203844"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server READ "/usr/local/webmin/usermin/module.info"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/usermin/config"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/usr/local/webmin/usermin/lang/en"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/usermin/custom-lang"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/usr/local/webmin/usermin/defaultacl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/etc/webmin/usermin/root.acl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/usr/local/webmin/webmin/module.info"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/webmin/config"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/usr/local/webmin/webmin/lang/en"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/webmin/custom-lang"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/proc/config"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/usr/local/webmin/proc/lang/en"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/proc/custom-lang"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx proc READ "/usr/local/webmin/proc/defaultacl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx proc READ "/etc/webmin/proc/root.acl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/usr/local/webmin/acl/module.info"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/acl/config"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/usr/local/webmin/acl/lang/en"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx - READ "/etc/webmin/acl/custom-lang"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx acl READ "/usr/local/webmin/acl/defaultacl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx acl READ "/etc/webmin/acl/root.acl"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/etc/usermin/miniserv.conf"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/usr/libexec/usermin/mailbox/module.info"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx usermin READ "/etc/usermin/webmin.descs"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server READ "/etc/usermin/mailbox/config"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server WRITE "/etc/webmin/virtual-server/everyone/12553041203844"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server CLOSE "/etc/webmin/virtual-server/everyone/12553041203844"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server READ "/etc/webmin/virtual-server/globals"
24243 [21/Oct/2009 10:28:15] root xxx.xxx.xxx.xxx virtual-server WRITE "/home/sitename/homes/username/Maildir/    "

Postfix 2.2.2

Fedora Core 4

Virtualmin 3.74.gpl

P.S. it would be nice if the links in the forum topic creation Input Format section opened in a new window, rather than change the page location and force a long post like this one to be retyped. ;-)

Wed, 10/21/2009 - 10:16
andreychek

Howdy,

Fedora Core 4, eh? There hasn't been any support (nor security updates) for that since 2006, hopefully you have a way of keeping the packages up to date ;-)

Regarding your issues --

Failed to save mailbox : Failed to write to /home/sitename/homes/username/Maildir/ when closing : Bad file descriptor

Hmm, I think I'd recommend filing a bug report about this one, using the Support link above. Jamie may need to take a peek at that.

P.S. it would be nice if the links in the forum topic creation Input Format section opened in a new window, rather than change the page location and force a long post like this one to be retyped

That's unusual... what browser are you using, and is Javascript enabled?

For me, whenever I click "Input Format", a series of additional options slide out. I was able to hit that a few times while typing this post without it reloading the page or otherwise interfering with what I typed.

I'll see if I can try out the browser your using and reproduce that. Thanks for the info!

-Eric

Wed, 10/21/2009 - 10:26
GlennD

Thanks for your reply, Eric. I'll post a bug report.

Since '05 it has been possible to keep FC4 in good shape using the packages in the remi repo. But remi is shutting down, so indeed the server will be due for an upgrade soon. Ugh.

And you're right, the formatting options do slide out. I should have been more clear -- It's the links in the expandable panel which lead to other pages, like 'You can use Markdown syntax to format . . .'

Thanks again.

Topic locked