A user, Seferi, is unable to log in after restoring a Discourse forum backup on a local setup behind a Raspberry Pi Nginx reverse proxy. Despite successful restoration, login attempts fail with an ‘unknown error’ or expired password reset links. The issue is resolved by ensuring the server time is correct and adjusting the force_https setting in the Rails console. Seferi initially faced issues with CSRF errors and incorrect force_https syntax, but after correcting the command to SiteSetting.force_https = falsemikechristopher and pfaffman, login was restored. Vaping_Community clarified the correct syntax. Seferi then asked how to delete unnecessary admin accounts, which pfaffman advised by removing admin rights before deletion. Moses_Jeong noted a typo in the command.
I migrated my forum to a local device behind a Raspberry Pi Nginx reverse proxy. Installed discourse and registered and went straight to Admin section to restore from my backup. (/var/discourse/shared/standalone/backups/default) I restored successfully but afterwards I couldn’t login anymore. I tried rebuilding the app but it didn’t help. Site works fine now but it doesn’t let me login, When i try to login it says unknown error in red, when i click forgot password and enter my username i get the email to choose new password but when i enter the new password and click ok it says “Sorry, that password change link is too old. Select the Log In button and use ‘I forgot my password’ to get a new link.”
What can I do?
Thanks for the reply mate. Server time is correct. I followed the steps and created a new admin account but when I try to login with it, it just shows back the login screen again.. Doesn’t work.. And sometime it says unknown error in red after trying to login..