Skip to content

rails upgrade and failed to deploy #114

@igorkasyanchuk

Description

@igorkasyanchuk

Hello, I'm having an issue with deploying an app. We have upgraded Rails to 6 and now I've this bug.
If I do --full-index or bundle update railties it doesn't help.
Same time with:

set :bundle_path, nil
set :bundle_jobs, 4
set :bundle_without, nil
set :bundle_flags, nil

I can deploy.

Log of failed build below. Please advise.

'''
INFO [d58c3933] Finished in 0.261 seconds with exit status 0 (successful).
INFO [d6d60231] Running /usr/bin/env ln -s /home/deployer/sga/shared/public/ckeditor_assets /home/deployer/sga/releases/20191125102415/public/ckeditor_assets as [email protected]
INFO [d6d60231] Finished in 0.269 seconds with exit status 0 (successful).
INFO [833d676a] Running /usr/bin/env ln -s /home/deployer/sga/shared/public/assets /home/deployer/sga/releases/20191125102415/public/assets as [email protected]
INFO [833d676a] Finished in 0.272 seconds with exit status 0 (successful).
INFO [d41ec5cb] Running ~/.rvm/bin/rvm 2.6.3 do bundle install --path /home/deployer/sga/shared/bundle --jobs 4 --without development test --deployment --quiet as [email protected]
#<Thread:0x000000000234bf78@/usr/local/rvm/gems/ruby-2.5.5/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
1: from /usr/local/rvm/gems/ruby-2.5.5/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:11:in block (2 levels) in execute' /usr/local/rvm/gems/ruby-2.5.5/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:15:in rescue in block (2 levels) in execute': Exception while executing as [email protected]: bundle exit status: 34 (SSHKit::Runner::ExecuteError)
bundle stdout: Nothing written
bundle stderr: Warning, new version of rvm available '1.29.9', you are using older version '1.29.8'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Downloading railties-6.0.1 revealed dependencies not in the API or the lockfile
(rake (>= 0.8.7), thor (>= 0.20.3, < 2.0), method_source (>= 0)).
Either installing with --full-index or running bundle update railties should
fix the problem.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: bundle exit status: 34
bundle stdout: Nothing written
bundle stderr: Warning, new version of rvm available '1.29.9', you are using older version '1.29.8'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Downloading railties-6.0.1 revealed dependencies not in the API or the lockfile
(rake (>= 0.8.7), thor (>= 0.20.3, < 2.0), method_source (>= 0)).
Either installing with --full-index or running bundle update railties should
fix the problem.

Caused by:
SSHKit::Command::Failed: bundle exit status: 34
bundle stdout: Nothing written
bundle stderr: Warning, new version of rvm available '1.29.9', you are using older version '1.29.8'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Downloading railties-6.0.1 revealed dependencies not in the API or the lockfile
(rake (>= 0.8.7), thor (>= 0.20.3, < 2.0), method_source (>= 0)).
Either installing with --full-index or running bundle update railties should
fix the problem.

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as [email protected]: bundle exit status: 34
bundle stdout: Nothing written
bundle stderr: Warning, new version of rvm available '1.29.9', you are using older version '1.29.8'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Downloading railties-6.0.1 revealed dependencies not in the API or the lockfile
(rake (>= 0.8.7), thor (>= 0.20.3, < 2.0), method_source (>= 0)).
Either installing with --full-index or running bundle update railties should
fix the problem.
'''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions