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: setupserver: signature does not match #610

Open
dncohen opened this issue Sep 7, 2018 · 6 comments
Open

cmd/upspin: setupserver: signature does not match #610

dncohen opened this issue Sep 7, 2018 · 6 comments

Comments

@dncohen
Copy link

dncohen commented Sep 7, 2018

This may be the same issue as (closed) #260 . There, a couple people have reported the same message and there's no clear fix.

I've had some trouble setting up a local storage server. I've tried and re-tried various commands. Deleted and recreated directories, and basically tried everything I could think of twice. Maybe I've done a number of things wrong to this point. Anyway, here's an error I can reproduce but don't know how to get past it.

[upspin@upspin ~]$ upspin setupserver -domain=upspin.example.com -host upspin.example.com
User "upspin@upspin.example.com" already exists on key server.
Configured upspinserver at "upspin.example.com:443".
upspin: setupserver: client.MakeDirectory: upspin@upspin.example.com/: I/O error:
	dir/remote("upspin.example.com:443").Put:
	rpc.Invoke: 401 Unauthorized: rpc.SessionForRequest: permission denied:
	user upspin@upspin.example.com: invalid signature: invalid operation: signature does not match

Note that if I run setupserver again, I get a different error (every time I retry the same command...

[upspin@upspin ~]$ upspin setupserver -domain=upspin.example.com -host upspin.example.com
User "upspin@upspin.example.com" already exists on key server.
upspin: setupserver: upspinserver returned status 400 Bad Request:
Parse: user.Parse: user setupserver: invalid operation: user name must contain one @ symbol

To reproduce the earlier signature does not match error, I need to stop upspinserver, delete the upspin/server directory that was created there, and restart that process.

At this point, i'm unable to setup the server and I'd appreciate any help troubleshooting. Thanks.

@dncohen
Copy link
Author

dncohen commented Sep 7, 2018

My best guess is that I used a hostname in the -domain parameter. I'm trying to setup from scratch. Currently stuck on #611 . If I'm able to get past that I'll close this issue out.

@n2vi
Copy link
Contributor

n2vi commented Sep 7, 2018 via email

@dncohen
Copy link
Author

dncohen commented Sep 7, 2018

I appreciate the help. When I wrote this issue, I was using "upspin.example.com" as the domain, and host. Looking over the directions, they use "upspin.example.com" as host, and "example.com" as domain. So I started over following that example.

I created a user "upspin@upspin.example.com" manually, following the "sign up for an Upspin user account" step.

upspin later created "upspin@example.com" automatically, during the "configure a domain name and create an Upspin user for the server" step (https://upspin.io/doc/server_setup.md)

Notice that when host and domain were the same, both accounts are named "upspin@upspin.example.com". Could it be that the server was attempting to register that name, but I'd already taken it?

@n2vi
Copy link
Contributor

n2vi commented Sep 7, 2018 via email

@dncohen
Copy link
Author

dncohen commented Sep 7, 2018

I'm using "example.com" here on github. I didn't use "example.com" in the actual setup.

I'm saying that I chose "upspin@upspin.dave-cohen.com" to be my local admin account. And upspin chose "upspin@upspin.dave-cohen.com" to be the server's account, because is prepends "upspin@" to the domain. I didn't realize when I chose my admin account name that they would collide.
(I'm not sure that was the cause of the problem, because I still had some other issues to work out on the server.)

@n2vi
Copy link
Contributor

n2vi commented Sep 8, 2018 via email

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