Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to join node / view tokens with default config #1348

Closed
r0mant opened this issue Sep 29, 2017 · 4 comments
Closed

Failed to join node / view tokens with default config #1348

r0mant opened this issue Sep 29, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@r0mant
Copy link
Collaborator

r0mant commented Sep 29, 2017

I'm on v2.3.0-8-g481ef94 (latest master at the time of writing).

Following Quick Start guide, starting teleport from scratch (no config file or previous state):

[vagrant@node-1 ~]$ sudo ./teleport start

After that, an attempt to join a node fails with:

[vagrant@node-2 ~]$ sudo ./teleport start --roles=node --token=775ccbf23fab7cd4f1807a03d9f8e896 --auth-server=192.168.121.127:3025
ERRO [Node] failed to join the cluster: access denied to 'f12ae7cb-6679-41e3-828c-7805246ac656': bad username or credentials  file="service/service.go:622" func="service.(*TeleportProcess).RegisterWithAuthServer.func1"

And the corresponding error on the auth server:

ERRO token validation error: failed to validate: kind: kind is required,spec: spec is required,name: name is required  file="auth/tun.go:594" func="auth.(*AuthTunnel).passwordAuth"

Also, listing tokens also fails. This happens right after clean start, even before a join attempt:

[vagrant@node-1 ~]$ sudo ./tctl tokens ls
failed to validate: kind: kind is required,spec: spec is required,name: name is required
@lcaflc
Copy link

lcaflc commented Oct 10, 2017

+1 got the same issue.

What's the manual way to fix this ?

@wdl0809
Copy link

wdl0809 commented Oct 11, 2017

+2 got the same issue.

What's the manual way to fix this ?

@lcaflc
Copy link

lcaflc commented Oct 11, 2017

The quick way is to setup a static token in configuration (https://gravitational.com/teleport/docs/2.3/admin-guide/#adding-nodes-to-the-cluster) and use it for other nodes to join the cluster.

@wdl0809
Copy link

wdl0809 commented Oct 11, 2017

ths, got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants