[bug] issues with installation script on fresh install.

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,148
Location
Maastricht
Is the install script being worked on or something?

At first I run setup.sh and get this problem:
*** Unable to determine which services pack to use ***"
I could choose the correct service, but things should work by itself, so I didn't trust this. Especially because the cat /etc/redhat-release command gave the correct output.

So I thought well... and downloaded the setup.sh script again and now it did not complaint here, but now I got this line 32!! times. I masked the ip with xx.

Code:
./setup.sh: line 883: [: 176.xx.xx.xx: integer expression expected
./setup.sh: line 883: [: 176.xx.xx.xx: integer expression expected
./setup.sh: line 883: [: 176.xx.xx.xx: integer expression expected
./setup.sh: line 883: [: 176.xx.xx.xx: integer expression expected
./setup.sh: line 883: [: 176.xx.xx.xx: integer expression expected

Line 883 only says "if [ ${i} -le ${1} ]; then" so what is wrong here?

Please help, we would like to get this server installed but we can't permit us issues with this one now.
 
Oke after these 32 lines it asks again for the ip. If you confirm again that it's correct, the second time the installation begins.
However, this is still odd and should not happen.
 
It says so in the error 'integer expression required'. An ip-address is a string, not an integer.

Check the output of: ip addr show ${ETH_DEV} | grep -m1 'inet ' | awk '{print $2}' | cut -d'/' -f2

Where ${ETH_DEV} is e.g. 'eth0' or whatever returns from:

ip addr | grep " 176.xx.xx.xx/" | awk '{print $NF}'
 
The output of the first command gives the correct ip address.
I had to fill in ifcfg-enp0s31f6 because only enp0s31f6 without ifcfg would not give any result.

For the second command, the result is:
enp0s31f6

Seems correct to me. I don't build the setup.sh script of DA. ;)
 
Hmm, that second command should give the netmask, not the interface name.

And you should fill in enp0s31f6 and not ifcfg-enp0s31f6.

Check your /etc/sysconfig/network-scripts/ if you didn't accidently put something like DEVICE="ifcfg-enp0s31f6" instead of enp0s31f6.
 
I didn't put anything. This is a basic image installation from the datacenter.
However, I don't see any netmask here. I verified with the other servers and there normally a netmask of 255.255.255.255 is filled in and no prefix=32 present.
Indeed when installing DA, I encountered a message about no submask found and DA set it to 255.255.255.0.

Would the missing netmask have caused this issue?
Code:
### Hetzner Online GmbH installimage

DEVICE=enp0s31f6
ONBOOT=yes
BOOTPROTO=none
IPADDR=176.xx.xx.xx
PREFIX=32
SCOPE="peer 176.xx.xx.xx"
DEFROUTE=yes

IPV6INIT=no
 
Just added the the subnet in /etc/sysconfig/network-scripts/ifcfg-enp0s31f6 and DA and rebooted, but the output of the commands are still the same.
Seems the commands are not correct because also on the other Centos 7 servers I get the same result with the commands.

Still... line883 is from setup.sh I didn't do anything different than on any other server I installed before.
Maybe the missing subnet mask was causing this, I'm not sure, maybe @smtalk can acknowledge this.
 
Code:
grep ethernet_dev /usr/local/directadmin/conf/directadmin.conf

do you get
ethernet_dev=enp0s31f6

If no correct it.

in
Code:
cat /etc/hosts
Do you have the host record for the server setup?

I assume it's CentOS 7 or 8?


Is the install script being worked on or something?
Almost every day.
 
Yes and yes.
IP and hosts are fine.

And indeed it's Centos 7.

I don't know if anybody else is doing a fresh Centos 7 installation. If yes, I'm curious as if they also encounter this error 32 times in the installation script. Or that it was caused by the initial missing of the subnet in my ethernet device.

System seems running fine, everything is installed now.
 
No I took the chance to see what happens. It's in my 2nd reply where I say I started the installation.
I might try FreeBSD on my local pc first... later this year somewhere.

But it's just my opinion that if this is an error in the setup.sh (not 100% sure yet) it should get fixed because it can cause more confusion.
 
we still using centos 7, try to reconfigure network by: nmtui
ip a - shows xx.xx.xx.xx/27 , prefix, not netmask.
 
Thank you but I don't have to reconfigure anything, everything works. I just want to know if this is a setup.sh bug because it was a fresh install, not done differently then anytime else.
 
Back
Top