NZBGet ErrNo 2, No such file or directory

Installed NZBGet on my Vero 4K+ and cannot connect to newsnet servers. It worked with sabnzbd but I’d rather use NZBGet. Error message;
Could not resolve hostname news.usenetserver.com: ErrNo 2, No such file or directory

When I ping I get a response;
osmc@osmc:~$ ping -c 3 news.usenetserver.com PING news.usenetserver.com (81.171.92.239): 56 data bytes 64 bytes from 81.171.92.239: seq=0 ttl=51 time=30.047 ms 64 bytes from 81.171.92.239: seq=1 ttl=51 time=29.374 ms 64 bytes from 81.171.92.239: seq=2 ttl=51 time=29.726 ms --- news.usenetserver.com ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 29.374/29.715/30.047 ms

It probably depends how you installed it.

Sam

I wrote a wee script to install it;

#!/bin/bash

# error handling
error_handler() {
echo "Error occurred in script at line: ${1}"
echo "Line exited with status: ${2}"
}

trap 'error_handler ${LINENO} $?' ERR
set -o errexit
set -o errtrace
set -o nounset

# check running as root
check_root () {
if [ "$USER" != 'root' ]
then
    echo "You must be root to run this."
    echo "Try typing: sudo -i"
    exit
fi
}

up_to_date () {
apt update && apt dist-upgrade -y
clear
}

which_user () {
echo "Please enter the user you want to install services with (e.g. osmc): "
read -r userVar
}

# install NZBGet
install_nzbget () {
# get files
rm -rf /opt/nzbget
mkdir /opt/nzbget && chown -R "$userVar":"$userVar" /opt/nzbget
wget https://nzbget.net/download/nzbget-latest-bin-linux.run -P /tmp
chmod +x /tmp/nzbget-latest-bin-linux.run
su - "$userVar" -c "sh /tmp/nzbget-latest-bin-linux.run --destdir /opt/nzbget"
# create systemd service
cat > /etc/systemd/system/nzbget.service << EOF
[Unit]
Description=NZBGet
After=network.target
RequiresMountsFor=/mnt/ext_hd

[Service]
User=$userVar
Group=$userVar
Type=forking
ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D
ExecStop=/opt/nzbget/nzbget -Q
ExecReload=/opt/nzbget/nzbget -O
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF
# enable on boot & start service
systemctl enable nzbget
systemctl start nzbget
if ! systemctl is-active --quiet nzbget
then
echo "Service is not running, please check the logs"
exit
fi
}

## SCRIPT COMMANDS ##
check_root
up_to_date
which_user
install_nzbget

Any ideas @sam_nazarko?

@eekfonky how long does it take for the vero 4k to unpack a big discussion ? were you able to watch a movie while sab was working ?

I have been thinking to install sab or nzbget on my vero but I’d like to hear from someone with real life experience first. I imagine if it has to repair something the repair process is quite stressful for this little guy. Or no ? I run a i7 extreme and it can get quite busy when repairing discussions so I really can’t imagine how it runs on a vero

Not sure. strace might show you resolver lookup issues.

Sam

It looks to be an NZGGet issue: "NZBGet" errno 2 Could not resolve hostname - Google Search