UnicodeEncodeError when starting Cloudbreak
UnicodeEncodeError when starting Cloudbreak.
Error:
{{root@sldifrdwbso02:/sldifrdwbso02/solr/cloudbreak # ./cbd start
generating docker-compose.yml
generating uaa.yml
Initialize and migrate databases
Starting cbreak_commondb_1 ... done
Pulling uluwatu (hortonworks/hdc-web:2.8.0)...
Trying to pull repository registry.access.redhat.com/hortonworks/hdc-web ...
Trying to pull repository docker.io/hortonworks/hdc-web ...
2.8.0: Pulling from docker.io/hortonworks/hdc-web
Trying to pull repository registry.fedoraproject.org/hortonworks/hdc-web ...
Pulling repository registry.fedoraproject.org/hortonworks/hdc-web
Trying to pull repository quay.io/hortonworks/hdc-web ...
Pulling repository quay.io/hortonworks/hdc-web
Trying to pull repository registry.centos.org/hortonworks/hdc-web ...
Pulling repository registry.centos.org/hortonworks/hdc-web
Trying to pull repository docker.io/hortonworks/hdc-web ...
2.8.0: Pulling from docker.io/hortonworks/hdc-web
Traceback (most recent call last):
File "logging/init.py", line 861, in emit
File "logging/init.py", line 734, in format
File "logging/init.py", line 469, in format
UnicodeEncodeError: 'ascii' codec can't encode character u'\xab' in position 3000: ordinal not in range(128)
Logged from file main.py, line 80
}}
Solution: Try setting the following variables in the Profile, one by one, and see if Cloudbreak starts or not.
export LANG=C.UTF-8
export LANG=en_US.UTF-8
export PYTHONIOENCODING=utf8