Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open database "preReleaseTest" #159

Open
AllanTee opened this issue Mar 11, 2022 · 3 comments
Open

Cannot open database "preReleaseTest" #159

AllanTee opened this issue Mar 11, 2022 · 3 comments

Comments

@AllanTee
Copy link

AllanTee commented Mar 11, 2022

I used my test MySQL database on another computer. Migration seems to be successful, many new tables occurred in the database.

On the first run:
ERR] Execution BackgroundServerProcess is still in the Failed state for 00:09:25.6352334 due to an exception, will be retried no more than in 00:00:15
Cannot open database "preReleaseTest" requested by the login. The login failed.

@fretje
Copy link
Contributor

fretje commented Mar 13, 2022

Seems to be a problem with hangfire... have you also changed the connectionstring and provider in hangfire.config?

@MikaelHild
Copy link
Contributor

Like fretje pointed out, check your hangfire.json under Host>Configurations>hangfire.json.
Make sure you edit the connectionstring under storage.

https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Host/Configurations/hangfire.json

@AllanTee
Copy link
Author

Hi,

FSH.Starter and FSH.Blazor apps work as expected until the first login with root credentials. I can even register a new user and I see new user data in the database. But when I login, weird question starts "Wrong tenant name" etc... I cannot log in.
Looks like I don't understand exactly how to use your apps.

However, I'm not interested in the WebAssembly app. Can FSH.Starter be used as a template for the Blazor Server app? I tried it. When I added Razor components to the template, then there were error messages about missing database migrations, etc ... Adding Migrations results with errors...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants