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

Station Core error: Cannot load Station ID from file. Cannot decrypt Station ID file. #1726

Open
bajtos opened this issue Jul 23, 2024 · 3 comments
Labels
bug 🐛 Something isn't working

Comments

@bajtos
Copy link
Member

bajtos commented Jul 23, 2024

We have received bug reports from our users where the Station Desktop seems to freeze after starting - it is not performing any jobs. After investigation, we discovered that Station Core is not able to load the identity from the encrypted file, because the file cannot be decrypted using the passphrase derived from Station Desktop's built-in wallet.

Error: 
Cannot load Station ID from file "/home/secret/.local/state/filecoin-station-desktop/secrets/station_id". 
Cannot decrypt Station ID file.
Did you configure the correct PASSPHRASE?

This problem typically occurs when the keychain gets messed up, and Station Desktop generates a new wallet at the start.

Workaround

Delete the Station ID file mentioned in the error message and restart Station Desktop. At the next start, Station Core will generate a new identity and create a new station_id file with contents encrypted using the new wallet key.

The downside is that we will see two Station instances in our system, so please don’t do this too often. In the future, we want to incentivize longer-living station instances, so your Station will earn fewer rewards after you reset the Station ID.

Links

@bajtos
Copy link
Member Author

bajtos commented Jul 23, 2024

Cross-posting from one of the Slack chat threads:

It would be good for Station to give some error indication when things go wrong. For example, if the station_id exists but there is no seed phrase (because e.g. the keychain is not unlocked for whatever reason) there should be a big dialog stating this. Otherwise people can lose funds (as in, you have some Filecoin in your wallet, but can't get to the wallet for whatever reason)

@bajtos bajtos added the bug 🐛 Something isn't working label Jul 23, 2024
@bajtos
Copy link
Member Author

bajtos commented Aug 1, 2024

A fix that should be quick to implement:

  • Station Core returns a well-defined exit code when it cannot decrypt the identity file
  • Station Desktop detects this exit code and deletes the identity file
  • At the next launch, Station Core generates a new identity and encrypts it using the new passphrase

This fix will rotate the station ID, which is not ideal. However, I expect our users to change their wallet addresses very infrequently, so this shouldn't be too much of a problem.

An argument can be made that when you change your wallet address, then we should treat your Station instance as a new one, in which case rotating the Station ID is actually the right thing to do.

@juliangruber
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants