Synology Docker Unifi Controller port conflict

Get help with all aspects of SABnzbd
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.
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

I have been slowing building up my new Synology DS720+, adding a package at a time. My latest is Sabnzbd, which is fantastic thank you for the hard work.
Initially I wasn't able to install it because it used 8080 by default and my Unifi controller was setup to use 8080 already. I figured, no biggie, I will turn that docker off, install Sab, adjust the port and restart my Unifi controller (changing the Unifi controller port requires reprogramming all my WAPs).

I was successful in stopping the Unifi controller and then downloading & installing SAB.
Once installed, I was able to change the port to 8081 and reestablish the web session.
I used Network Utility -> Port Scan on my Mac to see that 8080 was now free and 8081 was in use.
However, when I went back to change the port on the Unifi docker image, it said 8080 was conflicted.
I poked around a bit and found the service-setup file as well as the sabncbd-sc files that referenced 8080. I changed each of these... still no luck.
Is there something in the Synology package itself that 'claims' port 8080?
Is there a way to adjust that?
Thanks
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Synology Docker Unifi Controller port conflict

Post by sander »

In a regular setup, you can change the port of SABnbz in the SABnzbd WebGUI: config -> General. Put it on 8100 or something like that. Then save, and restart SABnzbd

But I'm not sure if that works on Synology. Just try.
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

In a regular setup, you can change the port of SABnbz in the SABnzbd WebGUI: config -> General. Put it on 8100 or something like that. Then save, and restart SABnzbd
Yep, that is what I did (though I chose 8081). SABnzbd definitely changes ports and I confirm this both in logging in on the new port as well as port scanning from my Mac.
However, the Unifi controller still reports that 8080 is claimed and won't allow me to select that.

Is there something in the Synology package that indicates the port is used? There must be as it wouldn't install SAB with Unifi running...
Last edited by justbrowsingthanks on November 8th, 2020, 6:59 am, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Synology Docker Unifi Controller port conflict

Post by sander »

What is in a docker: Unifi, or SABnzbd?
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

What is in a docker: Unifi, or SABnzbd?
Whoops, thanks for the clarification. Unifi controller is a docker image and SABnzbd is from the Synology Community package.

What I meant to ask was, is there something in the Synology package for SABnzbd that specifies it uses 8080?

My unifi controller is a docker image and that allows me to configure the ports before it starts (it is just a real pain to do since it requires reprogramming the WAPs as well as 8080 is what they use to communicate with the controller)
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Synology Docker Unifi Controller port conflict

Post by sander »

OK, good. Focus on SABnzbd alone. Is SAB running? Can you access the SAB WebGUI? If so, on which port? If you change the port in the SAB WebGUI, save, reboot SAB ... is it on the new port?

(If not, there is some other startup parameter / script somewhere else, and we have to find that out)

FWIW copy-paste from other post "\<InstallVolume>\@appstore\sabnzbd\var\config.ini"
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

Yep, SABnzbd is accessible via the new port, 8081. As expected, the config.ini file shows:

Code: Select all

__version__ = 19
__encoding__ = utf-8
[misc]
permissions = 777
auto_browser = 0
host = 0.0.0.0
port = 8081
nice = -n15
ionice = -c2 -n4
download_dir = /volume1/video/downloads/incomplete
complete_dir = /volume1/video/downloads/complete
script_dir = /usr/local/sabnzbd/var/scripts
pre_script = None
queue_complete = ""
queue_complete_pers = 0
bandwidth_perc = 0
refresh_rate = 1
queue_limit = 20
config_lock = 0
sched_converted = 2
notified_new_skin = 0
direct_unpack_tested = 1
check_new_rel = 1
language = en
enable_https_verification = 1
https_port = ""
username = ""
password = ""
bandwidth_max = ""
...
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Synology Docker Unifi Controller port conflict

Post by sander »

So ... solved?
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

Nope... when I try to assign port 8080 in my Docker for Unifi, it says it is in use.
This is why I am scratching my head.
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

Maybe easiest to just ditch the Synology Community version of SABnzbd and opt for the Docker version where I can control the ports directly and transparently. It seems like there is some configuration w/ the Synology Community package that 'holds / reserves' 8080 even if the app doesn't eventually use it (which is also why it wouldn't let me install the package until I had turned off my Docker that was using it.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Synology Docker Unifi Controller port conflict

Post by safihre »

Yes, you cannot change the SynoCommunity package port. It is hardcoded in the package.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
justbrowsingthanks
Newbie
Newbie
Posts: 7
Joined: November 7th, 2020, 8:35 pm

Re: Synology Docker Unifi Controller port conflict

Post by justbrowsingthanks »

Yes, you cannot change the SynoCommunity package port. It is hardcoded in the package.
Thanks, that makes sense. I guess I was just surprised that it 'claimed' that port even though the underlying application wasn't using it.
Thank you
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Synology Docker Unifi Controller port conflict

Post by safihre »

That's indeed how the Synology packaging system works (not specific to SABnzbd). It's actually quite nice, because this way you can't install conflicting packages and prevents users from unexpected behavior when ports are not available after install.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
DosN
Newbie
Newbie
Posts: 2
Joined: December 7th, 2020, 12:11 am

Re: Synology Docker Unifi Controller port conflict

Post by DosN »

Hi Safihre

i had used sabnzbd on my previous NAS and access it with port 8082. and it worked perfectly( installed that in jr 2016)
But now im want to install is on my new NAS , and it would not install because port 8080 is reserved for system service or already use

I can do not know which progamm it uses , but i know according to Synology site:

The following ports cannot be used because they are reserved for system use:
20, 21, 22, 23, 25, 80, 110, 137, 138, 139, 143, 199, 443, 445, 515, 543, 548, 587, 873, 993, 995, 3306, 3689, 5000, 5001, 5005, 5006, 5335, 5432, 6881, 8080, 7000, 7001, 8081, 9997, 9998, 9999, 50001, 50002
eMule default ports: 4662 (TCP), 4672(UDP)

so my question is why is port 8080 used and not a other port, not listed above.

I do not know how to install it anymore , i checked many forums ..
DosN
Newbie
Newbie
Posts: 2
Joined: December 7th, 2020, 12:11 am

Re: Synology Docker Unifi Controller port conflict

Post by DosN »

the thinks i could try is decativete packeges . or mybe start from the beginning and try to install it first
Post Reply