Juju-wordpress 安装失败

Juju-wordpress 安装失败

我使用的是 ubuntu 14.04,在 MaaS 服务器上安装了 juju。起初我遇到了这个问题在此处输入图片描述

为了解决这个问题,我做了juju ssh

sudo pico /etc/apt/sources.list

我去了这里获取代码并将其添加到这里 /etc/apt/sources.list。

sudo apt-get update我收到错误信息后由于公钥不可用,无法验证以下签名

所以我做了第二种方法这里并且它成功了。

我进入我的 MaaS 服务器并执行了juju resolved --retry wordpress/0该操作,3 分钟后收到此错误:

unit-wordpress-0[1322]: 2015-05-25 17:20:11 INFO unit.wordpress/0.install logger.go:40 Adding system user `statd' (UID 107) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:11 INFO unit.wordpress/0.install logger.go:40 Adding new user `statd' (UID 107) with group `nogroup' ...
unit-wordpress-0[1322]: 2015-05-25 17:20:11 INFO unit.wordpress/0.install logger.go:40 Not creating home directory `/var/lib/nfs'.
unit-wordpress-0[1322]: 2015-05-25 17:20:11 INFO unit.wordpress/0.install logger.go:40 statd start/running, process 6817
unit-wordpress-0[1322]: 2015-05-25 17:20:11 INFO unit.wordpress/0.install logger.go:40 gssd stop/pre-start, process 6851
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 idmapd start/running, process 6901
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 Setting up php5 (5.5.9+dfsg-1ubuntu4.9) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 Setting up php-auth-sasl (1.0.6-1) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 Processing triggers for php5-fpm (5.5.9+dfsg-1ubuntu4.9) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 php5-fpm stop/waiting
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 php5-fpm start/running, process 6945
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 Processing triggers for ureadahead (0.100.0-16) ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + modprobe nfs
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Making /mnt/tmp dir ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.juju-log cmd.go:247 Making /mnt/tmp dir ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + mkdir -p /mnt/tmp
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + chmod 1777 /mnt/tmp
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Making /mnt/logs ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.juju-log cmd.go:247 Making /mnt/logs ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + mkdir -p /mnt/logs/php-fpm
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + chmod -R 1777 /mnt/logs
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Making Ramdisk mount point and config ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.juju-log cmd.go:247 Making Ramdisk mount point and config ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + mkdir -p /mnt/ramdisk/proxy-cache
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + mkdir -p /mnt/ramdisk/phpfpm-cache
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + chmod -R 1777 /mnt/ramdisk
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Installing PHP-FPM pool configs ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.juju-log cmd.go:247 Installing PHP-FPM pool configs ...
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + rm -f /etc/php5/fpm/pool.d/www.conf
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + install -o root -g root -m 0644 files/charm/php/php5-fpm_pool.d_www.conf /etc/php5/fpm/pool.d/www.conf
unit-wordpress-0[1322]: 2015-05-25 17:20:12 INFO unit.wordpress/0.install logger.go:40 + rsync -az /var/lib/php5 /mnt/
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + rm -rf /var/lib/php5
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + ln -s /mnt/php5 /var/lib/
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Creating random secret key ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.juju-log cmd.go:247 Creating random secret key ...
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + '[' '!' -f .wp-secret ']'
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + pwgen -s 10 1
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + juju-log 'Installing wp-cli to make this charm'\''s life a little easier ...'
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.juju-log cmd.go:247 Installing wp-cli to make this charm's life a little easier ...
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 + git clone https://github.com/wp-cli/wp-cli.git /usr/src/wp-cli
unit-wordpress-0[1322]: 2015-05-25 17:20:13 INFO unit.wordpress/0.install logger.go:40 Cloning into '/usr/src/wp-cli'...
unit-wordpress-0[1322]: 2015-05-25 17:20:34 INFO unit.wordpress/0.install logger.go:40 fatal: unable to access 'https://github.com/wp-cli/wp-cli.git/': Failed to connect to github.com port 443: Connection refused
unit-wordpress-0[1322]: 2015-05-25 17:20:34 ERROR juju.worker.uniter.operation runhook.go:86 hook "install" failed: exit status 128

在此处输入图片描述

有什么解决办法吗?

答案1

看起来重要的错误是:

logger.go:40 fatal: unable to access 'https://github.com/wp-cli/wp-cli.git/': Failed to connect to github.com port 443: Connection refused

这表明 maas 节点没有连接到互联网。或者 github 不可用(我认为在本文发布时它正在遭受 DDoS 攻击)

相关内容