GithubHelp home page GithubHelp logo

Comments (21)

rstacruz avatar rstacruz commented on May 18, 2024

If anyone can help debug this, that'd be swell. I'd like to see the entire error message if there's more to it.

from mina.

sethvargo avatar sethvargo commented on May 18, 2024

@rstacruz add this to the top of all the files:

# encoding: utf-8

Or at least all files that accept varying input.

from mina.

sethvargo avatar sethvargo commented on May 18, 2024

Lol I was just about to suggest a fix... when I realized that I already did haha.

from mina.

fmartingr avatar fmartingr commented on May 18, 2024

This is happening to me as I'm trying to setup a simple deploy with mina, but the character is not in the commit message but in my name.

Via Shell:

$ git --no-pager log --format="%aN (%h):%n> %s" -n 1
Felipe Martín (c26bb7b):
> Blog.Entry allow admin filter by draft status

Via mina deploy --trace:

-----> Using this git commit

       $ git --no-pager log --format="%aN (%h):%n> %s" -n 1
mina aborted!
invalid byte sequence in US-ASCII

from mina.

constantm avatar constantm commented on May 18, 2024

Just had this issue again due to @henrebotha's name having an é in it.

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

Hi @fmartingr and @constantm please update the gem to the new version, this bug is fixed :)

from mina.

constantm avatar constantm commented on May 18, 2024

Awesome thanks!

from mina.

fmartingr avatar fmartingr commented on May 18, 2024

Thank you, will take a look :)

from mina.

constantm avatar constantm commented on May 18, 2024

Nope, still an issue on 0.3.1

-----> Using this git commit

       $ git --no-pager log --format='%aN (%h):%n> %s' -n 1 
mina aborted!                 
ArgumentError: invalid byte sequence in US-ASCII
/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mina-0.3.1/lib/mina/output_helpers.rb:23:in `print_str'
/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mina-0.3.1/lib/mina/output_helpers.rb:41:in `print_char'
/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mina-0.3.1/lib/mina/exec_helpers.rb:29:in `block (2 levels) in pretty_system'
/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mina-0.3.1/lib/mina/exec_helpers.rb:104:in `stream_stdout'
/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mina-0.3.1/lib/mina/exec_helpers.rb:29:in `block in pretty_system'

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

Hmm, I added some characters in my git name and tested it again.

$ git --no-pager log --format='%aN (%h):%n> %s' -n 1
Gabrijel adéoío (44c9c84):
> test adéoío

from mina.

constantm avatar constantm commented on May 18, 2024

Weird. Any ideas how I can help debug this?

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

Can you please write down your full name, and your last commit message?

from mina.

constantm avatar constantm commented on May 18, 2024
➜ git --no-pager log --format='%aN (%h):%n> %s' -n 1
Henré Botha (03552a0):
> test

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

Wait, wait, I totally forgot that this error appears on your server :) Can you check your locales?

http://perlgeek.de/en/article/set-up-a-clean-utf8-environment

from mina.

constantm avatar constantm commented on May 18, 2024

Aaaaaah. Okay, quick question - does Mina use the default shell for root (eg. Zsh), or does it use Bash?

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

As I know mina uses the default shell :)

from mina.

constantm avatar constantm commented on May 18, 2024

Okay in that case setting the locales didn't fix the issue. I've added the exports to .zshrc, and the only thing is changes is LC_ALL and LANGUAGE. The rest were at en_US.UTF-8 already. Running locales as root shows the following:

➜  ~  whoami
root
➜  ~  locale 
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
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=en_US.UTF-8

Deploys still don't work. :/

from mina.

gabskoro avatar gabskoro commented on May 18, 2024

Ok, can you please add it to .bashrc just to test it?

This are my locales, I'm using .bashrc with legacy user

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=

from mina.

constantm avatar constantm commented on May 18, 2024

Added locales to .bashrc to root with no luck. I'm just going to change the name for now. Will comment here if I ever figure out what causes the issue.

from mina.

omer-clustox avatar omer-clustox commented on May 18, 2024

any update on this issue ? My name and commit message has no special character. Still I am getting this message.
screenshot 2016-10-27 15 31 24

from mina.

omer-clustox avatar omer-clustox commented on May 18, 2024

Got it resolved. Issue was due to missing local on my local pc. I run following on my terminal

export LC_ALL="en_US.UTF-8"
locale

mina deploy works fine now

from mina.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.