can't login as admin
-
Can't log in to my server. It is located at staging.researchstudyonline.com:9011.
My password keeps failing. I then tried the "forgot password" link. It says that it sent an email but the email never arrives.I had to split the server into two different copies. One at researchstudyonline.com and one at staging.researchstudyonline.com.
The old one, researchstudyonline.com:9011 I can get into fine. But the new one staging.researchstudynline.com:9011 won't take my password. Does each possibly have its own apiKey? I created a second copy of the fusionAuth database file since I thought that two different servers couldn't share a single file. Was I wrong?
What to do?
-
I assume you are self-hosting FusionAuth, but let me know if this is not the case.
I had to split the server into two different copies. One at researchstudyonline.com and one at staging.researchstudyonline.com.
The database is the source of state in FusionAuth. So if you copied the database, then the same users and their logins should exist in that new copy. For how you have set up FusionAuth, I would expect your staging environment would have its own database as well as production.
When I click on http://staging.researchstudynline.com/ I see that the link is broken. You may want to review your configuration and ensure that you have properly set up the new FusionAuth instance (http://staging.researchstudynline.com:9011/) and its associated database.
I am linking the appropriate documentation which may aid you further in installing a new FusionAuth instance and database:
- https://fusionauth.io/docs/v1/tech/installation-guide/
- https://fusionauth.io/docs/v1/tech/installation-guide/common-configuration/
- https://fusionauth.io/docs/v1/tech/reference/configuration/
Lastly, there are a few different ways that you could replicate a database. One such way would be to use the
pg_dump
command. Once you have your dumped database, create a new empty database, and usepg_restore
to import your data. Once you have your new database, you would stand up a new FusionAuth instance and point that instance at this new datastore. I would encourage you to use your search-fu to find articles that will speak to how to complete a database replication if you have any other questions about this process.Hope this helps!
Thanks,
Josh