Sidekiq jobs are failing for 1 of my users

Yeah it’s been around 2-3 years now - since the beta. I just rebuilt/upgraded Discourse to the latest commit this morning so all of the logs I posted are from that version. After entering my app I tried executing the code you provided both on bash and in irb and both gave me errors:

bash:

/var/www/discourse# u = User.find(3530)
bash: syntax error near unexpected token `('

irb:

irb(main):002:0> u = User.find(3530)
NameError: uninitialized constant User
        from (irb):2
        from /usr/local/bin/irb:11:in `<main>'

Where and with what exactly am I supposed to execute those commands?