You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: