Uh oh - I am having a problem!
Update: my suspicion is that this is about cloudflare, and the way we block IP addresses when deleting users. Is there any way to fix this so we can log into our discourse again??
A user, tobiaseigen, is unable to log into their Discourse site due to an IP address block, suspecting it’s related to Cloudflare and user deletion. neil explains that the issue can be resolved by deleting the relevant ScreenedIpAddress record via the Rails console. neil provides Docker-specific commands to access the console and remove the blocked IP, while riking suggests using ScreenedIpAddress.all to identify the records. tobiaseigen confirms the solution worked by logging in via phone, identifying the IP, and executing the console commands.
You’ll need to go into the rails console or postgresql command line and delete the ScreenedIpAddress record for your IP address.
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy
Thanks, @neil! I’m happy to do this but don’t know how to do it. Would you be willing to give me steps? I’d really appreciate it.
Using the standard Docker install:
cd /var/discourse
sudo -E ./launcher enter app
rails c
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy
You might have used a different name than “app” for your yml file.
Use ScreenedIpAddress.all to see what’s there and which ones you need to delete.
thanks everyone! so what worked for me ultimately was: