ChannelFailures: IOError(13, 'Permission denied')

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
seanvree81
Newbie
Newbie
Posts: 49
Joined: February 25th, 2016, 9:55 pm

ChannelFailures: IOError(13, 'Permission denied')

Post by seanvree81 »

I hate to revive this issue, but I'm having a similar issue

Windows 10E
Sab running as a SYSTEM service (however, have tried local admin accnt.

Version: 2.0.0RC2 [afd1b19]
Uptime: 11m
Config File: c:\sabnzbd\sabnzbd.ini
Used cache: Cached 0 articles (0 B)
Parameters:
Python Version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] [cp1252]
OpenSSL: OpenSSL 1.0.2j 26 Sep 2016 [TLS v1.2, TLS v1.1, TLS v1, SSL v3]

C:\Program Files\SABnzbd\SABnzbd-service.exe
C:\Sabnzbd\sabnzbd.ini
C:\Sabnzbd\Admin\server.key
C:\Sabnzbd\Admin\server.cert

Been running fine for a year. Renewed my certs, didn't change ANYTHING else.

now I'm getting this error:

Code: Select all

2017-03-31 11:34:03,496::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE Bus STOPPING
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((u'192.168.1.20', 38080)) shut down
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE HTTP Server None already shut down
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE Stopped thread '_TimeoutMonitor'.
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE Bus STOPPED
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE Bus EXITING
2017-03-31 11:34:03,601::INFO::[_cplogging:219] [31/Mar/2017:11:34:03] ENGINE Bus EXITED
2017-03-31 11:34:07,344::INFO::[SABnzbd:1162] --------------------------------
2017-03-31 11:34:07,344::INFO::[SABnzbd:1163] SABnzbd-service.exe-2.0.0RC2 (rev=afd1b1968ce26ef64dfe63f1d1208efdd83d1872)
2017-03-31 11:34:07,344::INFO::[SABnzbd:1164] Full executable path = C:\Program Files\SABnzbd\SABnzbd-service.exe
2017-03-31 11:34:07,345::INFO::[SABnzbd:1172] Platform=Windows-10-10.0.14393 (=Vista+ x64) Class=nt
2017-03-31 11:34:07,345::INFO::[SABnzbd:1177] Python-version = 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
2017-03-31 11:34:07,345::INFO::[SABnzbd:1178] Arguments = 
2017-03-31 11:34:07,345::INFO::[SABnzbd:1183] Preferred encoding = cp1252
2017-03-31 11:34:07,345::INFO::[SABnzbd:1224] Read INI file c:\sabnzbd\sabnzbd.ini
2017-03-31 11:34:07,346::INFO::[__init__:995] Loading data for rss_data.sab from c:\sabnzbd\admin\rss_data.sab
2017-03-31 11:34:07,346::INFO::[__init__:995] Loading data for totals10.sab from c:\sabnzbd\admin\totals10.sab
2017-03-31 11:34:07,348::INFO::[postproc:93] Loading postproc queue
2017-03-31 11:34:07,348::INFO::[__init__:995] Loading data for postproc2.sab from c:\sabnzbd\admin\postproc2.sab
2017-03-31 11:34:07,348::INFO::[__init__:995] Loading data for queue10.sab from c:\sabnzbd\admin\queue10.sab
2017-03-31 11:34:07,348::INFO::[__init__:995] Loading data for watched_data2.sab from c:\sabnzbd\admin\watched_data2.sab
2017-03-31 11:34:07,348::INFO::[__init__:995] Loading data for Rating.sab from c:\sabnzbd\admin\Rating.sab
2017-03-31 11:34:07,349::INFO::[__init__:998] c:\sabnzbd\admin\Rating.sab missing
2017-03-31 11:34:07,349::INFO::[scheduler:197] Setting schedule for midnight BPS reset
2017-03-31 11:34:07,349::INFO::[__init__:351] All processes started
2017-03-31 11:34:07,349::INFO::[SABnzbd:286] Web dir is C:\Program Files\SABnzbd\interfaces\Glitter
2017-03-31 11:34:07,351::INFO::[SABnzbd:286] Web dir is C:\Program Files\SABnzbd\interfaces\Config
2017-03-31 11:34:07,362::INFO::[SABnzbd:409] SABYenc module (v2.8.0)... found!
2017-03-31 11:34:07,362::INFO::[SABnzbd:419] Cryptography module (v1.8.1)... found!
2017-03-31 11:34:07,362::INFO::[SABnzbd:424] par2 binary... found (C:\Program Files\SABnzbd\win\par2\x64\par2.exe)
2017-03-31 11:34:07,364::INFO::[SABnzbd:429] par2cmdline binary... found (C:\Program Files\SABnzbd\win\par2\par2cmdline.exe)
2017-03-31 11:34:07,364::INFO::[SABnzbd:432] UNRAR binary... found (C:\Program Files\SABnzbd\win\unrar\x64\UnRAR.exe)
2017-03-31 11:34:07,364::INFO::[SABnzbd:445] unzip binary... found (C:\Program Files\SABnzbd\win\unzip\unzip.exe)
2017-03-31 11:34:07,364::INFO::[SABnzbd:450] 7za binary... found (C:\Program Files\SABnzbd\win\7zip\7za.exe)
2017-03-31 11:34:07,364::INFO::[SABnzbd:1269] SSL version OpenSSL 1.0.2j  26 Sep 2016
2017-03-31 11:34:07,364::INFO::[SABnzbd:1270] SSL supported protocols ['TLS v1.2', 'TLS v1.1', 'TLS v1', 'SSL v3']
2017-03-31 11:34:07,365::INFO::[SABnzbd:1385] Starting web-interface on 192.168.1.20:38090
2017-03-31 11:34:07,365::INFO::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Bus STARTING
2017-03-31 11:34:07,365::INFO::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Started monitor thread '_TimeoutMonitor'.
2017-03-31 11:34:07,756::ERROR::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x0000000001D77320>>
Traceback (most recent call last):
  File "cherrypy\process\wspbus.pyo", line 207, in publish
  File "cherrypy\_cpserver.pyo", line 167, in start
  File "cherrypy\_cpserver.pyo", line 158, in httpserver_from_self
  File "cherrypy\_cpwsgi_server.pyo", line 64, in __init__
  File "cherrypy\wsgiserver\ssl_builtin.pyo", line 56, in __init__
