का उपयोग कर की तैनाती मैं निम्न त्रुटि जब Capistrano का उपयोग कर तैनात करने के लिए कोशिश कर रहासाइक सिंटेक्स त्रुटि जब Capistrano
टोपी उत्पादन तैनात
[whenever:update_crontab] rolling back
* executing "ls -x /home/appuser/app_assets_production/releases"
servers: ["10.1.171.106"]
[10.1.171.106] executing command
command finished in 3450ms
* executing "cd /home/appuser/app_assets_production/releases/20161103140152 && RAILS_ENV=production bundle exec whenever --update-crontab app_assets --set environment=production --roles db"
servers: ["10.1.171.106"]
[10.1.171.106] executing command
** [out :: 10.1.171.106] Using /home/appuser/.rvm/gems/ruby-2.1.2
** [out :: 10.1.171.106] [write] crontab file updated
command finished in 11877ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/appuser/app_assets_production/releases/20161104113421; true"
servers: ["10.1.171.106"]
[10.1.171.106] executing command
** [out :: 10.1.171.106] Using /home/appuser/.rvm/gems/ruby-2.1.2
command finished in 3256ms
/home/manoj/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:371:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from /home/manoj/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:371:in `parse_stream'
from /home/manoj/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /home/manoj/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:245:in `load'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/recipes/deploy/assets.rb:63:in `block (3 levels) in load'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/callback.rb:38:in `call'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `each'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `trigger'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:23:in `invoke_task_directly_with_callbacks'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/callback.rb:38:in `call'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `each'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:141:in `trigger'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/recipes/deploy.rb:229:in `block (3 levels) in load'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:56:in `transaction'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/recipes/deploy.rb:228:in `block (2 levels) in load'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/recipes/deploy.rb:196:in `block (2 levels) in load'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/execute.rb:45:in `each'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/execute.rb:34:in `execute!'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/lib/capistrano/cli/execute.rb:14:in `execute'
from /home/manoj/.rvm/gems/[email protected]_assets/gems/capistrano-2.14.2/bin/cap:4:in `<top (required)>'
from /home/manoj/.rvm/gems/[email protected]_assets/bin/cap:23:in `load'
from /home/manoj/.rvm/gems/[email protected]_assets/bin/cap:23:in `<main>'
from /home/manoj/.rvm/gems/[email protected]_assets/bin/ruby_executable_hooks:15:in `eval'
from /home/manoj/.rvm/gems/[email protected]_assets/bin/ruby_executable_hooks:15:in `<main>'
मैं कुछ खोज किया था और करने की कोशिश की निम्नलिखित
- मैं boot.rb में निम्न को जोड़ने का प्रयास किया, फिर config/deploy.rb फ़ाइल, यह काम नहीं किया।
require 'yaml' YAML::ENGINE.yamler = 'syck'
मैंने कोशिश की manifest.yml और asset_manifest.yml फ़ाइल को हटाने, उसके बाद फिर से तैनात करने की कोशिश की। यह
मैंने काम नहीं किया .bashrc फ़ाइल और कोई वाक्यविन्यास त्रुटि नहीं है।
अगर आप यहां जो खो रहे हैं, तो कृपया मदद करें।