Cannot start hestia-nginx after upgrade to 1.8.0

root@d:/var/log# /etc/init.d/hestia status
● hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (exited) since Tue 2023-07-11 17:39:46 EEST; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 588 ExecStart=/etc/init.d/hestia start (code=exited, status=5)

Jul 11 17:39:45 d systemd[1]: Starting LSB: starts the hestia control panel…
Jul 11 17:39:46 d hestia[588]: Starting hestia-nginx: hestia-nginxjq: error (at :1): Cannot iterate over null (null)
Jul 11 17:39:46 d systemd[1]: Started LSB: starts the hestia control panel.

1 Like

same error here after update 1.8.0

Please provide OS and version.

No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

Please run:

physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" // .linkinfo.info_kind then empty else .ifname end')"
	if [ -z "$physical_nics" ]; then
		physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
	fi

   echo $physical_nics;

	for nic in $physical_nics; do
		if [ -z "$ipv4_scope_global" ]; then
			ipv4_scope_global="$(ip -4 -d -j addr show "$nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end')"
		fi
		if [ -z "$ipv6_scope_global" ]; then
			ipv6_scope_global="$(ip -6 -d -j addr show "$nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end')"
		fi
	done

Also what is your provider?

root@d:/home/f# ./test.sh
enp4s11 wls33
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)

nic='enp4s11'
ip -4 -d -j addr show "$nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end'

And

ip -4 -d -j addr show "$nic"

eth0
jq: error (at :1): Cannot iterate over null (null)

jq: error (at :1): Cannot iterate over null (null)

ip -4 -d -j addr show “$nic”

[{},{"ifindex":2,"ifname":"eth0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"fq","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"XXXXX","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"min_mtu":68,"max_mtu":65535,"num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"addr_info":[{"family":"inet","local":"XXXXX","prefixlen":24,"broadcast":"XXX.255","scope":"global","label":"eth0","valid_life_time":4294967295,"preferred_life_time":4294967295}]}]

What is your provider?

root@d:/home/d# ip -4 -d -j addr show “enp4s11” | jq -r ‘.[].addr_info’
null
[
{
“family”: “inet”,
“local”: “XXX.XXX.XXX.2”,
“prefixlen”: 23,
“broadcast”: “XXX.XXX.XXX.255”,
“scope”: “global”,
“label”: “enp4s11”,
“valid_life_time”: 4294967295,
“preferred_life_time”: 4294967295
}
]

hosting ovh , I tested only 1 sv update

if expression present in array

root@d:/home/d# ip -4 -d -j addr show “enp4s11” | jq -r ‘..addr_info
jq: error (at :1): Cannot iterate over null (null)

OVH cloud or Dedicated server?

Do you mind giving me root access?

dedicated, the setup was running fine… before this update
I run in my own vps kvm too, the same error

Found the issue. Will work on a patch for it

2 Likes

top. Thanks