Hi, Here is what I was able to find and I was wondering if you have any ideas...
We isolated the problem to a small change we recently made. We changed the APB setting value of the mail send from address (Abp.Mailing.DefaultFromAddress
) to a new value. This single change caused the exception. When we revert the send from mail address to its original value, everything works as expected.
After looking closer at the logs, it looks like for some reason, at the point you click 'Submit' on the Account/ForgotPassword
page, the system attempts to direct to the Account/ResetPassword
page with an invalid UserID and TenantID. The Account/ResetPassword
page shouldn't be directed to until the user clicks the reset link in the email.
It looks like the steps that are happening is..
Account/ForgotPassword
pageAccount/PasswordResetLinkSet
pageAccount/ResetPassword
page with an invalid UserID and TenntID before the user clicks the link in the email and exception occurs.Account/ResetPassword
page with the correct UserID and TenantID``
Hi,
What's strange is that the exception is logged both when resetting a password (forgot password link) and also when confirming an email address (email confirmation link sent). In both situations the emails are delivered correctly to the end user even though the exception occurs in the error log.
We've seen ABP operate differently in Azure before https://support.abp.io/QA/Questions/5024/Invalid-Email-Confirmation-Token-Always-Occuring#answer-3a0b1aac-3ee4-e947-105d-f2f20f9ee31b and implemented workarounds with the help of ABP support.
I'll see if I can deploy an empty/newly templated base ABP app to Azure in order to replicate, which should eliminate the possibility that any of our logic/overrides are contributing to the issue.
The Azure logs show that there are no testers/attackers hitting the web application.
Hi,
I checked that, the user's email we are entering is not associated with a deleted account.
It's happening with any user email that we test with. For each user, a different ID is specified in the exception, but for all users the exception references an ID that doesn't exist anywhere in the database.
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi we are getting the below exception in the logs when we run in production. We don't seem to have the issue in local development, but are receiving the exception when we deploy the application to an Azure Appservice. The exception refers to an IdentityUser
with an id of f8f7d016-0050-a3aa-96a3-6b3cc9e3e1c2
not being found.
We confirmed that there is NO AbuUser record existing with this ID in either our tenant DB or host DB. We don't know where this ID is coming from or where to look from here.
Thanks in advance as we need a solution ASAP. Regards, Brian
Thanks @maliming,
This looks good :-)
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi, We are using the Lepton theme in ABP Commercial w/Blazor and we noticed that on mobile displays, the search button on the tenant management page is often extending outside of it's containing card component.
Any ideas or workarounds are greatly appreciated.
Thanks in advance, Brian
Thanks @maliming
Our pipeline is working now with your help.
Quick question - should we always be using the latest version of the CLI in the pipeline, even if we are not on the latest version of ABP. For instance, we are on ABP 7.2.1 and using CLI version 7.0.1 (this was the latest CLI version when we upgraded to APB 7.2.1) in development. Should our pipeline target the same version we are using in development or is it safe to just always use the latest version of the CLI regardless of the ABP version.
Thanks!
Hi @maliming,
Thank you. Any ideas on how to go about installing the abp CLI in the pipeline?
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
We are deploying our application to an Azure App Service. The application startup exceptions because of the wwwroot/libs
folder not existing.
I know that libs
folder contents are excluded from source control (.gitignore) and that in a development environment we can run abp install-libs
, but in a production deployment process using a DevOps build/release pipeline (running in a MS build agent), how can we accomplish the install-libs
functionality for a deployment to an App Service. Can an app service run an ABP CLI command?
Any suggestions is greatly appreciated.
-Brian
Thanks as always @maliming
This was very helpful!