Can't access Default apache web

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.
Post Reply
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

Can't access Default apache web

Post by acetone802000 »

I have an problem. i want to access to sabnzbd with an remote computer.

When i start SABnzbd with the sh file in /etc/init.d with the command "./SABnzbd.sh start" all is OK.

I want to make an automatic launch.

i tried  "update-rc.d -f SABnzbd.sh defaults" for an automatic launch, but after reboot  i can't access to my default web apache, for eg. http://192.168.1.20/, i have an error message (site not responding)
But i can access to SABnzbd !!!!

Have you any idea ?

Thank's for your replys ;)

My SABnzbd.sh file:
#! /bin/sh

case "$1" in
start)
  echo "Starting SABnzbd."
  /usr/bin/sudo -u downloads -H /etc/SABnzbd/SABnzbd.py -d -f /home/downloads/.sabnzbd/sabnzbd.ini
;;
stop)
  echo "Shutting down SABnzbd."
  /usr/bin/wget -q --delete-after "http://0.0.0.0:9090/sabnzbd/api?mode=shutdown"
;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac

exit 0

My ini file
__version__ = 18
[misc]
log_dir = logs
auto_browser = 0
permissions = ""
api_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <= modified
check_new_rel = 1
replace_spaces = 0
replace_illegal = 1
fail_on_crc = 0
enable_filejoin = 0
enable_unzip = 1
enable_unrar = 1
auto_disconnect = 1
enable_par_cleanup = 1
par_option = ""
no_dupes = 0
config_lock = 0
safe_postproc = 0
pause_on_post_processing = 0
cleanup_list = ""
ignore_samples = 0
send_group = 0
download_dir = home/downloads/incomplete
download_free = 0
complete_dir = /home/downloads/complete
script_dir = ""
nzb_backup_dir = ""
cache_dir = cache
dirscan_dir = ""
dirscan_speed = 5
refresh_rate = 0
rss_rate = 60
bandwith_limit = 0
cache_limit = 0
email_server = ""
email_to = ""
email_from = ""
email_account = ""
email_pwd = ""
email_endjob = 0
email_full = 0
schedlines = ,
dirscan_opts = 3
dirscan_script = ""
top_only = 1
auto_sort = 0
enable_tv_sorting = 0
tv_sort_string = ""
ionice = ""
web_color = ""
web_color2 = ""
host = 0.0.0.0
port = 9090
web_dir = Default
web_dir2 = ""
username = ""
password = ""
[logging]
enable_cherrypy_logging = 1
log_level = 1
max_log_size = 5M
log_backups = 5
[newzbin]
username = ""
password = ""
bookmarks = 0
unbookmark = 0
bookmark_rate = 60
[servers]
[[news.free.fr:119]]
host = news.xxxxx
port = 119
username = ""
password = ""
timeout = 120
connections = 4
fillserver = 0
ssl = 0

[rss]
[categories]
[[unknown]]
newzbin = Unknown
dir = Unknown
[[anime]]
newzbin = Anime
dir = Anime
[[apps]]
newzbin = Apps
dir = Apps
[[books]]
newzbin = Books
dir = Books
[[consoles]]
newzbin = Consoles
dir = Consoles
[[emulation]]
newzbin = Emulation
dir = Emulation
[[games]]
newzbin = Games
dir = Games
[[misc]]
newzbin = Misc
dir = Misc
[[movies]]
newzbin = Movies
dir = Movies
[[music]]
newzbin = Music
dir = Music
[[pda]]
newzbin = PDA
dir = PDA
[[resources]]
newzbin = Resources
dir = Resources
[[tv]]
newzbin = TV
dir = TV
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

Re: Can't access Default apache web

Post by acetone802000 »

Nobody have an idea ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't access Default apache web

Post by shypike »

Code: Select all

http://0.0.0.0:9090/sabnzbd/api?mode=shutdown
Is not a correct address, it should be:

Code: Select all

http://localhost:9090/sabnzbd/api?mode=shutdown
or

Code: Select all

http://YOUR-IP-ADDRESS:9090/sabnzbd/api?mode=shutdown
The 0.0.0.0 part is not a true address, just a clue for SABnzbd to listen on all available IP addresses.

Also, since you are using release 0.4.9, you need to add the session/api key:

Code: Select all

http://localhost:9090/sabnzbd/api?mode=shutdown?session=xxxxxxxxxxxxxxxxxx
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: Can't access Default apache web

Post by rAf »

typo error, should be :

Code: Select all

http://localhost:9090/sabnzbd/api?mode=shutdown&session=xxxxxxxxxxxxxxxxxx
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

Re: Can't access Default apache web

Post by acetone802000 »

Thank's it works great !
goudkamp
Newbie
Newbie
Posts: 2
Joined: September 14th, 2010, 10:52 am

Re: Can't access Default apache web

Post by goudkamp »

With 0.5.6 I had to use

Code: Select all

http://192.168.0.128:8888/api?mode=shutdown&apikey=xxxxxxxxxxxxx
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't access Default apache web

Post by shypike »

Both should work.
Post Reply