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

scheduler <-> server token needs to be regenerated after updating to current master #1422

Open
lissyx opened this issue Nov 23, 2022 · 4 comments

Comments

@lissyx
Copy link
Contributor

lissyx commented Nov 23, 2022

I was running a build off master from a few months, and I did setup sccache-dist a while ago (april 2021 likely).

Previous HEAD was c6bc422 Remove var lookup tests
Current HEAD is 7218dfd Some minor github updates (#1401)

After rebuilding trying to run would fail with:

$ RUST_LOG=debug SCCACHE_LOG=debug sudo ./sccache-src/target/release/sccache-dist server --config server.conf 
sccache-dist: error: Could not decode scheduler auth jwt                                                                   
sccache-dist: caused by: JSON error: missing field `exp` at line 1 column 34                                               

The only solution was to regenerate a token via:

 ./sccache-src/target/release/sccache-dist auth generate-jwt-hs256-server-token --server xxx --secret-key yyy

Neither the IP/port nor the secret key were changed, but the token indeed was different.

@sylvestre
Copy link
Collaborator

@messense i guess it is unrelated to your recent changes, right ?

@messense
Copy link
Contributor

I believe my patches did not touch sccache-dist.

@drahnr
Copy link
Collaborator

drahnr commented Nov 25, 2022

Is this only an issue from master or from the last release?

@lissyx
Copy link
Contributor Author

lissyx commented Nov 25, 2022

Is this only an issue from master or from the last release?

I dont know, I shared the sha1 I was before and I am on now.

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

4 participants