root@server5:/home/martin# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s4f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:26:55:7e:f9:16 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.242/24 metric 100 brd 192.168.0.255 scope global enp3s4f0
valid_lft forever preferred_lft forever
inet6 fe80::226:55ff:fe7e:f916/64 scope link
valid_lft forever preferred_lft forever
3: enp3s4f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:26:55:7e:f9:17 brd ff:ff:ff:ff:ff:ff
root@server5:/home/martin# ip -4 -d -j addr show | jq
[
{
"ifindex": 1,
"ifname": "lo",
"flags": [
"LOOPBACK",
"UP",
"LOWER_UP"
],
"mtu": 65536,
"qdisc": "noqueue",
"operstate": "UNKNOWN",
"group": "default",
"txqlen": 1000,
"link_type": "loopback",
"address": "00:00:00:00:00:00",
"broadcast": "00:00:00:00:00:00",
"promiscuity": 0,
"min_mtu": 0,
"max_mtu": 0,
"num_tx_queues": 1,
"num_rx_queues": 1,
"gso_max_size": 65536,
"gso_max_segs": 65535,
"addr_info": [
{
"family": "inet",
"local": "127.0.0.1",
"prefixlen": 8,
"scope": "host",
"label": "lo",
"valid_life_time": 4294967295,
"preferred_life_time": 4294967295
}
]
},
{
"ifindex": 2,
"ifname": "enp3s4f0",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"mtu": 1500,
"qdisc": "mq",
"operstate": "UP",
"group": "default",
"txqlen": 1000,
"link_type": "ether",
"address": "00:26:55:7e:f9:16",
"broadcast": "ff:ff:ff:ff:ff:ff",
"promiscuity": 0,
"min_mtu": 60,
"max_mtu": 9000,
"num_tx_queues": 5,
"num_rx_queues": 5,
"gso_max_size": 65536,
"gso_max_segs": 65535,
"parentbus": "pci",
"parentdev": "0000:03:04.0",
"addr_info": [
{
"family": "inet",
"local": "192.168.0.242",
"prefixlen": 24,
"metric": 100,
"broadcast": "192.168.0.255",
"scope": "global",
"label": "enp3s4f0",
"valid_life_time": 4294967295,
"preferred_life_time": 4294967295
}
]
}
]
root@server5:/home/martin# ip -4 -d -j addr show | jq -r '.[] | select(length > 0) | .addr_info[] | if .scope == "global" then .local else empty end'
192.168.0.242
root@server5:/home/martin#
Strange, it is returning the right ip.
Please, execute again v-update-sys-ip
and show the output:
sudo /usr/local/hestia/bin/v-update-sys-ip
If it fails again execute this (the output will be large):
sudo bash -x /usr/local/hestia/bin/v-update-sys-ip
root@server5:/home/martin# sudo /usr/local/hestia/bin/v-update-sys-ip
mv: ‘/usr/local/hestia/data/ips/192.168.0.242’ and ‘/usr/local/hestia/data/ips/192.168.0.242’ are the same file
/usr/local/hestia/func/ip.sh: line 186: 5 - ( / 8): syntax error: operand expected (error token is “/ 8)”)
Error: nginx restart failed
Error: ERROR: Restart of apache2 failed.
Error: apache2 restart failed