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

cmd/upspin setupwriters unhelpful error when config exists but keys missing #600

Open
jasonphi opened this issue Aug 1, 2018 · 0 comments

Comments

@jasonphi
Copy link

jasonphi commented Aug 1, 2018

What version of Upspin are you using?

1e73992

What operating system and processor architecture are you using?

amd64, MacOS

What did you do?

Ran upspin setupwriters -domain=upspin.example.com foo@example.com bar@example.com

What did you expect to see?

Success

What did you see instead?

upspin: setupwriters: config.FromFile: item does not exist: open /Users/foo/upspin/deploy/upspin.example.com/storeserver/config: no such file or directory

Digging into the setupwriters command, it attempts to load <where/domain>/config and then tries <where/domain>/storeserver/config et al. if config.FromFile returns errors.NotExist. But, config.FromFile can return errors.NotExist for a number of files: the config file itself or the public/private keys for the given username.

I used upspin-ui to get a GCE instance setup and so my deploy folder and server keys were not placed in the expected locations initially. I think the intention was for the command to fail if server keys are not found, rather than giving an unrelated error about the storeserver config missing.

@jasonphi jasonphi changed the title upspin/cmd setupwriters unhelpful error when config exists but keys missing cmd/upspin setupwriters unhelpful error when config exists but keys missing Aug 6, 2018
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

1 participant