I have a multisite instance & when I try to reset password for an admin user (the only user), I receive the email, but clicking the link just takes me to the home page, not logged in, and no prompt to change the password.
Related: how do I pass a database name to rake admin:create?
I think thatās what I thought, but it doesnāt seem to be passing the database.
root@support-multi:/var/www/discourse# RAILS_DB=bob rake admin:create
Email: pfaffman@gmail.com
User with this email already exists! Do you want to reset the password for this email? (Y/n)
I didnāt name the database ābobā, so Iād expect an error here. It seems to be accessing the default database.
Data is in the same container (though I would really like to move it to a separate container).
Edit: my current hypothesis is that at some point I had screwed up the db_id numbers for a couple sub-hosts. Iām rebuilding the container with a different name now and donāt see that error. . .
Well, I got the error again with a clean build. My config file is at this gist.
Looks like it might be a bug, though Iām a novice at multisite.
I get a bunch of errors like this:
Failed to initialize site discourse_instance2
2017-05-10 21:17:15 UTC [20343-1] discourse@discourse_trena ERROR: relation "site_settings" does not exist at character 36
2017-05-10 21:17:15 UTC [20343-2] discourse@discourse_trena STATEMENT: SELECT name, data_type, value FROM site_settings
URGENT: ERROR: relation "site_settings" does not exist
LINE 1: SELECT name, data_type, value FROM site_settings
^
```