arnulf.hanauer_193730 avatar image
arnulf.hanauer_193730 asked Erick Ramirez commented

How I can resume bootstrap if authentication fails?

I am busy replacing a dead node using the "cassandra.replace.address" option in the file.

The initial bootstrap works fine, but one of the streams is aborted with a peer reset/broken pipe. So now I am trying to continue the bootstrap.

The documentation refers to "nodetool bootstrap resume" but when I try this command, I get the following authentication error and am unable to continue.

$ nodetool -u xxxxxx -pw yyyyy bootstrap resume
nodetool: Failed to connect to '' - FailedLoginException: 'Cannot login as server authentication setup is not yet completed'.

What is the correct way to restart a bootstrap resume when Cassandra authentication is enabled.

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

It appears that you're running the command while the node hasn't finished initialising yet so you can't login to the node.

If you're not able to resolve that issue, I'd recommend temporarily disabling authentication then restart the node as a workaround. Just remember that you need to enable authentication again after the node has successfully bootstrapped. Cheers!

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

arnulf.hanauer_193730 avatar image arnulf.hanauer_193730 commented ·

Thanks Erick,

Quick follow-up question: Would that require disabling authentication for the entire cluster (multiple nodes across multiple DC's) and restarting all the nodes or just disable authentication for the single replacement node and then restart the bootstrap/replacement from scratch i.e. delete all existing data/logs etc?

0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ arnulf.hanauer_193730 commented ·

Just for the node that you're bootstrapping so you can run commands locally without having to authenticate.

You shouldn't need to delete anything since you are resuming the bootstrap. Cheers!

0 Likes 0 ·