Failed to query Postfix config command to get the current value of parameter home_mailbox:

11 posts / 0 new
Last post
#1 Sat, 02/17/2007 - 01:06
ShantaMcBain

Failed to query Postfix config command to get the current value of parameter home_mailbox:

Anyone got a fix for this one?

Failed to query Postfix config command to get the current value of parameter home_mailbox:

I am running the current versions of all webmin and GPL virtualmin modules on a debian serge system that I keep updated daily.

Thanks Shanta

Sun, 06/07/2009 - 07:01
Joe
Joe's picture

Hey Shanta,

This error indicates that postconf failed.

Does postconf run from the command line?

If so, check to be sure the Webmin Postfix module knows where to find it (in the Module Config, the option is labeled "Full path to Postfix config command").

If both of those things are true, then something is going wrong with the postconf command intermittently--maybe memory issues. I've seen this exact problem happen several times on various types of vserver, virtuozzo, and xen virtual systems, and it's always due to memory issues with those platforms. The workaround is to reduce memory usage, or increase available memory. (It's a bug in those platforms...but if you stay well under the available memory, you can probably get a stable system, though postconf is not the only thing that will run into problems.)

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:01
ShantaMcBain

Hi Joe

Thanks for the responce
This error indicates that postconf failed.

>Does postconf run from the command line?

Don't know! The error happens when attempting to enter virtualmin server module.

>If so, check to be sure the Webmin Postfix module knows]where to find it (in the Module Config, the option is]labeled "Full path to Postfix config command").

This seems to be setup right the entry matches the location of the file.

>If both of those things are true, then something is going]wrong with the postconf command intermittently--maybe]memory issues. I've seen this exact problem happen several]times on various types of vserver, virtuozzo, and xen]virtual

I am on Redwoodvirtual which is a Linux virtual host.

>systems, and it's always due to memory issues with those]platforms. The workaround is to reduce memory usage, or]increase available memory. (It's a bug in those]platforms...but if you stay well under the available]memory, you can probably get a stable system, though]postconf is not the only thing that will run into]problems.)

in the running process

It memory as 125164 kB total / 80752. There is no swap file used by this vserver.

Reducing memory usage by Postfix did not seem to help.
I just guest at what to do here though.

I also turned of postgres to free more memory. I would assume that you are right about memory though as things where working before I got MySQL running. I will stop it as well and test.

Any other sugestions?

Shanta

Sun, 06/07/2009 - 07:01
ShantaMcBain

Just turned of MYSQL but it did not help. Same problem.

Shanta

Sun, 06/07/2009 - 07:02
DenisMonsieur

I'm having the same problem on Debian with current webmin/virtualmin versions. postconf runs fine from command line though.
I guess it has something to to with memory, but how can I be sure of that?

Sun, 06/07/2009 - 07:45
Joe
Joe's picture

Hey Shanta,

This error indicates that postconf failed.

Does postconf run from the command line?

If so, check to be sure the Webmin Postfix module knows where to find it (in the Module Config, the option is labeled "Full path to Postfix config command").

If both of those things are true, then something is going wrong with the postconf command intermittently--maybe memory issues. I've seen this exact problem happen several times on various types of vserver, virtuozzo, and xen virtual systems, and it's always due to memory issues with those platforms. The workaround is to reduce memory usage, or increase available memory. (It's a bug in those platforms...but if you stay well under the available memory, you can probably get a stable system, though postconf is not the only thing that will run into problems.)

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:45
markusr

Hi, new VirtualMin user here.

Add swap space.

I've had sleepless nights with this and other error messages on a freshly installed virtual machine. When I would try to re-check the config there would be an error message saying a service &quot;<div class='quote'>does not appear to be installed and running on your system</div>&quot;.

I added a few debug lines to [code:1]/usr/libexec/webmin/webalizer/webalizer-lib.pl[/code:1], and found that shell commands in backticks would return nothing during the re-check, while the same exact line worked perfectly in the Webmin Webalizer server configuration screen. A general problem with running external commands, then.

It turns out to be a low memory issue, even though I'd followed the relevant <a href='http://www.virtualmin.com/documentation/id,virtualmin_on_low_memory_syst... target='_blank'>instructions</a> and [code:1]free[/code:1] indicated memory usage at only 100M on a 256M virtual machine. Strangely I also have a test machine with 256M RAM, where Virtualmin is OK. Hmmh.

Took me two late nights and several reinstalls to figure out the solution is swap space. Not only have the errors gone, the whole machine now seems a lot more responsive.

To create a 256M swap space:
[code:1]dd if=/dev/zero of=/swapfile bs=1M count=256
mkswap /swapfile
swapon /swapfile
echo &quot;/swapfile swap swap defaults 0 0 &gt;&gt;/etc/fstab&quot;[/code:1]

To top it off it turns out the server provider had included a swap entry in fstab for a non-existent swap partition. ^^

Sun, 06/07/2009 - 07:45
Joe
Joe's picture

Hey Shanta,

This error indicates that postconf failed.

Does postconf run from the command line?

If so, check to be sure the Webmin Postfix module knows where to find it (in the Module Config, the option is labeled &quot;Full path to Postfix config command&quot;).

If both of those things are true, then something is going wrong with the postconf command intermittently--maybe memory issues. I've seen this exact problem happen several times on various types of vserver, virtuozzo, and xen virtual systems, and it's always due to memory issues with those platforms. The workaround is to reduce memory usage, or increase available memory. (It's a bug in those platforms...but if you stay well under the available memory, you can probably get a stable system, though postconf is not the only thing that will run into problems.)

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:45
markusr

Hi, new VirtualMin user here.

Add swap space.

I've had sleepless nights with this and other error messages on a freshly installed virtual machine. When I would try to re-check the config there would be an error message saying a service &quot;<div class='quote'>does not appear to be installed and running on your system</div>&quot;.

I added a few debug lines to [code:1]/usr/libexec/webmin/webalizer/webalizer-lib.pl[/code:1], and found that shell commands in backticks would return nothing during the re-check, while the same exact line worked perfectly in the Webmin Webalizer server configuration screen. A general problem with running external commands, then.

It turns out to be a low memory issue, even though I'd followed the relevant <a href='http://www.virtualmin.com/documentation/id,virtualmin_on_low_memory_syst... target='_blank'>instructions</a> and [code:1]free[/code:1] indicated memory usage at only 100M on a 256M virtual machine. Strangely I also have a test machine with 256M RAM, where Virtualmin is OK. Hmmh.

Took me two late nights and several reinstalls to figure out the solution is swap space. Not only have the errors gone, the whole machine now seems a lot more responsive.

To create a 256M swap space:
[code:1]dd if=/dev/zero of=/swapfile bs=1M count=256
mkswap /swapfile
swapon /swapfile
echo &quot;/swapfile swap swap defaults 0 0 &gt;&gt;/etc/fstab&quot;[/code:1]

To top it off it turns out the server provider had included a swap entry in fstab for a non-existent swap partition. ^^

Sun, 06/07/2009 - 07:45
markusr

That's obviously

[code:1]echo &quot;/swapfile swap swap defaults 0 0&quot; &gt;&gt;/etc/fstab[/code:1]

Sun, 01/16/2011 - 13:52
mcongosto

I was having this problem: "Failed to query Postfix config command to get the current value of parameter queue_directory:"

It was swap file was off after a hd enlarge. Fixed that and error went away.

Thank you!!

Topic locked