@james
Hi,
First of all, thank you very much for taking the time to respond to my question and provide a solution to my issue — I really appreciate it!
In the end, I managed to log in to Mastodon by manually creating an admin user.
Here’s the command I used inside the Mastodon directory:
RAILS_ENV=production bundle exec rails console << 'SCRIPT'
user = User.new(email: 'user@example.com', password: 'StrongPassword123!', password_confirmation: 'StrongPassword123!', agreement: true, confirmed_at: Time.now.utc)
user.account = Account.new(username: 'username')
user.save!
user.approve!
user.update(role: UserRole.find_by(name: 'Owner'))
puts "User created successfully: #{user.account.username} (#{user.email})"
SCRIPT
Only after creating the admin user this way, I was able to successfully access Mastodon.
Best regards,
Yossi