我是Juju的新手,並且正在嘗試部署一個服務,其中SO是Ubuntu 16.10 yakkety和juju版本是2.0.2-yakkety-amd64。使用的雲是手動的,環境沒有問題的引導,並且一臺機器被添加到雲中。Juju未能部署服務
所以我就這個問題時,我試圖WordPress的服務部署到增加機號0運行:
juju deploy cs:wordpress/yakkety --to 0 --series yakkety --debug
但我後面的公司代理,所以我就:
11:16:37 ERROR cmd supercommand.go:458 cannot resolve charm URL "cs:wordpress/yakkety": cannot get "/wordpress/yakkety/meta/any?include=id&include=supported-series&include=published": Get https://api.jujucharms.com/charmstore/v5/wordpress/yakkety/meta/any?include=id&include=supported-series&include=published: x509: certificate signed by unknown authority
然後我決定從本地下載jujucharms的魅力,並使用本地存儲庫來部署wordpress服務,運行:
juju deploy ./wordpress/ --to 0 --series yakkety --debug
但我得到:
11:25:07 INFO juju.cmd supercommand.go:63 running juju [2.0.2 gc go1.6.3]
11:25:07 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "deploy", "./wordpress/", "--to", "0", "--series", "yakkety", "--debug"}
11:25:07 INFO juju.juju api.go:72 connecting to API addresses: [*.*.*.*:17070 *.99.0.1:17070]
11:25:07 INFO juju.api apiclient.go:530 dialing "wss://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/api"
11:25:08 INFO juju.api apiclient.go:466 connection established to "wss://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/api"
11:25:08 DEBUG juju.juju api.go:263 API hostnames unchanged - not resolving
11:25:08 DEBUG juju.cmd.juju.application deploy.go:762 cannot interpret as local bundle: read ./wordpress/: is a directory
11:25:08 DEBUG httpbakery client.go:244 client do POST https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety {
11:25:09 DEBUG httpbakery client.go:246 } -> error [{/build/juju-core-sGG418/juju-core-2.0.2/_build/src/gopkg.in/macaroon-bakery.v1/httpbakery/client.go:274: } {Post https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety: Forbidden}]
11:25:09 DEBUG juju.api monitor.go:35 RPC connection died
11:25:09 ERROR cmd supercommand.go:458 POST https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety: Post https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety: Forbidden
11:25:09 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/application/deploy.go:823: } {github.com/juju/juju/api/client.go:299: } {github.com/juju/juju/api/client.go:315: } {github.com/juju/juju/api/client.go:482: } {/build/juju-core-sGG418/juju-core-2.0.2/_build/src/github.com/juju/httprequest/client.go:193: POST https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety} {/build/juju-core-sGG418/juju-core-2.0.2/_build/src/gopkg.in/macaroon-bakery.v1/httpbakery/client.go:274: } {Post https://*.*.*.*:17070/model/ea08fba2-0150-4bf7-84d0-95949a55b835/charms?revision=93&schema=local&series=yakkety: Forbidden}])
朱朱模型的配置:
Attribute From Value
agent-metadata-url default ""
agent-stream default released
agent-version model 2.0.2.1
apt-ftp-proxy default ""
apt-http-proxy default ""
apt-https-proxy default ""
apt-mirror default ""
automatically-retry-hooks default true
default-series default xenial
development default false
disable-network-management default false
enable-os-refresh-update default true
enable-os-upgrade default true
firewall-mode default instance
ftp-proxy model http://user:[email protected]:port/
http-proxy model http://user:[email protected]:port/
https-proxy model http://user:[email protected]:port/
ignore-machine-addresses default false
image-metadata-url default ""
image-stream default released
logforward-enabled default false
logging-config model <root>=WARNING;unit=DEBUG
no-proxy default ""
provisioner-harvest-mode default destroyed
proxy-ssh default false
resource-tags model {}
ssl-hostname-verification model false
test-mode model true
transmit-vendor-metrics default true
我已經下載了朱朱的源代碼,我試圖瞭解軟件,在這種情況下,特別是如何HTTP請求工作所以我們可以在日誌中看到錯誤集中在那裏。
我該如何繼續修復錯誤?