I ran in to an issue where SickRage wasn’t downloading torrents due to a Unicode decode failure. The error I was getting:
1 2 3 4 5
| 2015-01-17 14:57:12 WARNING SEARCHQUEUE-MANUAL-272644 :: Failed to download result AA AAUnicodeEncodeError: 'ascii' codec can't encode characters in position 56-57: ordinal not in range(128) AA with open(filename, 'wb') as fp: AA File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/helpers.py", line 1209, in download_file
|
To fix this, I ssh’ed in to the jail and ran edit /usr/local/etc/rc.d/sickrage
. After the line load_rc_config ${name}
, I pasted the following lines:
1 2 3
| export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8
|
After saving the file and restarting the sickrage
service, everything worked again.
Comment and share