Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-950

Deploying via Capistrano Returns Error about jruby_opts

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Deploying via Capistrano on 2.1.1 worked perfectly, but after upgrading to 2.1.2, I receive an error during deployment "NameError: undefined local variable or method `jruby_opts' for #<Capistrano::Configuration:0x6b66faac>"

      I've tried this on multiple servers with multiple different Rails apps.

      jsmartins-MacBook-Pro:cloud.journeybm.com jsmartin$ jruby -S cap deploy

      • executing `deploy'
      • executing `deploy:update'
        • transaction: start
      • executing `deploy:update_code'
        executing locally: "git ls-remote git@github.com:josmar52789/cloud.journeybm.com.git master"
        command finished in 2123ms
      • executing "git clone --depth 1 git@github.com:josmar52789/cloud.journeybm.com.git /home/torquebox/webapps/journey/releases/20121002182710 && cd /home/torquebox/webapps/journey/releases/20121002182710 && git checkout -b deploy ff68023a12c4977fd2b745d868809c15565aff6a && (echo ff68023a12c4977fd2b745d868809c15565aff6a > /home/torquebox/webapps/journey/releases/20121002182710/REVISION)"
        servers: ["198.58.98.104"]
        Password:
        [198.58.98.104] executing command
        • [198.58.98.104 :: out] Cloning into '/home/torquebox/webapps/journey/releases/20121002182710'...
        • [198.58.98.104 :: err] Switched to a new branch 'deploy'
          command finished in 3082ms
      • executing `deploy:finalize_update'
        triggering before callbacks for `deploy:finalize_update'
      • executing `deploy:assets:symlink'
      • executing "rm -rf /home/torquebox/webapps/journey/releases/20121002182710/public/assets &&\\\n mkdir -p /home/torquebox/webapps/journey/releases/20121002182710/public &&\\\n mkdir -p /home/torquebox/webapps/journey/shared/assets &&\\\n ln -s /home/torquebox/webapps/journey/shared/assets /home/torquebox/webapps/journey/releases/20121002182710/public/assets"
        servers: ["198.58.98.104"]
        [198.58.98.104] executing command
        command finished in 221ms
      • executing `bundle:install'
          • [deploy:update_code] rolling back
      • executing "rm -rf /home/torquebox/webapps/journey/releases/20121002182710; true"
        servers: ["198.58.98.104"]
        [198.58.98.104] executing command
        command finished in 229ms
        NameError: undefined local variable or method `jruby_opts' for #<Capistrano::Configuration:0x6b66faac>
        method_missing at org/jruby/RubyKernel.java:227
        method_missing_with_variables at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:122
        load_into at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/torquebox-capistrano-support-2.1.2/lib/torquebox/capistrano/recipes.rb:70
        call at org/jruby/RubyProc.java:270
        call at org/jruby/RubyProc.java:220
        fetch at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:87
        protect at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110
        protect at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110
        fetch at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:78
        [] at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:95
        method_missing_with_variables at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:120
        load_into at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/torquebox-capistrano-support-2.1.2/lib/torquebox/capistrano/recipes.rb:77
        call at org/jruby/RubyProc.java:270
        call at org/jruby/RubyProc.java:220
        fetch at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:87
        protect at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110
        protect at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:110
        fetch at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/variables.rb:78
        define_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/bundler-1.2.1/lib/bundler/deployment.rb:39
        instance_eval at org/jruby/RubyKernel.java:2045
        invoke_task_directly at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139
        invoke_task_directly_with_callbacks at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25
        execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89
        find_and_execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:101
        call at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/callback.rb:38
        trigger at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:123
        each at org/jruby/RubyArray.java:1615
        trigger at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:123
        invoke_task_directly_with_callbacks at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:23
        execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89
        send at org/jruby/RubyKernel.java:2080
        method_missing at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193
        finalize_update at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:110
        call at org/jruby/RubyProc.java:270
        (eval) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:223
        instance_eval at org/jruby/RubyKernel.java:2045
        invoke_task_directly at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139
        invoke_task_directly_with_callbacks at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25
        execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89
        send at org/jruby/RubyKernel.java:2080
        method_missing at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193
        update_code at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:110
        call at org/jruby/RubyProc.java:270
        (eval) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:203
        transaction at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:56
        send at org/jruby/RubyKernel.java:2076
        method_missing at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193
        (eval) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:202
        instance_eval at org/jruby/RubyKernel.java:2045
        invoke_task_directly at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139
        invoke_task_directly_with_callbacks at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25
        execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89
        send at org/jruby/RubyKernel.java:2080
        method_missing at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:193
        update at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/namespaces.rb:110
        call at org/jruby/RubyProc.java:270
        (eval) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:170
        instance_eval at org/jruby/RubyKernel.java:2045
        invoke_task_directly at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:139
        invoke_task_directly_with_callbacks at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/callbacks.rb:25
        execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:89
        find_and_execute_task at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/configuration/execution.rb:101
        execute_requested_actions at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:46
        each at org/jruby/RubyArray.java:1615
        execute_requested_actions at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:45
        execute_requested_actions_with_help at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/cli/help.rb:19
        execute! at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:34
        execute at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/lib/capistrano/cli/execute.rb:14
        (root) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/gems/capistrano-2.12.0/bin/cap:4
        load at org/jruby/RubyKernel.java:1058
        (root) at /Users/jsmartin/.rvm/gems/jruby-1.6.7.2@cloud.journeybm.com/bin/cap:19

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                benbrowning Ben Browning
                Reporter:
                josmar52789 Joshua Martin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: