From fa2afe98d181dc986e4eade5b5ac3215ed957d31 Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Thu, 26 Mar 2015 09:08:47 -0700 Subject: Add a troubleshooting node in the ce build example --- doc/examples/build_script_gitlab_ce.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/examples/build_script_gitlab_ce.md b/doc/examples/build_script_gitlab_ce.md index 50fb059..8b28d49 100644 --- a/doc/examples/build_script_gitlab_ce.md +++ b/doc/examples/build_script_gitlab_ce.md @@ -51,3 +51,22 @@ cp config/gitlab.yml.example config/gitlab.yml RAILS_ENV=test bundle exec rake db:drop db:create RAILS_ENV=test bundle exec rake test ``` + +# Troubleshooting + +## InvalidByteSequenceError + +Test pass locally but on CI there is an error with encoding. +One of the possible solutions for error: `Encoding::InvalidByteSequenceError: "\xF0" on US-ASCII` during build is setting the correct locale in the build job: + +``` +export LC_CTYPE=en_US.UTF-8 + +``` + +or + +``` +export LANG=en_US.UTF-8 +``` + -- cgit v1.2.1