Can't shutdown sabnzbd using the shutdown URL

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
Zepp
Newbie
Newbie
Posts: 5
Joined: February 4th, 2009, 1:18 pm

Can't shutdown sabnzbd using the shutdown URL

Post by Zepp »

When I go to the sabnzbd URL it claims it is initiating a shutdown but then just hangs. The log shows it has begun the shutdown process but the process never dies. Here is a copy of my sabnzbd.ini and a copy of the logs.

sabnzbd.log

Code: Select all

2009-02-04 13:11:50,995::INFO::--------------------------------
2009-02-04 13:11:50,995::INFO::SABnzbd.py-0.4.6 (rev=1888)
2009-02-04 13:11:50,996::INFO::Platform = posix
2009-02-04 13:11:50,996::INFO::Python-version = 2.6.1 (r261:67515, Dec  7 2008, 18:56:39) 
[GCC 4.3.2]
2009-02-04 13:11:50,997::INFO::[sabnzbd] Loading data for rss_data.sab from /data/usenet/cache/rss_data.sab
2009-02-04 13:11:50,999::INFO::[sabnzbd] Loading data for bytes7.sab from /data/usenet/cache/bytes7.sab
2009-02-04 13:11:50,999::INFO::[sabnzbd] Loading data for queue7.sab from /data/usenet/cache/queue7.sab
2009-02-04 13:11:51,000::INFO::[sabnzbd] Loading data for watched_data.sab from /data/usenet/cache/watched_data.sab
2009-02-04 13:11:51,000::INFO::All processes started
2009-02-04 13:11:51,001::INFO::_yenc module... NOT found!
2009-02-04 13:11:51,001::INFO::celementtree module... found!
2009-02-04 13:11:51,001::INFO::par2 binary... found (/usr/bin/par2)
2009-02-04 13:11:51,001::INFO::unrar binary... found (/usr/bin/unrar)
2009-02-04 13:11:51,001::INFO::unzip binary... found (/usr/bin/unzip)
2009-02-04 13:11:51,001::INFO::nice binary... found (/usr/bin/nice)
2009-02-04 13:11:51,001::INFO::ionice binary... found (/usr/bin/ionice)
2009-02-04 13:11:51,002::INFO::pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2009-02-04 13:11:51,002::INFO::Web dir is /opt/sabnzbd/interfaces/smpl
2009-02-04 13:11:51,003::INFO::Web dir is /opt/sabnzbd/interfaces/iphone
2009-02-04 13:11:51,020::INFO::Starting SABnzbd.py-0.4.6
2009-02-04 13:11:51,043::INFO::[nzbqueue] Saving queue
2009-02-04 13:11:51,043::INFO::[sabnzbd] Saving data for queue7.sab in /data/usenet/cache/queue7.sab
2009-02-04 13:11:51,082::INFO::[sabnzbd.misc] Dirscanner starting up
2009-02-04 13:11:51,082::INFO::[sabnzbd.misc] URLGrabber starting up
2009-02-04 13:11:51,083::INFO::Starting web-interface on 127.0.0.1:8080
2009-02-04 13:11:51,090::INFO::[sabnzbd] Saving data for bytes7.sab in /data/usenet/cache/bytes7.sab
2009-02-04 13:11:51,092::INFO::[sabnzbd] Saving data for rss_data.sab in /data/usenet/cache/rss_data.sab
2009-02-04 13:11:51,093::INFO::[sabnzbd] Saving data for watched_data.sab in /data/usenet/cache/watched_data.sab
2009-02-04 13:12:06,556::INFO::SABnzbd shutting down...
2009-02-04 13:12:06,556::INFO::[sabnzbd.misc] URLGrabber shutting down
2009-02-04 13:12:06,557::INFO::[sabnzbd] Saving data for watched_data.sab in /data/usenet/cache/watched_data.sab
2009-02-04 13:12:06,604::INFO::[sabnzbd.misc] Dirscanner shutting down
2009-02-04 13:12:07,082::INFO::[downloader] Shutting down
2009-02-04 13:12:07,083::INFO::[assembler] Shutting down
2009-02-04 13:12:07,083::INFO::[nzbqueue] Saving queue
2009-02-04 13:12:07,083::INFO::[sabnzbd] Saving data for queue7.sab in /data/usenet/cache/queue7.sab
2009-02-04 13:12:07,129::INFO::[sabnzbd] Saving data for bytes7.sab in /data/usenet/cache/bytes7.sab
2009-02-04 13:12:07,180::INFO::[sabnzbd] Saving data for rss_data.sab in /data/usenet/cache/rss_data.sab
2009-02-04 13:12:07,184::INFO::[sabnzbd] Saving data for watched_data.sab in /data/usenet/cache/watched_data.sab
2009-02-04 13:12:38,591::WARNING::[sabnzbd] Signal 15 caught, saving and exiting...
2009-02-04 13:12:38,591::INFO::[nzbqueue] Saving queue
2009-02-04 13:12:38,591::INFO::[sabnzbd] Saving data for queue7.sab in /data/usenet/cache/queue7.sab
2009-02-04 13:12:38,635::INFO::[sabnzbd] Saving data for bytes7.sab in /data/usenet/cache/bytes7.sab
2009-02-04 13:12:38,659::INFO::[sabnzbd] Saving data for rss_data.sab in /data/usenet/cache/rss_data.sab
2009-02-04 13:12:38,659::INFO::[sabnzbd] Saving data for watched_data.sab in /data/usenet/cache/watched_data.sab
cherrypy.log

