I'm using Rails 7 and Ruby 3.2.2 After I successfully deployed the app from the local machine to the server machine (regular server, I'm not using Heroku), and then I wanted to reset the database from the server by typing :
rake db:reset
I get those errors :
rake aborted!
ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
...
...
...
Caused by:
OpenSSL::Cipher::CipherError:
...
...
...
asks: TOP => db:reset => db:drop => db:load_config => environment
(See full trace by running task with --trace)
I did follow the instructions mentioned in this post :
Rails: ActiveSupport::MessageEncryptor::InvalidMessage
but it didn't work, I'm using a VPS, not Heroku, and that might make some differences to how I can configure the server.