Not able to log in after restoring a backup

AI-generated summary

The user A_A is experiencing issues logging into their self-hosted DigitalOcean forum after restoring a backup from a Communiteq hosted forum through the UI. Despite trying the forgot-password option, they receive a “No account matches the username” error.

A_A has Google SSO login enabled on both forums, which have different URLs. JammyDodger explains that the “Outgoing email has been disabled for non-staff users” warning is a default setting after restoring a backup.

However, A_A is unable to log in with their admin account or other user accounts, receiving an “Incorrect username, email or password” error. pfaffman suggests trying the restore again from the command line and checking the user list using the command ./launcher enter app; rails c; User.all.pluck(:username, :id).

A_A discovers that they were trying to log in with their old user base and resolves the issue after checking the user list. pfaffman clarifies that the command only shows users and does not change anything, but prefers command line restore in most cases.

Hi

I have a Communiteq hosted forum and another self-hosted forum, hosted on digitalocean. I took a backup of communiteq hosted forum today and restored it on my DO forum through the UI.

After that, I am not able to login to my DO forum. When I tried to opt for forgot-password option, I got “No account matches the username” error. Not able to log in through admin or any other user account.

This warning being shown on top of the forum:

Outgoing email has been disabled for non-staff users.

Tried going through other similar threads but could not find any solution.

I have enabled Google SSO login on both the forums. I have installed few extensions on my own on the DO forum. I do not know if either of them could cause this issue. Both the forums have different URLs.

Kindly help in:

  • Finding out the root cause of this issue
  • Logging into the DO forum
  • Knowing what happened during the restore (log) and if command line method is better than UI

Thanks.

Hello and welcome @A_A :slight_smile:

When you restore a backup disable emails is set to ‘non-staff’ so all of your users won’t be bombarded with any notifications, and when you’re ready you can then flip the setting to allow emails to everyone again (which should explain the info banner you’re seeing).

Now the backup has been restored, you should be able to login as your account from the restored site (so not the one that was there previously, if it was different). It should be exactly the same as the one that was on Communiteq.

Is this not the case?

Hi,

As I mentioned in my original post, I am not able to log in through my admin account and other fellow users are also facing the same issue. Below is the error:

Incorrect username, email or password

It is not even able to recognise the email id / user name for all users.

So need help in fixing this.

Sounds like something went wrong with the restore. I’d probably try it again from the command line. And then something like

./launcher enter app
rails c
User.all.pluck(:username, :id)

To see if you have the users you expect (you could try that before you do the restore again)

Thanks for your support. Looks like I was trying to log in through my old user base. When I run this command, I found the list of users and it worked fine afterwards.

Thanks once again. Next time, I will do it through command line.

That command just shows the users and doesn’t change anything. Though I prefer command line restore in most cases, it works exactly the same.