K
K
Ka4a2015-08-27 11:35:21
linux
Ka4a, 2015-08-27 11:35:21

Why does an error occur when deploying via deploy.sh?

Good afternoon. Help please with a problem. There is a project deployment script in Ruby.

#!/bin/sh

if [ $# -eq 0 ]; then
    echo "Usage:"
    echo "  ./deploy.sh some_stage_name"
else
    rvm use `cat .ruby-version`@`if [ -f .ruby-gemset ]; then cat .ruby-gemset; fi;` do bundle exec cap [email protected] deploy &&
    cd ./legacy &&
    rvm use `cat .ruby-version`@`if [ -f .ruby-gemset ]; then cat .ruby-gemset; fi;` do bundle exec cap [email protected] deploy &&
    cd ..
fi;

If I run it through cap servername deploy everything works fine. And if ./deploy.sh servername then I get an error.
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host 1.2.3.4: "\xE2" from ASCII-8BIT to UTF-8

This error will only occur on one server, and only when running ./deploy.sh.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Ka4a, 2015-09-03
@ka4a

Resolved the issue. It was in bundle exec in the bundle file there were comments made in a different encoding. Actually did not reinvent the wheel and just changed the comments. Thanks for the help.

J
Jeiwan, 2015-08-27
@Jeiwan

What version of Ruby is on the server? Wangyu, which is 1.9.3 or lower.
Need to upgrade to 2+.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question