certificate signed by unknown authority

Bug #1303778 reported by Tim Van Steenburgh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

tvansteenburgh@trusty-vm:~⟫ juju status
ERROR Unable to connect to environment "local".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
environment is not bootstrapped

tvansteenburgh@trusty-vm:~⟫ ll /var/lib/juju/locks/
total 8
drwxr-xr-x 2 root root 4096 Apr 7 00:26 ./
drwxr-xr-x 5 root root 4096 Mar 26 15:58 ../

tvansteenburgh@trusty-vm:~⟫ sudo lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART
-----------------------------------------------------
juju-precise-template STOPPED - - NO
juju-trusty-template STOPPED - - NO

tvansteenburgh@trusty-vm:~⟫ juju bootstrap
uploading tools for series [trusty precise]
Logging to /home/tvansteenburgh/.juju/local/cloud-init-output.log on remote host
Starting MongoDB server (juju-db-tvansteenburgh-local)
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-tvansteenburgh-local)

tvansteenburgh@trusty-vm:~⟫ juju status
ERROR state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")
ERROR state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")
ERROR state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")

^C2 tvansteenburgh@trusty-vm:~⟫ juju --version
1.17.7-trusty-amd64

Curtis Hovey (sinzui)
tags: added: local-provider ppc64el
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.19.0
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

New info on this. I was able to reproduce this repeatedly, destroying the environment, rebootstrapping, and getting this error when I'd run `juju status`. While asking for help in #IRC, it was suggested that I run bootstrap with the `--debug` flag and paste the resulting output. After doing so, the error no longer occurred (`juju status` returned normally and I was able to subsequently deploy a workload using the local provider). In case it helps, here's the output of that `juju bootstrap --debug` run: http://pastebin.ubuntu.com/7217166/

Revision history for this message
Antonio Rosales (arosales) wrote :

I am also hitting this issue:
http://paste.ubuntu.com/7225537/

I am able to bootstrap, but deploying a service or issuing a stat results in certificate errors. I have tried removing the Juju files in my specified Juju root-dir. I have removed ~/.juju/environments/local.jenv. I have kill mongo process. I don't have any lxc containers running. However, I still get this certificate error on local provider.

-thanks,
Antonio

Revision history for this message
Evan (ev) wrote :
Download full text (6.4 KiB)

/var/log/juju-evan-local/unit-rabbitmq-server-0.log:

2014-04-13 19:45:28 INFO juju runner.go:254 worker: restarting "api" in 3s
2014-04-13 19:45:31 INFO juju runner.go:262 worker: start "api"
2014-04-13 19:45:31 INFO juju apiclient.go:114 state/api: dialing "wss://10.0.3.1:17070/" 2014-04-13 19:45:31 ERROR juju apiclient.go:119 state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"") 2014-04-13 19:45:31 ERROR juju runner.go:220 worker: exited "api": websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")
2014-04-13 19:45:31 INFO juju runner.go:254 worker: restarting "api" in 3s
2014-04-13 19:45:34 INFO juju runner.go:262 worker: start "api"
2014-04-13 19:45:34 INFO juju apiclient.go:114 state/api: dialing "wss://10.0.3.1:17070/" 2014-04-13 19:45:34 ERROR juju apiclient.go:119 state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"") 2014-04-13 19:45:34 ERROR juju runner.go:220 worker: exited "api": websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")
2014-04-13 19:45:34 INFO juju runner.go:254 worker: restarting "api" in 3s
2014-04-13 19:45:37 INFO juju runner.go:262 worker: start "api"
2014-04-13 19:45:37 INFO juju apiclient.go:114 state/api: dialing "wss://10.0.3.1:17070/" 2014-04-13 19:45:37 ERROR juju apiclient.go:119 state/api: websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"") 2014-04-13 19:45:37 ERROR juju runner.go:220 worker: exited "api": websocket.Dial wss://10.0.3.1:17070/: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"local\"")
2014-04-13 19:45:37 INFO juju runner.go:254 worker: restarting "api" in 3s

juju bootstrap --debug (unfortunately lost most of this out of my scrollback buffer):

2014-04-13 19:23:13 INFO juju.environs.tools tools.go:100 filtering tools by architecture: amd64
2014-04-13 19:23:13 DEBUG juju.environs.simplest...

Read more...

Revision history for this message
Evan (ev) wrote :

Sure enough, further units deploy without issue. It's just evan-local-machine-1 that's a problem.

Revision history for this message
Evan (ev) wrote :

I've filed bug 1307215 for what I think led to this bug for me.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.19.0 → 1.19.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.