Page 1 of 1
SABnzbd needs a free tcp/ip port for its internal web server
Posted: June 27th, 2012, 12:49 am
by joelpapak
Version: 0.7.0
OS: Mac OS X 10.7.4
Install-type: Mac OS X Universal Binary
Skin (if applicable): Default
Firewall Software: None
Are you using IPV6? no - at least I don't think so
Is the issue reproducible? yes
I installed SABnzbd on my Mac for the first time tonight. Everything worked fine until I tried to enable HHTPS and entered 443 as my new secure port. (Previously I think it had been 8080.)
Now whenever I try to run SABnzbd I get the following error message:
SABnzbd.py 0.7.0
SABnzbd needs a free tcp/ip port for its internal web server.
Port 443 on localhost was tried , but it is not available.
Some other software uses the port or SABnzbd is already running.
Please restart SABnzbd with a different port number.
Open a Terminal window and type the line (example):
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --server localhost:444
If you get this error message again, please try a different number.
Program did not start!
I have tried running the Terminal program and manually entering a variety of different ports (e.g. 444, 8080, 9090, 119, 1) all to no avail. How should I fix this problem or get SABnzbd to open so I can change the settings to how they were originally? I have tried restarting and reinstalling several times.
Thanks!
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 1:31 am
by sander
Cause of the problem: ports below 1024 need root/admin rights.
Solution:
SAB on MAC has some way to safely start it. Can you find that option?
If not: choose a port number above 1024, so:
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --server localhost:8080
If not: find the file sabnzbd.ini (see
http://wiki.sabnzbd.org/faq#toc18 for location), and edit it: replace the 443 with 8080 or something like that.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 8:33 am
by joelpapak
SAB on MAC has some way to safely start it. Can you find that option?
No, I can't find anything in this forum on how to start SAB in safe mode on a Mac, only for a PC.
If not: choose a port number above 1024, so:
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --server localhost:8080
Tried this, still get the same error message in FIrefox as in my original post and this response in Terminal:
Joel-Papaks-iMac:~ joelpapak$ /Applications/SABnzbd.app/Contents/MacOS/SABnzbd --server localhost:8080
INFO:root:Console logging for OSX App disabled
2012-06-27 06:22:32,982::INFO::[SABnzbd:1241] Console logging for OSX App disabled
If not: find the file sabnzbd.ini (see http://wiki.sabnzbd.org/faq#toc18 for location), and edit it: replace the 443 with 8080 or something like that.
There is no folder named SABnzbd in the location ~/Library/Application Support/ and when I search for sabnzbd.ini in Finder I get no results.
Thanks again for your help.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 8:50 am
by sander
Well, then I'm out of ideas. Sorry.
Oh, wait: Open a terminal, and type:
Code: Select all
sudo find / -name sabnzbd.ini -print
Example:
Code: Select all
Sander--Mac-mini:~ sander$ sudo find / -name sabnzbd.ini -print
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Users/sander/Library/Application Support/SABnzbd/sabnzbd.ini
Sander--Mac-mini:~ sander$
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 9:02 am
by shypike
SABnzbd on OSX has an icon in the top menu bar.
It has the entry Troubleshoot-->Restart - 127.0.0.1
Try that.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 9:11 am
by joelpapak
locate sabnzbd.ini
I still don't find any results for this after building the database in Terminal.
I also changed my settings to show all files in Finder:
defaults write com.apple.Finder AppleShowAllFiles YES
but still don't have a SABnzbd folder in ~/Library/Application Support/
SABnzbd on OSX has an icon in the top menu bar.
It has the entry Troubleshoot-->Restart - 127.0.0.1
Because I can't get SABnzbd to start at all now without the error message in my original post I also can't get it to show an icon on the top menu bar.
Any other ideas? I wish I could just start over from scratch as the initial setup went so smoothly.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 9:29 am
by sander
See my edited post with the "sudo find ...". That should show the location of sabnzbd.ini.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 12:25 pm
by shypike
Downgrade to release 0.6.15 and wait for 0.7.1
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 3:49 pm
by joelpapak
See my edited post with the "sudo find ...". That should show the location of sabnzbd.ini.
With the updated instructions I was able to find the .ini file, delete it and reinstall. Everything is working fine now. Thanks so much for the help!
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 3:53 pm
by sander
joelpapak wrote:See my edited post with the "sudo find ...". That should show the location of sabnzbd.ini.
With the updated instructions I was able to find the .ini file, delete it and reinstall. Everything is working fine now. Thanks so much for the help!
OK, cool. Can you tell us where your sabnzbd.ini was?
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 4:05 pm
by joelpapak
The .ini file was located here:
/Users/joelpapak/Library/Application Support/SABnzbd/sabnzbd.ini
I had previously been looking in the wrong location after reading the FAQ (
http://wiki.sabnzbd.org/faq#toc18) which said that in OSX the location of the .ini file is:
~/Library/Application Support/SABnzbd/sabnzbd.ini
Maybe this could be updated to say:
/Users/%userprofile%/Library/Application Support/SABnzbd/sabnzbd.ini
for those of us who need things to be spelled out in even more detail. (I was confused because Library/Application Support/ also exists without a SABnzbd folder.)
I also made all files visible in Finder with this command in Terminal:
defaults write com.apple.Finder AppleShowAllFiles YES
I wasn't able to make the correct edits to the .ini file so I just deleted it and reinstalled and now everything is once again working smoothly.
Thanks for the quick and helpful support!
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: June 27th, 2012, 4:31 pm
by shypike
~/Library/Application Support/SABnzbd/sabnzbd.ini
The above notation is correct. ~ is shorthand in Terminal for $HOME
What you suggested is Windows speak and is not going to work for OSX.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: March 20th, 2015, 8:57 am
by Lancia
I am having the identical problem on Yosemite. I have tried all of the commands shown above but still cannot find the .ini file in Finder. I can see its location in terminal when I enter the following sudo find / -name sabnzbd.ini -print, but when I attempt to go to the location in Finder by the Go to Folder command, no such file exists. As such, I am unable to successfully launch the program. Appreciate any insight or additional tips. Thank you.
Re: SABnzbd needs a free tcp/ip port for its internal web se
Posted: March 20th, 2015, 10:28 am
by shypike
Lancia wrote:I am having the identical problem on Yosemite. I have tried all of the commands shown above but still cannot find the .ini file in Finder. I can see its location in terminal when I enter the following sudo find / -name sabnzbd.ini -print, but when I attempt to go to the location in Finder by the Go to Folder command, no such file exists. As such, I am unable to successfully launch the program. Appreciate any insight or additional tips. Thank you.
Finder doesn't show "special" folders.
This article may help you access them anyway:
http://ianlunn.co.uk/articles/quickly-s ... mavericks/
The alternative is to open a Terminal window and type:
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --server HOST:PORT
Where HOST is your choice of IP-address and PORT is the port number.