filecoin-station / desktop

Station is a visionary desktop app that connects your computer’s idle resources to the Filecoin network and rewards you with FIL. Taking part is simple, just launch the app and start earning.
https://www.filstation.app
Other
60 stars 13 forks source link

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

Open bajtos opened 1 month ago

bajtos commented 1 month ago

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

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

A fix that should be quick to implement:

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

https://github.com/filecoin-station/core/pull/563