我正在尝试在Scaleway VC1服务器上部署我的rails应用程序(Ubuntu 14.04LTS / 2 x86 64bits Core / 2Go RAM)。
我使用AZK,特别是azukiapp / deploy docker镜像(版本0.0.7
)。
我不幸在部署期间遇到问题,正如此日志所示:
| > azk deploy -vvv
PLAY [all] *********************************************************************
TASK [setup] *******************************************************************
Enter passphrase for key '/root/.ssh/xxx':
ok: [default]
TASK [configure : Create user and add him to docker group] *********************
changed: [default]
TASK [configure : Accept azk terms of use] *************************************
changed: [default]
TASK [configure : Ensure /etc/resolver path exists] ****************************
ok: [default]
TASK [configure : Ensure required directories exists] **************************
changed: [default] => (item=/home/git/d1fdb3d.git)
changed: [default] => (item=/home/git/d1fdb3d)
changed: [default] => (item=/home/git/.ssh)
changed: [default] => (item=/home/git/bin)
TASK [configure : Ensure authorized_keys exists] *******************************
changed: [default]
TASK [configure : Create git repository] ***************************************
changed: [default]
TASK [configure : Ensure repository permissions] *******************************
changed: [default]
TASK [configure : Apply templates] *********************************************
changed: [default] => (item={u'dest': u'/home/git/bin/azk-start', u'src': u'azk-start.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/git-checkout', u'src': u'git-checkout.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/rollback', u'src': u'rollback.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/versions', u'src': u'versions.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/d1fdb3d.git/hooks/post-receive', u'src': u'post-receive.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/etc/dbus-1/system.d/Upstart.conf', u'src': u'Upstart.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk-agent.conf', u'src': u'azk-agent.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk-all.conf', u'src': u'azk-all.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk.conf', u'src': u'azk.conf.j2', u'mode': u'0644', u'owner': u'root'})
failed: [default] (item={u'dest': u'/etc/resolver/dev.azk.io', u'src': u'resolver.j2', u'mode': u'0644', u'owner': u'root'}) => {"failed": true, "item": {"dest": "/etc/resolver/dev.azk.io", "mode": "0644", "owner": "root", "src": "resolver.j2"}, "msg": "AnsibleUndefinedVariable: 'ansible_docker0' is undefined"}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @playbooks/configure.retry
PLAY RECAP *********************************************************************
default : ok=8 changed=6 unreachable=0 failed=1
似乎与Ansible有关。我应该在部署之前在远程服务器上安装一些东西吗?
如果有帮助,这是我的Azkfile.js的部署部分:
deploy: {
image: {docker: 'azukiapp/deploy:0.0.7'},
mounts: {
'/azk/deploy/src': path('.'),
'/azk/deploy/.ssh': path('#{env.HOME}/.ssh'), // Required to connect with the remote server
'/azk/deploy/.config': persistent('deploy-config')
},
scalable: {default: 0, limit: 0},
envs: {
GIT_REF: 'azk',
REMOTE_HOST: 'xxx.xxx.xxx.xxx',
SSH_PRIVATE_KEY_FILE: 'xx'
}
}
感谢您的时间/帮助。
答案 0 :(得分:1)
Edouard,看起来Docker安装工作不正常。
请登录您的私人服务器并检查docker
是否可用以及您是否有名为docker0
的网络接口。
欢迎加入Azuki's channel on Gitter以获得更好的支持体验。