Page 1 of 2
"External internet access denied" error
Posted: April 29th, 2024, 1:16 am
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
Re: Access denied error
Posted: April 29th, 2024, 1:40 am
by sander
what URL do you use to access SABnzbd?
Re: Access denied error
Posted: April 29th, 2024, 1:55 am
by dev2024
Hi I DM'd you the IP. Thank you
Re: Access denied error
Posted: April 29th, 2024, 2:26 am
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... ?
Re: Access denied error
Posted: April 29th, 2024, 2:35 am
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?
Re: Access denied error
Posted: April 29th, 2024, 3:29 am
by sander
Even then, accessing via 192.168.... should be doable, AFAIK.
Re: Access denied error
Posted: April 29th, 2024, 3:53 am
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?
Re: Access denied error
Posted: April 29th, 2024, 11:15 pm
by dev2024
Hello. can anyone assist please? I'm not sure why it's still not publicly accessible. How can I troubleshoot form here?
Re: Access denied error
Posted: April 30th, 2024, 12:03 am
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.
Re: Access denied error
Posted: April 30th, 2024, 12:39 am
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
Re: Access denied error
Posted: April 30th, 2024, 12:58 am
by OneCD
What are your local ranges set-to?
Code: Select all
grep local /var/snap/sabnzbd/common/sabnzbd.ini
Re: Access denied error
Posted: April 30th, 2024, 2:33 am
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 = ,
Re: "External internet access denied" error
Posted: April 30th, 2024, 2:57 am
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)
Re: "External internet access denied" error
Posted: April 30th, 2024, 3:11 am
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
Re: "External internet access denied" error
Posted: April 30th, 2024, 3:54 am
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.