IOError: [Errno 13] Permission denied

2017-03-31 11:34:07,957::INFO::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Serving on http://192.168.1.20:38080
2017-03-31 11:34:07,957::ERROR::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "cherrypy\process\wspbus.pyo", line 245, in start
  File "cherrypy\process\wspbus.pyo", line 225, in publish
ChannelFailures: IOError(13, 'Permission denied')

2017-03-31 11:34:07,957::INFO::[_cplogging:219] [31/Mar/2017:11:34:07] ENGINE Bus STOPPING
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((u'192.168.1.20', 38080)) shut down
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE HTTP Server None already shut down
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE Stopped thread '_TimeoutMonitor'.
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE Bus STOPPED
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE Bus EXITING
2017-03-31 11:34:08,061::INFO::[_cplogging:219] [31/Mar/2017:11:34:08] ENGINE Bus EXITED

If I remove the cert line from the ini then it starts without problems with NO SSL.

Chatted with the guys on the live chat for 3+ hours, they are stumped as well.


INI FIle:

[misc]
win_menu = 1
queue_complete = ""
https_port = 38090
replace_spaces = 0
allow_64bit_tools = 1
local_range = ""
password_file = ""
movie_rename_limit = 100M
ionice = ""
https_key = server.key
cleanup_list = exe,
rating_filter_enable = 0
cache_limit = 250
rating_enable = 1
ignore_unrar_dates = 0
par_option = ""
web_color = Night
enable_recursive = 1
pre_check = 0
folder_rename = 1
web_color2 = black
dirscan_speed = 3
enable_filejoin = 1
create_group_folders = 0
api_key = OMIT
rating_feedback = 1
no_penalties = 0
randomize_server_ip = 0
rating_filter_abort_video = 0
osx_speed = 1
bandwidth_limit = 0
dirscan_dir = C:\Media\PlexDownloads\Incomplete\NZBs
disable_api_key = 0
quota_period = m
email_to = ,
rating_filter_pause_audio = 0
rss_filenames = 0
password = vreedogg
permissions = ""
quota_day = ""
auto_disconnect = 1
use_pickle = 0
https_chain = ""
warn_empty_nzb = 1
history_limit = 10
rating_filter_pause_encrypted_confirm = 0
replace_dots = 0
movie_sort_extra = ""
quota_size = ""
rss_rate = 60
enable_unzip = 1
download_free = 100mb
port = 38080
enable_movie_sorting = 0
wait_ext_drive = 5
pre_script = None
ipv6_servers = 1
enable_date_sorting = 0
email_full = 0
log_dir = logs
rating_filter_pause_encrypted = 0
admin_dir = admin
nzb_backup_dir = C:\Media\PlexDownloads\NZBs
tv_sort_countries = 1
date_categories = tv
ssl_type = v23
show_sysload = 2
sfv_check = 1
date_sort_string = ""
schedlines = ,
host = 192.168.1.20
https_cert = server.cert
email_rss = 0
sanitize_safe = 0
req_completion_rate = 100.2
rating_filter_abort_encrypted_confirm = 0
movie_sort_string = %title (%y).%ext
rating_filter_pause_spam_confirm = 0
fsys_type = 0
pause_on_post_processing = 0
allow_incomplete_nzb = 0
rating_filter_abort_keywords = ""
uniconfig = 1
enable_unrar = 1
enable_meta = 1
ignore_samples = 1
email_account = ""
email_server = ""
allow_streaming = 1
config_lock = 0
quota_resume = 1
api_warnings = 1
rating_api_key = ab00y7qye6u84lx4eqhwd0yh1wp423
wait_for_dfolder = 0
tv_sort_string = %sn/Season %s/%sn - S%0sE%0e - %en.%ext
rating_filter_abort_encrypted = 0
nzb_key = 5f16bb770659342f13622cf642050134
rating_filter_pause_keywords = ""
warn_dupl_jobs = 1
fail_hopeless = 1
rating_filter_abort_spam_confirm = 0
unpack_check = 1
no_ipv6 = 0
rating_filter_abort_downvoted = 0
download_dir = C:\Media\PlexDownloads\Incomplete\NZBs
size_limit = 0
enable_par_cleanup = 1
safe_postproc = 1
language = en
new_nzb_on_failure = 1
cache_dir = cache
complete_dir = C:\Media\PlexDownloads
rating_filter_pause_downvoted = 0
replace_illegal = 1
rating_filter_abort_audio = 0
nomedia_marker = ""
max_art_opt = 0
par2_multicore = 1
warned_old_queue = 0
enable_tsjoin = 1
check_new_rel = 1
enable_https = 1
username = ""
never_repair = 0
no_dupes = 3
keep_awake = 1
top_only = 0
quick_check = 1
auto_browser = 0
email_from = ""
unwanted_extensions = exe, com, bat
max_art_tries = 3
osx_menu = 1
movie_extra_folder = 1
email_endjob = 0
tv_categories = tv,
rss_odd_titles = nzbindex.nl/, nzbindex.com/, nzbclub.com/
pause_on_pwrar = 2
login_realm = SABnzbd
rating_filter_pause_spam = 0
send_group = 0
refresh_rate = 1
prio_sort_list = ,
movie_categories = movies,
script_dir = c:\sickbeard_mp4_automator
email_pwd = ""
empty_postproc = 0
ignore_wrong_unrar = 0
nice = ""
rating_host = http://192.168.1.20:5075/nzbhydra/
email_dir = ""
rating_filter_pause_video = 0
web_dir2 = smpl
web_dir = Glitter
web_watchdog = 0
action_on_unwanted_extensions = 2
fail_on_crc = 1
flat_unpack = 0
auto_sort = 0
ampm = 0
rating_filter_abort_spam = 0
start_paused = 0
overwrite_files = 1
queue_complete_pers = 0
enable_tv_sorting = 0
folder_max_length = 128
notified_new_skin = 2
inet_exposure = 4
selftest_host = self-test.sabnzbd.org
load_balancing = 1
enable_7zip = 1
warned_old_queue9 = 1
enable_https_verification = 0
ipv6_hosting = 1
enable_bonjour = 1
enable_all_par = 1
queue_limit = 20
no_series_dupes = 0
bandwidth_max = 20M
local_ranges = 192.168.1.,
backup_for_duplicates = 1
sched_converted = 2
script_can_fail = 0
bandwidth_perc = 40
api_logging = 1
allow_duplicate_files = 0
html_login = 1
fixed_ports = 0
prospective_par_download = 1
propagation_delay = 0
fail_hopeless_jobs = 1
ssl_ciphers = RC4-MD5
quick_check_ext_ignore = nfo, sfv, srr
nr_decoders = 2
seanvree81
Newbie
Newbie
Posts: 49
Joined: February 25th, 2016, 9:55 pm

