mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.74k stars 542 forks source link

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

Open lissyx opened 1 year ago

lissyx commented 1 year ago

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 commented 1 year ago

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

messense commented 1 year ago

I believe my patches did not touch sccache-dist.

drahnr commented 1 year ago

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

lissyx commented 1 year ago

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.