Yesterday an unwelcomed visitor was mucking around my server. I since rebooted ubuntu and changed passwords. Now I try to deploy my rails application and I am getting an error.
Here is the important part:
** [out :: 172.27.12.xxx] /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
** [out :: 172.27.12.xxx] /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p327/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
** [out :: 172.27.12.xxx] /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p327#global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
*** [deploy:update_code] rolling back
* executing "rm -rf /home/guarddog/public_html/guarddog.com/releases/20131220150214; true"
servers: ["172.27.12.xxx", "172.27.12.xxx", "172.27.12.xxx"]
** [deploy:update_code] exception while rolling back: IOError, closed stream
This is stack trace of error:
Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/net-ssh-2.6.2/lib/net/ssh/buffered_io.rb:65:in `recv': Operation timed out - recvfrom(2) (Errno::ETIMEDOUT)
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/net-ssh-2.6.2/lib/net/ssh/buffered_io.rb:65:in `fill'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/net-ssh-2.6.2/lib/net/ssh/connection/session.rb:228:in `block in postprocess'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/net-ssh-2.6.2/lib/net/ssh/connection/session.rb:224:in `each'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/net-ssh-2.6.2/lib/net/ssh/connection/session.rb:224:in `postprocess'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/processable.rb:31:in `block in process_iteration'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/processable.rb:43:in `block in ensure_each_session'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/processable.rb:41:in `each'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/processable.rb:41:in `ensure_each_session'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/processable.rb:29:in `process_iteration'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/command.rb:165:in `block (2 levels) in process!'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/command.rb:164:in `loop'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/command.rb:164:in `block in process!'
from /Users/guarddog/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/command.rb:163:in `process!'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/command.rb:134:in `process'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/actions/invocation.rb:185:in `block in run_tree'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/connections.rb:198:in `block in execute_on_servers'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/connections.rb:186:in `each'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/connections.rb:186:in `each_slice'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/connections.rb:186:in `execute_on_servers'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/actions/invocation.rb:183:in `run_tree'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/actions/invocation.rb:155:in `run'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ./config/deploy.rb:77:in `block (2 levels) in load'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/callback.rb:38:in `call'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:141:in `each'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:141:in `trigger'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/recipes/deploy.rb:228:in `block (3 levels) in load'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:56:in `transaction'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/recipes/deploy.rb:227:in `block (2 levels) in load'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/recipes/deploy.rb:195:in `block (2 levels) in load'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:45:in `each'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:34:in `execute!'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/gems/capistrano-2.13.5/bin/cap:4:in `<top (required)>'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/bin/cap:19:in `load'
from /Users/guarddog/.rvm/gems/ruby-1.9.3-p0/bin/cap:19:in `<main>'
I think the notable part is this line:
from ./config/deploy.rb:77:in `block (2 levels) in load'
That's actual code in my deploy.rb file:
task :precompile, :role => :app do
run "cd #{release_path}/ && RAILS_ENV=production bundle exec rake assets:precompile"
end
which is executed because of this line in my deploy.rb:
after "deploy:update_code", "deploy:precompile"
Note the deploys were working fine until the incident happened yesterday. He seemed to clone the git repository and copy it somewhere. But he didn't seem to delete any files.
Any idea why deploy:precompile gives the error?
It sounds like your remote codebase may have been compromised. I suggest using
cap deploy:check
cap deploy:cleanup
cap deploy:cold
to redeploy a fresh copy of your original codebase.
This will not modify your remote database, but it will restart the remote httpd server so, as with any deploy, you should wait until a suitable maintenance window to try it.
Related
I removed and then re-added a few files to github so that the gitignore would work, and then uploaded these files through capistrano to server.
Then started having some deploy trouble failing on precompile:assets.
I was able to find the issue, fix and now cap env deploy:precompile:assets gives me all green. But when I run cap env deploy I am still getting:
Traceback (most recent call last):
1: from /Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as deploy#staging.myapp.com: Connection reset by peer - recvfrom(2) (SSHKit::Runner::ExecuteError)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy#staging.myapp.com: Connection reset by peer - recvfrom(2)
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
Caused by:
Errno::ECONNRESET: Connection reset by peer - recvfrom(2)
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/buffered_io.rb:66:in `recv'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/buffered_io.rb:66:in `fill'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:275:in `block in ev_do_handle_events'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:271:in `each'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:271:in `ev_do_handle_events'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/event_loop.rb:112:in `ev_select_and_postprocess'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/event_loop.rb:31:in `process'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:228:in `process'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `block in loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/channel.rb:272:in `wait'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:163:in `block (2 levels) in execute_command'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/channel.rb:533:in `do_open_confirmation'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:644:in `channel_open_confirmation'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:549:in `dispatch_incoming_packets'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:249:in `ev_preprocess'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/event_loop.rb:101:in `each'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/event_loop.rb:101:in `ev_preprocess'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/event_loop.rb:29:in `process'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:228:in `process'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `block in loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/net-ssh-5.2.0/lib/net/ssh/connection/session.rb:181:in `loop'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:165:in `block in execute_command'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/connection_pool.rb:65:in `with'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:176:in `with_ssh'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:129:in `execute_command'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `block in create_command_and_execute'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `tap'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `create_command_and_execute'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:78:in `execute'
/Users/user/.rvm/gems/ruby-2.5.1/gems/capistrano-rails-1.4.0/lib/capistrano/tasks/assets.rake:69:in `block (6 levels) in <top (required)>'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:97:in `with'
/Users/user/.rvm/gems/ruby-2.5.1/gems/capistrano-rails-1.4.0/lib/capistrano/tasks/assets.rake:68:in `block (5 levels) in <top (required)>'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:89:in `within'
/Users/user/.rvm/gems/ruby-2.5.1/gems/capistrano-rails-1.4.0/lib/capistrano/tasks/assets.rake:67:in `block (4 levels) in <top (required)>'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:29:in `run'
/Users/user/.rvm/gems/ruby-2.5.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => deploy:assets:precompile
The deploy has failed with an error: Exception while executing as deploy#staging.myapp.com: Connection reset by peer - recvfrom(2)
** Invoke deploy:failed (first_time)
** Execute deploy:failed
** DEPLOY FAILED
Unsure how to troubleshoot since the task seems to work, and I can definitely connect to the server (uploaded files through cap etc...)
Thanks for any tips
I am using capistrano to deploy on ubuntu server
Brief Response :
while executing as ubuntu#planhop.net: invalid encoding
Logs attached below
Here is detailed response:
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rvm:hook (first_time)
** Execute rvm:hook
cap aborted!
And:
SSHKit::Runner::ExecuteError: Exception while executing as ubuntu#planhop.net: invalid encoding
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
OpenSSL::PKey::EC::Point::Error: invalid encoding
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/openssl.rb:160:in `initialize'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/openssl.rb:160:in `new'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/openssl.rb:160:in `read_keyblob'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/buffer.rb:289:in `read_keyblob'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/buffer.rb:248:in `read_key'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:108:in `parse_key'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:75:in `parse_line'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:62:in `block (3 levels) in parse_file'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:60:in `each_line'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:60:in `block (2 levels) in parse_file'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:58:in `open'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:58:in `block in parse_file'
/Users/shubham.gupta/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/mutex_m.rb:74:in `synchronize'
/Users/shubham.gupta/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/mutex_m.rb:74:in `mu_synchronize'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:47:in `parse_file'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:18:in `keys_for'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:122:in `block in search_for'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:121:in `map'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh/known_hosts.rb:121:in `search_for'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/session.rb:96:in `host_keys'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/algorithms.rb:230:in `prepare_preferred_algorithms!'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/algorithms.rb:119:in `initialize'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/session.rb:86:in `new'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh/transport/session.rb:86:in `initialize'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh.rb:237:in `new'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/net-ssh-4.2.0/lib/net/ssh.rb:237:in `start'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/connection_pool.rb:59:in `call'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/connection_pool.rb:59:in `with'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh.rb:176:in `with_ssh'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/netssh.rb:129:in `execute_command'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:141:in `block in create_command_and_execute'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:141:in `tap'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:141:in `create_command_and_execute'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:55:in `test'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/capistrano-rvm-0.1.2/lib/capistrano/tasks/rvm.rake:21:in `block (3 levels) in '
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `run'
/Users/shubham.gupta/.rvm/gems/ruby-2.3.1#rails5/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => rvm:hook
I'm trying to follow along on this tutorial and can't get past the setup of pg.
https://shellycloud.com/blog/2013/10/adding-search-and-autocomplete-to-a-rails-app-with-elasticsearch
I set up pg on my computer using the postgres app, and I installed it successfully in my app using bundle install, but whenever I run rake db:seed I get the error below. pg is running on port 5432, I've tried uninstalling and installing again. rails server runs fine, and psql is working in the terminal.
I have been searching for hours and can't find anything that can explain what the issue is - most answers are to do with sunspot solr which I'm not using. I have already increased my system's shared memory as advised in the postgres app documentation:
sudo sysctl -w kern.sysv.shmall=65536
sudo sysctl -w kern.sysv.shmmax=16777216
I added the following to my development config as another answer mentioned this as a potential solution:
config.action_mailer.perform_deliveries = false
Any help would be very much appreciated!
This is the error I get when I run rake db:seed
michaels-air:bookstore_search michaeltaylor$ rake db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
rake aborted!
Connection refused - connect(2)
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `initialize'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `open'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:877:in `connect'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:851:in `start'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient.rb:72:in `post'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/http/client.rb:19:in `post'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/index.rb:146:in `store'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/search.rb:148:in `block in update_index'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__4090249372457318285__update_elasticsearch_index__callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/search.rb:144:in `update_index'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/callbacks.rb:21:in `block in included'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:386:in `_run__4090249372457318285__save__callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:299:in `create_or_update'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/persistence.rb:106:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/validations.rb:51:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/attribute_methods/dirty.rb:32:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block (2 levels) in save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:209:in `transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block in save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:281:in `rollback_active_record_state!'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:269:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/persistence.rb:37:in `create'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:19:in `block in <top (required)>'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:18:in `each'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:18:in `<top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0/lib/rails/engine.rb:540:in `load_seed'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:153:in `load_seed'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:181:in `block (2 levels) in <top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/rake:23:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/rake:23:in `<main>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
This is my config yml
development:
adapter: postgresql
encoding: unicode
database: bookstore_development
pool: 5
username: michaeltaylor
password:
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
host: localhost
This is what I get if I try and run rake db:setup
michaels-air:bookstore_search michaeltaylor$ rake db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
bookstore_development already exists
bookstore_test already exists
** Invoke environment (first_time)
** Execute environment
** Execute db:schema:load_if_ruby
** Invoke db:schema:load (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:schema:load
-- enable_extension("plpgsql")
-> 0.0194s
-- create_table("authors", {:force=>true})
-> 0.0214s
-- create_table("authors_books", {:force=>true})
-> 0.0075s
-- create_table("books", {:force=>true})
-> 0.0123s
-- create_table("books_subjects", {:force=>true})
-> 0.0082s
-- create_table("subjects", {:force=>true})
-> 0.0092s
-- initialize_schema_migrations_table()
-> 0.0029s
** Invoke db:structure:load_if_sql (first_time)
** Invoke db:create
** Invoke environment
** Execute db:structure:load_if_sql
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment
** Execute db:abort_if_pending_migrations
rake aborted!
Connection refused - connect(2)
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `initialize'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `open'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:877:in `connect'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:851:in `start'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rest-client-1.6.7/lib/restclient.rb:72:in `post'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/http/client.rb:19:in `post'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/index.rb:146:in `store'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/search.rb:148:in `block in update_index'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__1365093858615832810__update_elasticsearch_index__callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/search.rb:144:in `update_index'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/tire-0.6.0/lib/tire/model/callbacks.rb:21:in `block in included'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:386:in `_run__1365093858615832810__save__callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:299:in `create_or_update'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/persistence.rb:106:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/validations.rb:51:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/attribute_methods/dirty.rb:32:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block (2 levels) in save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:209:in `transaction'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block in save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:281:in `rollback_active_record_state!'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/transactions.rb:269:in `save'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/persistence.rb:37:in `create'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:19:in `block in <top (required)>'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:18:in `each'
/Users/michaeltaylor/Codes/bookstore_search/db/seeds.rb:18:in `<top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0/lib/rails/engine.rb:540:in `load_seed'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:153:in `load_seed'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:181:in `block (2 levels) in <top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:195:in `each'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/Users/michaeltaylor/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/rake:23:in `load'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/rake:23:in `<main>'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/michaeltaylor/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:setup => db:seed
Doesn't look like a Postgres issue. Judging by the stack trace, apparently you need to start your ElasticSearch server.
I am trying to precompile assets on localhost with command bundle exec rake assets:precompile, the output is bellow:
/Users/adam/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /usr/local/mysql in PATH, mode 040777
/Users/adam/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler.rb:263: warning: Insecure world writable dir /usr/local/mysql in PATH, mode 040777
/Users/adam/.rvm/rubies/ruby-1.9.3-p385/bin/ruby /Users/adam/.rvm/gems/ruby-1.9.3-p385/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
/Users/adam/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler.rb:263: warning: Insecure world writable dir /usr/local/mysql in PATH, mode 040777
rake aborted!
Access denied for user 'root'#'localhost' (using password: YES)
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/mysql2-0.3.13/lib/mysql2/client.rb:58:in `connect'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/mysql2-0.3.13/lib/mysql2/client.rb:58:in `initialize'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:308:in `clear_cache!'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:418:in `_run__4521211058967275969__prepare__3791545036321061180__callbacks'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/adam/rubydev/Fileito/config/environment.rb:5:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/adam/.rvm/rubies/ruby-1.9.3-p385/b...]
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
/Users/adam/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I am using SQLite database, not MySQL - why cannot I precompile the assets?
Add this line to config/application.rb
config.assets.initialize_on_precompile = false
It will prevent Rails to connecting to DB on assets precompilation.
I think you should fix
denied for user 'root'#'localhost'
Check your database configuration file and fix the database connection issue, then precompile assets
Im having some problems getting capistrano to deploy.
As far as i can tell the fail happens with the git ls-remote command, but when i run it on the server manually it returns successfully.
Any help would be greatly appreciated!
SOLVED
After installing mountain lion my git cli wasn't working.
cap deploy
triggering load callbacks
* 15:55:49 == Currently executing `staging'
triggering start callbacks for `deploy'
* 15:55:49 == Currently executing `multistage:ensure'
* 15:55:49 == Currently executing `deploy'
* 15:55:49 == Currently executing `deploy:update'
** transaction: start
* 15:55:49 == Currently executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git#github.com:taheilo/taheilo.com.git master"
*** [deploy:update_code] rolling back
* executing "rm -rf /home/frankie/sites/taheilo.com/stage/releases/20120726135550; true"
servers: ["198.101.205.147"]
[198.101.205.147] executing command
command finished in 2039ms
/Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:107:in ``': No such file or directory - git ls-remote git#github.com:taheilo/taheilo.com.git master (Errno::ENOENT)
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:107:in `block in run_locally'
from /Users/frankie/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:106:in `run_locally'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:44:in `block (3 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:96:in `with_env'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:44:in `block (2 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/scm/git.rb:227:in `query_revision'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/scm/base.rb:35:in `block in method_missing'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/scm/base.rb:63:in `local'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:44:in `block in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:87:in `call'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:87:in `block in fetch'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110:in `block in protect'
from <internal:prelude>:10:in `synchronize'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110:in `protect'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:78:in `fetch'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:95:in `[]'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/strategy/base.rb:82:in `revision'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/strategy/remote_cache.rb:35:in `update_repository_cache'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy/strategy/remote_cache.rb:15:in `deploy!'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:222:in `block (2 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193:in `method_missing'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:203:in `block (3 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:56:in `transaction'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193:in `method_missing'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:202:in `block (2 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193:in `method_missing'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:170:in `block (2 levels) in load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:45:in `each'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:34:in `execute!'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/gems/capistrano-2.12.0/bin/cap:4:in `<top (required)>'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/bin/cap:19:in `load'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/bin/cap:19:in `<main>'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/frankie/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
you should try to execute it locally as capistrano says:
executing locally: "git ls-remote git#github.com:taheilo/taheilo.com.git master"