Re: Trying to use letsencrypt, having write error

Post by seanvree81 »

I"m also getting this error when I try to create self certs thru the sabnzbd webui:

2017-03-31 12:23:09,302::INFO::[__init__:351] All processes started
2017-03-31 12:23:09,302::INFO::[SABnzbd:286] Web dir is C:\Program Files\SABnzbd\interfaces\Glitter
2017-03-31 12:23:09,302::INFO::[SABnzbd:286] Web dir is C:\Program Files\SABnzbd\interfaces\Config
2017-03-31 12:23:09,319::INFO::[SABnzbd:409] SABYenc module (v2.8.0)... found!
2017-03-31 12:23:09,319::INFO::[SABnzbd:419] Cryptography module (v1.8.1)... found!
2017-03-31 12:23:09,319::INFO::[SABnzbd:424] par2 binary... found (C:\Program Files\SABnzbd\win\par2\x64\par2.exe)
2017-03-31 12:23:09,319::INFO::[SABnzbd:429] par2cmdline binary... found (C:\Program Files\SABnzbd\win\par2\par2cmdline.exe)
2017-03-31 12:23:09,319::INFO::[SABnzbd:432] UNRAR binary... found (C:\Program Files\SABnzbd\win\unrar\x64\UnRAR.exe)
2017-03-31 12:23:09,319::INFO::[SABnzbd:445] unzip binary... found (C:\Program Files\SABnzbd\win\unzip\unzip.exe)
2017-03-31 12:23:09,319::INFO::[SABnzbd:450] 7za binary... found (C:\Program Files\SABnzbd\win\7zip\7za.exe)
2017-03-31 12:23:09,319::INFO::[SABnzbd:1269] SSL version OpenSSL 1.0.2j 26 Sep 2016
2017-03-31 12:23:09,319::INFO::[SABnzbd:1270] SSL supported protocols ['TLS v1.2', 'TLS v1.1', 'TLS v1', 'SSL v3']
2017-03-31 12:23:09,433::ERROR::[misc:1237] Error creating SSL key and certificate
2017-03-31 12:23:09,433::INFO::[misc:1238] Traceback:
Traceback (most recent call last):
File "sabnzbd\misc.pyo", line 1233, in create_https_certificates
File "sabnzbd\utils\certgen.pyo", line 42, in generate_key
IOError: [Errno 22] invalid mode ('wb') or filename: ''
2017-03-31 12:23:09,433::WARNING::[SABnzbd:1284] Disabled HTTPS because of missing CERT and KEY files
2017-03-31 12:23:09,434::INFO::[SABnzbd:1385] Starting web-interface on 192.168.1.20:38080
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: ChannelFailures: IOError(13, 'Permission denied')

Post by sander »

Code: Select all

C:\Sabnzbd\sabnzbd.ini
Not standard.

Code: Select all

Starting web-interface on 192.168.1.20:38080
Not standard.

Code: Select all

File "sabnzbd\utils\certgen.pyo", line 42, in generate_key
IOError: [Errno 22] invalid mode ('wb') or filename: ''
Not good. Looks like a rights problem.

I would start with a fresh ini file (sabnzbd.exe -f my-new-sabini.ini) ... I expect that works.
seanvree81
Newbie
Newbie
Posts: 49
Joined: February 25th, 2016, 9:55 pm

Re: ChannelFailures: IOError(13, 'Permission denied')

Post by seanvree81 »

sander wrote:

Code: Select all

C:\Sabnzbd\sabnzbd.ini
Not standard.
Lol, how is that NOT STANDARD? It's running as a windows service? Just because it's "not standard" doesn't mean it shouldn't work.
User avatar
safihre
Administrator
Administrator
Posts: 5362
Joined: April 30th, 2015, 7:35 am
Contact:

Re: ChannelFailures: IOError(13, 'Permission denied')

Post by safihre »

Because anything directly into the root of your OS drive is usually locked by some permissions problem. Since the service is run under a user with less permissions, this can cause problems.

Have you followed the steps in the Sabnzbd as a service guide to run the service as a specific user?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply