No reason given for "Failed to change IP addresses:"

We're using the latest version of Virtualmin GPL on a new web server, and we need to change the IP addresses of all of our virtual hosts.

The problem is that when we try, either by selecting "Change all hosts" or selecting an individual host to change, we just get the error message "Failed to change IP addresses:" with no further information or reason.

At the very least, this is a bug where no information is provided in the error message. We need to know what's wrong in order to fix it.

Status: 
Closed (fixed)

Comments

Looks like a missing error message in Virtualmin.

Can you try adding the line error_stack=1 to /etc/webmin/config , re-trying the change, and post the new full error message?

Howdy -- agreed, it does appear that the message needs to be improved.

As far as why it's not working though... is the new IP address setup on your server yet? That is, is that IP assigned to an ethernet interface?

Nuts, Jamie beat me to it :-)

For anyone seeing this issue, if you could try Jamie's debugging step described in comment #1, that would be great... thanks!

Oh yes, the IP address I'm trying to change it to has already been set up. Is this a problem, or do I need to use an unused address (which doesn't really make sense - virtual hosting would use a single IP for a lot of sites, in which case this is a different bug)?

Having the IP address setup is fine. In fact, that's what you would need.

To figure out what isn't working properly, try the debugging steps described by Jamie in Comment #1 above, and we'll get a better idea of what's going on there. Thanks!

Okay, complete error stack recorded.

Failed to change IP addresses :

Call Stack Trace

File Line Function /usr/share/webmin/virtual-server/save_newips.cgi 13 WebminCore::error (eval 50) 6 (eval) /usr/share/webmin/miniserv.pl 2352 (eval) /usr/share/webmin/miniserv.pl 909 miniserv::handle_request

screenshot image also attached.

Ok, so the error message that is supposed to appear is "Old IPv6 address is not in the correct format" , which means that the v6 address you entered in the "IPv6 address of servers to update" field was not valid.

Um, that sounds like a bug, because I didn't put any IPv6 address in there at all. You'll notice this from my screenshot in the original post. I've also requested that it not make any changes to the IPv6 address.

We do have v6 addresses assigned to these virtual hosts, but it should be ignoring them, should it not? We want them to stay the same, after all.

Yes, there is a bug it seems - that field should contain the default IPv6 address of your system, taken from the primary network interface (like eth0). This will be fixed in the 4.12 Virtualmin release, but until then the work-around is just to enter some bogus address like ::1 .

Excellent! This workaround does the job. Thanks for your help!

Automatically closed -- issue fixed for 2 weeks with no activity.