(SOLVED) SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

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
semel
Jr. Member
Jr. Member
Posts: 58
Joined: January 25th, 2009, 3:45 am

(SOLVED) SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Post by semel »

Hello. I'm having problems with docker-sabnzbd

I already contacted the ones maintaining the docker and they couldn't replicate the issue, so I decided to ask here, maybe someone else experienced this problem and found a workaround

When I open sabs interface it says "SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8"

Ubuntu 18.04, VPS (contabo)

Docker log


sudo nano /etc/default/locale

LANG=en_US.UTF-8


locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


docker exec sabnzbd locale

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

Sincerely yours,
Last edited by semel on July 19th, 2019, 4:03 pm, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Post by sander »

The whole idea with docker from a user's point of view is: if the docker (/image) does not work, throw it away. So: as a user, do not try to repair a docker. Motto: Cattle, not pets.

Anyway:
- which docker image do you use. ("docker-sabnzbd " is too generic)?
- how do you start it?

EDIT
Based on your logging and the BTC in there, I think you use https://github.com/hotio/docker-sabnzbd . Correct?
If so, based on the git / Dockerfile, I created the image myself, and that has a correct encoding, so I can't reproduce:

Code: Select all

2019-07-19 08:48:39,658::INFO::[SABnzbd:1178] Arguments = /app/SABnzbd.py --browser 0 --server 0.0.0.0:8080 --config-file /config/app/sabnzbd.ini
2019-07-19 08:48:39,659::INFO::[SABnzbd:1183] Preferred encoding = UTF-8
2019-07-19 08:48:39,659::INFO::[SABnzbd:1193] SSL version = OpenSSL 1.1.1  11 Sep 2018
Third question:

- What do you get with https://hub.docker.com/r/linuxserver/sabnzbd/
semel
Jr. Member
Jr. Member
Posts: 58
Joined: January 25th, 2009, 3:45 am

Re: SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Post by semel »

Based on your logging and the BTC in there, I think you use https://github.com/hotio/docker-sabnzbd . Correct?
Yes
how do you start it?
Honesty, I dunno. I'm not familiar with docker enough. It's part of Cloudbox media server project, so it starts automatically. They also got portainer instaled for easier management of containers.

is there a way to force specific encoding when starting sabnzbd in general?
I dunno how to incorporate this docker into cloudbox

Anyways, thanx for taking your time.. Much appreciated.

PS The issue was solved by the ones maintaining the docker image.
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: (SOLVED) SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Post by sander »

Code: Select all

is there a way to force specific encoding when starting sabnzbd in general?
Yes: with "env LANG=en_US.UTF-8 sabnzbdplus ..."
But that's inside the Dockerfile, so impossible for you

Code: Select all

PS The issue was solved by the ones maintaining the docker image.
Oh, good: exactly how it should work with docker. But how was it solved? I don't anything recent on https://github.com/hotio/docker-sabnzbd/commits/master
Post Reply