Code: Select all

04/Feb/2009:13:11:51 CONFIG INFO Server parameters:
04/Feb/2009:13:11:51 CONFIG INFO   server.environment: production
04/Feb/2009:13:11:51 CONFIG INFO   server.log_to_screen: False
04/Feb/2009:13:11:51 CONFIG INFO   server.log_file: /opt/sabnzbd/logs/cherrypy.log
04/Feb/2009:13:11:51 CONFIG INFO   server.log_tracebacks: True
04/Feb/2009:13:11:51 CONFIG INFO   server.log_request_headers: False
04/Feb/2009:13:11:51 CONFIG INFO   server.protocol_version: HTTP/1.0
04/Feb/2009:13:11:51 CONFIG INFO   server.socket_host: 127.0.0.1
04/Feb/2009:13:11:51 CONFIG INFO   server.socket_port: 8080
04/Feb/2009:13:11:51 CONFIG INFO   server.socket_file: 
04/Feb/2009:13:11:51 CONFIG INFO   server.reverse_dns: False
04/Feb/2009:13:11:51 CONFIG INFO   server.socket_queue_size: 5
04/Feb/2009:13:11:51 CONFIG INFO   server.thread_pool: 10
04/Feb/2009:13:11:51 HTTP INFO Serving HTTP on http://127.0.0.1:8080/
sabnzbd.ini

Code: Select all

__version__ = 18
[misc]
log_dir = logs
auto_browser = 0
permissions = ""
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 = /data/usenet/incomplete
download_free = 0
complete_dir = /data/usenet/complete
script_dir = ""
nzb_backup_dir = ""
cache_dir = /data/usenet/cache
dirscan_dir = /data/usenet/dirscan
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 = 127.0.0.1
port = 8080
web_dir = smpl
web_dir2 = iphone
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]
[[my.news.host:119]]
host = my.news.host
port = 119
username = user
password = password
timeout = 120
connections = 10
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
Last edited by Zepp on February 4th, 2009, 1:32 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Can't shutdown sabnzbd using the shutdown URL

Post by switch »

We don't support python 2.6. Try with python 2.5 instead.
Zepp
Newbie
Newbie
Posts: 5
Joined: February 4th, 2009, 1:18 pm

Re: Can't shutdown sabnzbd using the shutdown URL

Post by Zepp »

switch wrote: We don't support python 2.6. Try with python 2.5 instead.
I'm curious, does the current svn branch support python 2.6? I only ask because I asked about this to someone using the svn package for my distribution and he wasn't having the same issues.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Can't shutdown sabnzbd using the shutdown URL

Post by switch »

Not sure, it hasn't been fully tested with python 2.6. I'm not sure what the exact issue is. If it is a cherrypy problem (the webserver) then it might be fixed as we use a different version.
Zepp
Newbie
Newbie
Posts: 5
Joined: February 4th, 2009, 1:18 pm

Re: Can't shutdown sabnzbd using the shutdown URL

Post by Zepp »

switch wrote: Not sure, it hasn't been fully tested with python 2.6. I'm not sure what the exact issue is. If it is a cherrypy problem (the webserver) then it might be fixed as we use a different version.
hmm ok. Thanks for your help.
Post Reply