rails c

Setting.set('http_type', 'http')
Rails.cache.clear
Set admin rights for user

rails> u = User.find_by(email: 'you@example.com')
rails> u.roles = Role.where(name: ['Agent', 'Admin'])
rails> u.save!
>> u=User.find(**USERID**)
>> u.login_failed=0
>> u.save!
>> User.find(**USERID**).login_failed
>> User.find_by(email: 'you@example.com').update!(password: 'your_new_password')

/opt/zammad/tmp/unprocessable_mail/
zammad run rake searchindex:rebuild

rake db:migrate