Chef infra Chef/OpsWorks:dokku部署上的实例失败

Chef infra Chef/OpsWorks:dokku部署上的实例失败,chef-infra,aws-opsworks,dokku,berkshelf,Chef Infra,Aws Opsworks,Dokku,Berkshelf,直到今天,他一直工作得很好。在OpsWorks Chef 11.10中获取dokku部署脚本的错误: 对资源“ruby_块[git push--force]执行操作“run”时出错dokku@localhost:api.website.com部署:master]' 完整错误跟踪: ================================================================================ Error executing action `run`

直到今天,他一直工作得很好。在OpsWorks Chef 11.10中获取dokku部署脚本的错误:

对资源“ruby_块[git push--force]执行操作“run”时出错dokku@localhost:api.website.com部署:master]'

完整错误跟踪:

================================================================================
Error executing action `run` on resource 'ruby_block[git push --force dokku@localhost:api.website.com deploy:master]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of git push --force dokku@localhost:api.website.com deploy:master ----
STDOUT: 
STDERR: warning: unable to access '/root/.config/git/attributes': Permission denied
remote: -----> Setting config vars[K
remote:        GIT_REV: HASHKEY [K
remote: api.website.com is currently being deployed. Exiting...[K
To dokku@localhost:api.website.com
! [remote rejected] deploy -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@localhost:api.website.com'
---- End output of git push --force dokku@localhost:api.website.com deploy:master ----
Ran git push --force dokku@localhost:api.website.com deploy:master returned 1

我已经检查过了,以确保最近没有第三方食谱更新,等等。有人知道问题可能是什么吗?或者从何处开始查找?

您的错误是对git属性的权限被拒绝(
/root/.config/git/attributes
),该文件上的perms是否发生了更改?该错误已存在很长时间(即使在部署工作时),我在实际实例的任何地方都找不到该文件/路径-它会在其他地方吗?手动推送Dokku是否有效(即,不是通过Chef)?@coderanger否,手动推送Dokku时出现此错误:-->无法选择buildpack,到目前为止,所有答案都无法解决此问题更新:我设置了buildpack_URL:,这将删除
无法选择构建包
,但现在由于“[remote rejected]deploy->master(pre-receive hook谢绝)”而失败,并且没有进一步的信息