Ask A Question


You’re not receiving notifications from this thread.

Issues Deploying Rails App

Damian Nelwep asked in Rails

Hi there,

I'd like to deploy my app and I followed a long tutorial (not the GoRails one badly :( ) but I managed to put it on the server and running with Capistrano. DB is postgre and OS is Debian (is this a problem and better get on Ubuntu..?). I get the error message "An unhandled lowlevel error occurred. The application logs may have details." Where could it come from?

Thank you and have a good night/day :)


I finally tried to do it with your tutorial but I'm blocked at some point, just when I type cap production deploy

#<Thread:0x00005559861bdae8@/home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
    12: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
    11: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:29:in `run'
    10: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
     9: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/capistrano-rbenv-2.1.4/lib/capistrano/tasks/rbenv.rake:10:in `block (3 levels) in <top (required)>'
     8: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:59:in `test'
     7: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `create_command_and_execute'
     6: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `tap'
     5: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/abstract.rb:145:in `block in create_command_and_execute'
     4: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:129:in `execute_command'
     3: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/netssh.rb:176:in `with_ssh'
     2: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/connection_pool.rb:63:in `with'
     1: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/backends/connection_pool.rb:63:in `call'
/home/dameaw/.rvm/gems/ruby-2.6.1/gems/net-ssh-5.2.0/lib/net/ssh.rb:263:in `start': Authentication failed for user ubuntu@ (Net::SSH::AuthenticationFailed)
    1: from /home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/home/dameaw/.rvm/gems/ruby-2.6.1/gems/sshkit-1.18.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as ubuntu@ Authentication failed for user ubuntu@ (SSHKit::Runner::ExecuteError)
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as ubuntu@ Authentication failed for user ubuntu@

Caused by:
Net::SSH::AuthenticationFailed: Authentication failed for user ubuntu@

Tasks: TOP => rbenv:validate
(See full trace by running task with --trace)

Thank you if you get some time to take a look... I was on rvm but uninstalled it and put rbenv.
I'm so frustrated since I got so close..! ^


Also on the server side I tried to do rbenv install 2.6.1 and I got :

Downloading ruby-2.6.1.tar.bz2...
Installing ruby-2.6.1...

BUILD FAILED (Ubuntu 18.04 using ruby-build 20190615-1-g0867187)

Inspect or clean up the working tree at /tmp/ruby-build.20190622035254.7560
Results logged to /tmp/ruby-build.20190622035254.7560.log

Last 10 log lines:
 92% [1013/1091]  lib/webrick/httpservlet/filehandler.rb
 92% [1014/1091]  lib/webrick/httpservlet/prochandler.rb
 93% [1015/1091]  lib/webrick/httpstatus.rb
 93% [1016/1091]  lib/webrick/httputils.rb
 93% [1017/1091]  lib/webrick/httpversion.rb
 93% [1018/1091]  lib/webrick/log.rb
 93% [1019/1091]  lib/webrick/server.rb
Killed recipe for target 'rdoc' failed
make: *** [rdoc] Error 137

I don't know why I paid to get here because nobody answers me and also the only video I needed to see is free to watch for anyone on YouTube... Please tell me what advantages do I really get from this subscription?


You can try RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install 2.6.3

instead of rbenv install 2.6.3

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,603+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.