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

"Initialization failed" on teleport start #2525

Closed
kontsevoy opened this issue Jan 25, 2019 · 0 comments
Closed

"Initialization failed" on teleport start #2525

kontsevoy opened this issue Jan 25, 2019 · 0 comments
Assignees

Comments

@kontsevoy
Copy link
Contributor

kontsevoy commented Jan 25, 2019

Problem

This is a regression. Something changed in the error handling on teleport daemon start-up so it's masking true errors now.

Before:

$ teleport start
mkdir /var/lib/teleport: permission denied

Now (Teleport v3.1.0-alpha.4 git:v3.1.0-alpha.4-224-g7b84e5d7):

# WTF
$ teleport start
error: initialization failed

# Only a developer would know to run this:
$ teleport start -d
ERROR REPORT:
Original Error: *os.PathError mkdir /var/lib/teleport: permission denied
Stack Trace:
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/lib/service/service.go:487 github.com/gravitational/teleport/lib/service.NewTeleport
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/lib/service/service.go:362 github.com/gravitational/teleport/lib/service.newTeleportProcess
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/lib/service/service.go:372 github.com/gravitational/teleport/lib/service.Run
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/tool/teleport/common/teleport.go:170 github.com/gravitational/teleport/tool/teleport/common.OnStart
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/tool/teleport/common/teleport.go:151 github.com/gravitational/teleport/tool/teleport/common.Run
	/home/ekontsevoy/go/src/github.com/gravitational/teleport/tool/teleport/main.go:29 main.main
	/opt/go/src/runtime/proc.go:207 runtime.main
	/opt/go/src/runtime/asm_amd64.s:2362 runtime.goexit
User Message: initialization failed

Solution

"initialization failed" thing must go away completely. It hides the true errors and is 100% not helpful. We must be losing users who're trying Teleport for the first time without even knowing it.

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

No branches or pull requests

2 participants