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

"duplicate node key" when running two golink services on the same machine with different hostnames #28

Open
vielmetti opened this issue Dec 8, 2022 · 1 comment

Comments

@vielmetti
Copy link
Contributor

My goal: use one machine to run two different instances of "golink", so that I can have two independent sets of bookmarks.

This didn't work out of the box - I created a new key, started up the second instance with the -hostname flag, and then got the error message on the console Duplicate node key.

My suspicion is that I'm running into this:

tailscale data files in the tsnet-golink directory inside [os.UserConfigDir](https://pkg.go.dev/os#UserConfigDir)

and that I have to set two separate os.UserConfigDir paths to keep the two things distinct.

@willnorris
Copy link
Member

Today, there are two ways you could get a different state directory... run the second instance as a different user, so that there is a different user config directory (basically what you're pointing out above), or copy the golink binary and rename it something else. tsnet includes the binary name in the state directory so that two different tsnet programs can side by side.

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