I upgraded my juju controller to 2.8.0 and completely lost the controller. I need to recover these models and I need some help to do that. I’m perfectly fine with the solution being to remove this controller and add it again. My only goal at this point is recovering my models.
During the upgrade to 2.8.0, something went horribly wrong and my configuration file didn’t end up with apiserver addresses inside and things seemed to fall over. In my attempt to fix this, I realized that I know very little about what is going on with the controller and how it works.
For example, I thought maybe upgrading to 2.8.1 could help, but I looked for a jujud snap and apt package and didn’t find anything. I’m not sure how the controller runs and what is supposed to run outside of the mongod process, which is running.
The log file seems unhelpful for me to get hints for google, but that could be my ignorance again. I see this on startup now:
2020-08-19 02:49:23 INFO juju.cmd supercommand.go:91 running jujud [2.8.0 0 d816abe62fbf6787974e5c4e140818ca08586e44 gc go1.14.4]
2020-08-19 02:49:23 DEBUG juju.cmd supercommand.go:92 args: []string{"/var/lib/juju/tools/machine-0/jujud", "machine", "--data-dir", "/var/lib/juju", "--machine-id", "0", "--debug"}
2020-08-19 02:49:23 DEBUG juju.utils gomaxprocs.go:24 setting GOMAXPROCS to 2
2020-08-19 02:49:23 DEBUG juju.agent agent.go:575 read agent config, format "2.0"
2020-08-19 02:49:23 INFO juju.cmd.jujud agent.go:138 setting logging config to "<root>=WARNING;unit=DEBUG"
2020-08-19 02:49:24 ERROR juju.worker.dependency engine.go:671 "api-caller" manifold worker returned unexpected error: [21a522] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
2020-08-19 02:49:27 ERROR juju.worker.dependency engine.go:671 "api-caller" manifold worker returned unexpected error: [21a522] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
2020-08-19 02:49:31 ERROR juju.worker.dependency engine.go:671 "api-caller" manifold worker returned unexpected error: [21a522] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
2020-08-19 02:49:35 ERROR juju.worker.dependency engine.go:671 "api-caller" manifold worker returned unexpected error: [21a522] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
2020-08-19 02:49:40 ERROR juju.worker.apicaller connect.go:204 Failed to connect to controller: invalid entity name or password (unauthorized access)
It seems like some sort of auth issue, but is it auth with mongo? I see some keys in the agent config, but I’m not sure what they should match.
Is there a troubleshooting document that I haven’t found yet that explains the controller and what things should look like and how to validate startup of the various processes?