dokku 部署中的 OpsWorks Chef 錯誤

dokku 部署中的 OpsWorks Chef 錯誤

一切工作正常,直到我調整了其中一個 ec2 實例的大小,現在我在 OpsWorks 中收到此錯誤:

Exception: Mixlib::ShellOut::ShellCommandFailed: 
ruby_block[git push --force dokku@localhost:api.website.com deploy:master] 
(dokku_deploy::default line 183) had an error: 
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: GITHASHKEY [K
remote:  [1G-----> Cleaning up... [K
remote: Cannot connect to the Docker daemon. Is the docker daemon running on this host? [K
remote: Cannot connect to the Docker daemon. Is the docker daemon running on this host? [K
remote:  [1G-----> Building api.website.com from herokuish... [K
remote: Cannot connect to the Docker daemon. Is the docker daemon running on this host? [K
remote: docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?. [K
remote: See 'docker run --help'. [K
remote: Cannot connect to the Docker daemon. Is the docker daemon running on this host? [K
remote: /var/lib/dokku/core-plugins/available/common/functions: line 441: test: : integer expression expected [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'

堆疊追蹤片段:

/opt/aws/opsworks/releases/20180301151623_3448-20180301151623/vendor/bundle/ruby/2.0.0/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout.rb:257:in `invalid!'
/opt/aws/opsworks/releases/20180301151623_3448-20180301151623/vendor/bundle/ruby/2.0.0/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout.rb:244:in `error!'
/var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_commons/libraries/shellout.rb:9:in `shellout'
/var/lib/aws/opsworks/cache.stage2/cookbooks/dokku_deploy/recipes/default.rb:185:in `block (3 levels) in from_file'

我不確定這是否是 OpsWorks、Chef 或 Dokku 問題。

答案1

我修復了它,.json 文件中留下了一條註釋

相關內容