Comments (21)
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.
@rstacruz add this to the top of all the files:
# encoding: utf-8
Or at least all files that accept varying input.
from mina.
Lol I was just about to suggest a fix... when I realized that I already did haha.
from mina.
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.
Just had this issue again due to @henrebotha's name having an é in it.
from mina.
Hi @fmartingr and @constantm please update the gem to the new version, this bug is fixed :)
from mina.
Awesome thanks!
from mina.
Thank you, will take a look :)
from mina.
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.
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.
Weird. Any ideas how I can help debug this?
from mina.
Can you please write down your full name, and your last commit message?
from mina.
➜ git --no-pager log --format='%aN (%h):%n> %s' -n 1
Henré Botha (03552a0):
> test
from mina.
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.
Aaaaaah. Okay, quick question - does Mina use the default shell for root (eg. Zsh), or does it use Bash?
from mina.
As I know mina uses the default shell :)
from mina.
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.
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.
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.
any update on this issue ? My name and commit message has no special character. Still I am getting this message.
from mina.
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)
- the Italiantranslation is to be corrected HOT 1
- No password was specified in environment variable CODA_PRIVKEY_PASS HOT 2
- PRESUMED ABANDONED ☠️ HOT 2
- Mina version managers plugin HOT 3
- Better support for CLI variables
- Mina Resurrection HOT 2
- Deployment logs HOT 2
- Document supported operating systems and prerequisities
- Add flag to skip cleanup on failed deploy
- [v1.2.4] run(:local) issue HOT 1
- Stuck on Fetching new git commits HOT 2
- Contributing Guide Missing
- master.key HOT 5
- mina 1.2.4: Allow multiple deployments with different `RAILS_ENV` HOT 2
- Adopt to new standard of bundle flags [proposed Label] enhancement
- run(:local) command not found when using execution_mode: :system
- Are we considering port mina to Crystal? HOT 1
- assets:precomile fails, but deploy succeeds HOT 1
- Ugh... not able to fetch new commits HOT 2
- mina init fails with NoMethodError: undefined method `exists?' for File:Class HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mina.