部署错误 - psych.rb:205:在`parse&#39; :( <unknown>):在第1行第6列的此上下文中不允许映射值(Psych :: SyntaxError)

时间:2016-04-18 13:37:02

标签: ruby-on-rails ruby capistrano

由于网络超时,似乎部署无法完成,我不得不按CTRL + C进行回滚。现在,当我尝试再次部署时,它会给出以下错误。

我不确定为什么会发生这种情况,因为在本地或服务器上没有更改/编辑任何内容。看起来Capistrano的某些设置已损坏/你能建议我有什么选择来解决这个问题吗?

deploy.rb文件看起来很好,因为我已经使用它直到所有部署。任何时候都没有问题。

*** [whenever:update_crontab] rolling back
  * executing "ls -x /home/jason/apps/leads/releases"
    servers: ["64.103.76.29"]
    [64.103.76.29] executing command
    command finished in 669ms
  * executing "cd /home/jason/app/releases/20160418060908 && bundle exec whenever --update-crontab leads --set environment=production --roles db"
    servers: ["64.103.76.29"]
    [64.103.76.29] executing command
 ** [out :: 64.103.76.29] [write] crontab file updated
    command finished in 1135ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/jason/app/releases/20160418120015; true"
    servers: ["64.103.76.29"]
    [64.103.76.29] executing command
    command finished in 712ms
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): mapping values are not allowed in this context at line 1 column 6 (Psych::SyntaxError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'
    from /Library/Ruby/Gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy/assets.rb:26:in `parse_manifest'
    from /Library/Ruby/Gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
    from /Library/Ruby/Gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'

编辑 - 第二条评论链接psych.rb error when deploying with Capistrano 'mapping not allowed in this context'解决了这个问题。有2个清单json文件,我删除了两个,现在已经部署了。

0 个答案:

没有答案