The first one is odd. Cannot cleanup failed restore because a restore is in
process.
Sounds like the failure path of restore has not been well tested and it
breaks the system. Probably leaves the wrong password saved. (new bootstrap
password, I would guess)
I'd also be curious what the original failure was that broke restore such
that it wanted to cleanup in the first place.
The first one is odd. Cannot cleanup failed restore because a restore is in
process.
Sounds like the failure path of restore has not been well tested and it
breaks the system. Probably leaves the wrong password saved. (new bootstrap
password, I would guess)
I'd also be curious what the original failure was that broke restore such
that it wanted to cleanup in the first place.
John
=:->
On Sep 6, 2017 22:56, "Nicholas Skaggs" <email address hidden>
wrote:
> ** Description changed: reports. vapour. ws/releases/ issue/564c9f527 49a564c5f12e153 qa.jujucharms. com/releases/ issue/564c9f527 49a564c5f12e153 uuid_1_ name_1" , ns: "juju.actions", com/juju/ juju/cmd/ juju/backups/ restore. go:419: } { com/juju/ juju/api/ backups/ restore. go:137: cannot perform restore: com/juju/ juju/api/ apiclient. go:754: } { com/juju/ retry/retry. go:187: } {github. com/juju/ juju/rpc/ uuid_1_ name_1" , ns: /bugs.launchpad .net/bugs/ 1671329 /bugs.launchpad .net/juju/ +bug/1671329/ +subscriptions
>
> As seen at
> - http://
> + http://
>
> An ambiguous case where Juju didn't bring up a replacement bootstrap
> instance. In debug we can see
>
> 06:38:51 ERROR juju.api.backups restore.go:136 could not clean up after
> failed restore attempt: cannot complete restore: <nil>: juju restore is in
> progress - API is disabled to prevent data loss
> 06:38:51 ERROR cmd supercommand.go:458 cannot perform restore: <nil>:
> restore failed: cannot open state: cannot create index: unauthorized mongo
> access: not authorized on juju to execute command { createIndexes:
> "actions", indexes: [ { name: "model-
> key: { model-uuid: 1, name: 1 } } ] } (unauthorized access)
> 06:38:51 DEBUG cmd supercommand.go:459 (error details: [{
> github.
> github.
> <nil>} {github.
> github.
> client.go:149: } {restore failed: cannot open state: cannot create index:
> unauthorized mongo access: not authorized on juju to execute command {
> createIndexes: "actions", indexes: [ { name: "model-
> "juju.actions", key: { model-uuid: 1, name: 1 } } ] } (unauthorized
> access)}])
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https:/
>
> Title:
> Restore backup failed (unauthorized mongo access)
>
> To manage notifications about this bug go to:
> https:/
>