The Netmask Provided is not a valid IP

VN-Ken

New member
Joined
Jun 28, 2010
Messages
4
Hello,

For some reason, all setups we are doing are getting this error:

Type: /sbin/service httpd restart
## REPORT_START
Welcome to DirectAdmin verion 1.35.1!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.

The netmask provided is not a valid IP
check the /usr/local/directadmin/scripts/setup.txt
## INSTALL_FAILED
## REPORT_END
Permissions set

System Security Tips:
http://help.directadmin.com/item.php?id=247


These are OpenVZ VPS's.

Has something changed with how DA does installs for VPS's now?

Code:
hostname=serv.vir.com
[email protected]
mysql=xxxxxxxxxxxxxx
mysqluser=da_admin
adminname=xxxxxxxxxx
adminpass=xxxxxxxx
ns1=ns1.vir.com
ns2=ns2.vir.com
ip=xxx.xx.xxx.xxx
netmask=xxx.xx.xxx.255  Mask
uid=xxxx
lid=xxxxxx
services=services_es50.tar.gz

Maybe "Mask" should not be in the netmask line?
 
Last edited:
Hello,

Correct, the "Mask" bit shouldn't be there.
The setup.sh uses the following (for non-FreeBSD systems) to get the netmask:
Code:
/sbin/ifconfig $ETH_DEV | grep 'Mask:' | cut -d: -f4
where $ETH_DEV is replaced with your ethernet device name.

I've also added a code change in the DA code to not abort on invalid netmask, but to set it to 255.255.255.0 if it's not valid (this is only cosmetic within DA, so doesn't matter)

John
 
Hello,

Correct, the "Mask" bit shouldn't be there.
The setup.sh uses the following (for non-FreeBSD systems) to get the netmask:
Code:
/sbin/ifconfig $ETH_DEV | grep 'Mask:' | cut -d: -f4
where $ETH_DEV is replaced with your ethernet device name.

I've also added a code change in the DA code to not abort on invalid netmask, but to set it to 255.255.255.0 if it's not valid (this is only cosmetic within DA, so doesn't matter)

John

You just added this, or it has always been there? I checked the existing DA installs, and their setup.txt files are the same format.
 
It was a change in the new binaries. I'm in the process of releasing the new ones. So the "window" will only be a few days where you'll get that error.

John
 
It was a change in the new binaries. I'm in the process of releasing the new ones. So the "window" will only be a few days where you'll get that error.

John

What can I do in the meantime to continue the install? Right now, it still aborts.

Please advise.

Edit: Reminder - this is an openvz vps
 
Last edited:
Hello,

1) edit the setup.txt to make the netmask correct.

2) type:
Code:
cd /usr/local/directadmin
./directadmin i
./directadmin p

I'm going to re-upload the fixed binaries now, so it should be ok in a few hours.

John
 
Back
Top