![由于状态服务器出现“禁止”错误,无法部署本地超级按钮](https://linux22.com/image/1140893/%E7%94%B1%E4%BA%8E%E7%8A%B6%E6%80%81%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%87%BA%E7%8E%B0%E2%80%9C%E7%A6%81%E6%AD%A2%E2%80%9D%E9%94%99%E8%AF%AF%EF%BC%8C%E6%97%A0%E6%B3%95%E9%83%A8%E7%BD%B2%E6%9C%AC%E5%9C%B0%E8%B6%85%E7%BA%A7%E6%8C%89%E9%92%AE.png)
质量:1.9.3 魔力:1.25.5
当我尝试部署本地 charm 时,它返回此错误,juju 正在为非本地 charm (如 RabbitMQ)工作。
它在 3 个月前就可以正常工作,当时我删除了所有本地超级按钮,但 3 个月后出现了这个错误:
当我尝试在浏览器上访问该链接时,它返回:
An error occurred during a connection to node01.maas:17070. You have received an invalid certificate.
Please contact the server administrator or email correspondent and give them the following information:
Your certificate contains the same serial number as another certificate issued by the certificate authority.
Please get a new certificate containing a unique serial number. Error code: SEC_ERROR_REUSED_ISSUER_AND_SERIAL
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
错误如下:
- 2016-09-28 00:55:07 INFO juju.cmd supercommand.go:37 运行 juju [1.25.5-wily-amd64 gc]
- 2016-09-28 00:55:07 DEBUG juju.api api.go:154 尝试缓存的 API 连接设置 - 端点 [10.196.1.169:1707168.110.100:17070]
- 2016-09-28 00:55:07 INFO juju.api api.go:266 连接到 API 地址:[10.196.1.169:17070 192.168.110.100:1707
- 2016-09-28 00:55:07 INFO juju.api apiclient.go:262 拨打“wss://10.196.1.169:17070/environment/6f95c74a-a4ed-44a-e42fb59df71e/api”
- 2016-09-28 00:55:07 INFO juju.api apiclient.go:194 连接已建立至“wss://10.196.1.169:17070/environment74a-a4ed-44a7-80b3-e42fb59df71e/api”
- 2016-09-28 00:55:07调试juju.api api.go:476 API 主机名未改变 - 未解析
- 2016-09-28 00:55:07调试juju.api api.go:506 cacheChangedAPIInfo:serverUUID =“6f95c74a-a4ed-44a7-80b3-e42fb59df71
- 2016-09-28 00:55:14错误juju.cmd supercommand.go:429无法上传 charm:Post https://10.196.1.169:17070/enviro6f95c74a-a4ed-44a7-80b3-e42fb59df71e/charms?series=trusty:禁止
解决方案:
- 破坏 juju 环境
- 运行 sudo ssh-keygen -f "/root/.ssh/known_hosts" -R Node01.maas
- 引导 juju
答案1
似乎是因为“ca-私钥”和“ca-cert”在maas.jenv! 可能存在时间上更短的解决方案,如果您有任何想法,请告诉我。
解决方案:
- 破坏 juju 环境
- 运行 sudo ssh-keygen -f "/root/.ssh/known_hosts" -R Node01.maas
- 再次引导 juju