Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't convert Fixnum into String #142

Closed
zeroasterisk opened this issue Sep 11, 2013 · 5 comments
Closed

can't convert Fixnum into String #142

zeroasterisk opened this issue Sep 11, 2013 · 5 comments

Comments

@zeroasterisk
Copy link

I've stripped out most of my config, down to just the basics and I'm still getting this error... I don't see anywhere in here where the "string" is a "fixnum"

$ mina deploy_prod --trace

** Invoke deploy_prod (first_time)
** Execute deploy_prod
** Invoke deploy (first_time)
** Execute deploy
** Invoke git:clone (first_time)
** Execute git:clone
mina aborted!
can't convert Fixnum into String
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/output_helpers.rb:46:in `+'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/output_helpers.rb:46:in `print_char'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:29:in `pretty_system'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:97:in `stream_stdout'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:29:in `pretty_system'
/Library/Ruby/Gems/1.8/gems/open4-1.3.0/lib/open4.rb:107:in `call'
/Library/Ruby/Gems/1.8/gems/open4-1.3.0/lib/open4.rb:107:in `do_popen'
/Library/Ruby/Gems/1.8/gems/open4-1.3.0/lib/open4.rb:30:in `popen4'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/tools.rb:11:in `popen4'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:20:in `pretty_system'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/ssh_helpers.rb:94:in `invoke'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/ssh_helpers.rb:35:in `ssh'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:54:in `run!'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:81:in `measure'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:70:in `report_time'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:54:in `run!'
/Development/AHM/AD/MinaFile:63
/Development/AHM/AD/MinaFile:60:in `each'
/Development/AHM/AD/MinaFile:60
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:210:in `isolate'
/Development/AHM/AD/MinaFile:59
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:236:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:175:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/bin/mina:53
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/bin/mina:26
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/bin/mina:25:in `instance_eval'
/Library/Ruby/Gems/1.8/gems/mina-0.3.0/bin/mina:25
/usr/bin/mina:23:in `load'
/usr/bin/mina:23
Tasks: TOP => deploy_prod

Here's my deploy_prod task and the deploy task, totally stripped down...

desc "Deploy to Production Servers"
task :deploy_prod do
  set :env, 'prod'
  isolate do
    domains_prod.each do |domain|
      set :domain, domain
      invoke :deploy
      run!
    end
  end
end

desc "Deploy (Single Deploy Command)"
task :deploy do
  deploy do
    invoke :'git:clone'
  end
end

And here's the basis for this approach:
#8

@tomas
Copy link

tomas commented Sep 11, 2013

I think this is caused because of Ruby 1.8. Try running it with 1.9+.

@prohfesor
Copy link

confirming works on 1.9 and reproducible on 1.8, ubuntu 12.04

@Narven
Copy link

Narven commented Aug 6, 2014

Im having the same issue: (while calling mina deploy --trace in jenkins task)

mina aborted!
TypeError: can't convert Fixnum into String
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/output_helpers.rb:46:in `+'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/output_helpers.rb:46:in `print_char'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:29:in `pretty_system'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:97:in `stream_stdout'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:29:in `pretty_system'
/usr/lib/ruby/gems/1.8/gems/open4-1.3.4/lib/open4.rb:111:in `call'
/usr/lib/ruby/gems/1.8/gems/open4-1.3.4/lib/open4.rb:111:in `do_popen'
/usr/lib/ruby/gems/1.8/gems/open4-1.3.4/lib/open4.rb:34:in `popen4'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/tools.rb:11:in `popen4'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/exec_helpers.rb:20:in `pretty_system'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/ssh_helpers.rb:94:in `invoke'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/ssh_helpers.rb:35:in `ssh'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:54:in `run!'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:81:in `measure'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:70:in `report_time'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:54:in `run!'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/lib/mina/helpers.rb:91:in `mina_cleanup!'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/bin/mina:55
/usr/lib/ruby/gems/1.8/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/bin/mina:26
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/bin/mina:25:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/mina-0.3.0/bin/mina:25
/usr/bin/mina:19:in `load'
/usr/bin/mina:19

mina version 0.3.0
ruby 2.1.2p95

@jerefrer
Copy link

What if I want to use mina with an app running on 1.8.7 ?
Wouldn't there be a quick workaround for this ?

@gabskoro
Copy link
Member

Fixed, please update the gem to version 0.3.1 :)

@d4be4st d4be4st closed this as completed Jul 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants