"External internet access denied" error

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

"External internet access denied" error

Post by dev2024 »

Hi

I'm testing some automation so crated a fresh VM - ubuntu 22.04 and followed the installation guide. It got installed but when I access the url using the server IP, I'm getting -

External internet access denied - and then the link here

I already updated the .ini file and restarted the services -

root@testbed:~/.sabnzbd# cat /root/.sabnzbd/sabnzbd.ini | grep inet_exposure
inet_exposure = 4

I also tried inet_exposure = 5. What else could be the issue?

root@testbed:~/.sabnzbd# sudo ps -ef | grep -i sabnzbd
sab 3059 1 0 06:08 ? 00:00:00 /usr/bin/python3 -OO /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --server xxxxxxxxxx:8080
root 3160 2617 0 06:14 pts/1 00:00:00 grep --color=auto -i sabnzbd
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: Access denied error

Post by sander »

what URL do you use to access SABnzbd?
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

Hi I DM'd you the IP. Thank you
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: Access denied error

Post by sander »

OK, a real public IP address.

Indeed with "inet_exposure = 4" it should work. The question is: is SAB really using that sabnzbd.ini with its settings?

If you go into the VM, and start a browser there, and go into sabnzbd (http://127.0.0.1:8080, can you check
Config:
Config File: what is used
External internet access: what does it say?


Can you try to access SABnzbd via a local address, like 192.168... ?
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

sander wrote: April 29th, 2024, 2:26 am OK, a real public IP address.

Indeed with "inet_exposure = 4" it should work. The question is: is SAB really using that sabnzbd.ini with its settings?

If you go into the VM, and start a browser there, and go into sabnzbd (http://127.0.0.1:8080, can you check
Config:
Config File: what is used
External internet access: what does it say?


Can you try to access SABnzbd via a local address, like 192.168... ?
Hm it's a linux VM without desktop GUI. Can I test this by running some SSH commands?
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: Access denied error

Post by sander »

Even then, accessing via 192.168.... should be doable, AFAIK.
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

sander wrote: April 29th, 2024, 3:29 am Even then, accessing via 192.168.... should be doable, AFAIK.
I wont be able to run that on my browser. Or I'm nt understanding the question. Is there any other way for me to check if SAB is calling that particular .ini file?
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

Hello. can anyone assist please? I'm not sure why it's still not publicly accessible. How can I troubleshoot form here?
User avatar
OneCD
Hero Member
Hero Member
Posts: 565
Joined: March 4th, 2017, 3:47 pm

Re: Access denied error

Post by OneCD »

Run this on the server:

Code: Select all

curl -sL http://127.0.0.1:8080/sabnzbd/config | grep -iA1 'config file'
... adjusting the port number if-required.

This is a simple loopback query. It will show you the location SABnzbd is using for its config file.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

OneCD wrote: April 30th, 2024, 12:03 am Run this on the server:

Code: Select all

curl -sL http://127.0.0.1:8080/sabnzbd/config | grep -iA1 'config file'
... adjusting the port number if-required.

This is a simple loopback query. It will show you the location SABnzbd is using for its config file.
Yesterday I tried the snap method -

root@testbed:~# curl -sL http://127.0.0.1:8080/sabnzbd/config | grep -iA1 'config file'
<th scope="row">Config File: </th>
<td>/var/snap/sabnzbd/common/sabnzbd.ini</td>
root@testbed:~#
root@testbed:~# cat /var/snap/sabnzbd/common/sabnzbd.ini | grep inet_exposure
inet_exposure = 4
root@testbed:~#
root@testbed:~#

I even checked /etc/default/sabnzbdplus and configured the server IP, user, port there.. still not working

The weird part is, I have another dedicated server, tried https://sabnzbd.org/wiki/installation/i ... buntu-repo method it didnt work. So tried snap method and also replicated the same issue -

root@server /proc/driver # cat /var/snap/sabnzbd/common/sabnzbd.ini | grep inet_exposure
inet_exposure = 5
root@server /proc/driver #

What is that I'm doing wrong? I'm sure installing sabnzb n a plain vanilla install shouldn't be this difficult? I allowed the port in ufw and restarted the services.. not sure why I'm still getting External internet access denied - https://sabnzbd.org/access-denied
User avatar
OneCD
Hero Member
Hero Member
Posts: 565
Joined: March 4th, 2017, 3:47 pm

Re: Access denied error

Post by OneCD »

What are your local ranges set-to?

Code: Select all

grep local /var/snap/sabnzbd/common/sabnzbd.ini
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: Access denied error

Post by dev2024 »

OneCD wrote: April 30th, 2024, 12:58 am What are your local ranges set-to?

Code: Select all

grep local /var/snap/sabnzbd/common/sabnzbd.ini
On both servers, it's showing like this -

root@server ~ # grep local /var/snap/sabnzbd/common/sabnzbd.ini
local_ranges = ,
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: "External internet access denied" error

Post by sander »

I would do: back to a fresh config.

1. make sure sabnzbd is not running in any form. Check and recheck!
2. start sabnzbdplus like this:

Code: Select all

cd
sabnzbdplus -s 0.0.0.0:8080 -b0 -l2  --inet_exposure 4 -f blabla$$.ini
3. you should all kind of output. If you do NOT see output, there is still a SAB running, so go back to 1
4. can you access SABnzbd via the usual URL? If so: do you get the SAB wizard (you should)
dev2024
Newbie
Newbie
Posts: 12
Joined: April 29th, 2024, 1:09 am

Re: "External internet access denied" error

Post by dev2024 »

I stopped the services, killed the running processes, but when i run that command nothing happens -

sabnzbdplus -s 0.0.0.0:8080 -b0 -l2 --inet_exposure 4 -f blabla$$.ini

even after killing these processes are still running -

root@server ~ # ps -aux | grep sab
root 36453 0.0 0.0 2628 596 ? Ss 10:08 0:00 /bin/sh /snap/sabnzbd/5972/bin/sabnzbd-wrapper
root 36481 3.8 0.1 1471480 61284 ? Sl 10:08 0:00 python3 /snap/sabnzbd/5972/opt/sabnzbd/SABnzbd.py -f /var/snap/sabnzbd/common
root 36509 0.0 0.0 6480 2332 pts/0 S+ 10:08 0:00 grep --color=auto sab
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: "External internet access denied" error

Post by sander »

Yep: the snap is still running, and probably restarting after you kill.

Google-hit:

sudo snap disable vlc

so

sudo snap disable sabnzbd
or
sudo snap disable sabnzbdplus

then verify again.

And if that fails: uninstall the sabnzbd snap, reboot, and verify again.
Post Reply