- ABP Framework version: v8.1.3
- UI Type: MVC
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
- Steps to reproduce the issue:
My portal was on 7.2.x and recently upgraded to 8.1.3 but when doing a password reset from the hosted app it ends up with an error 500 inside the password reset box. Looking at the log files this error comes up after the link has been clicked in the password reset email.
I have checked the package.json has the current 8.1.3 version in, a copy is below:
{ "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@fortawesome/fontawesome-pro": "^6.3.0", "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~3.1.3", "@volo/account": "~8.1.3", "@volo/audit-logging": "~8.1.3", "@volo/file-management": "~8.1.3", "@volo/identity": "~8.1.3", "@volo/language-management": "~8.1.3", "@volo/saas": "~8.1.3" } }
When attempting a abp install-libs I get the following:
ABP CLI 8.1.3 Found 1 projects. C:\Users\mail\source\repos\Hub\src\Hub.Web Running Yarn on C:\Users\mail\source\repos\Hub\src\Hub.Web yarn install v1.22.19 [1/4] Resolving packages... error Couldn't find package "@fortawesome/fontawesome-free@^6.5.1" required by "@abp/font-awesome@~8.1.3" on the "npm" registry. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Volo.Abp.AbpException: Could not find file '/libs/zxcvbn/zxcvbn.js'
Any ideas would be welcome as it looks like a package issue rather than something self-inflicted.
Thanks, Dave
2024-06-12 12:27:34.320 +00:00 [ERR] An unhandled exception has occurred while executing the request.
Volo.Abp.AbpException: Could not find file '/libs/zxcvbn/zxcvbn.js'
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.Bundle(IBundlerContext context)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.<>c__DisplayClass17_0.<AddToBundleCache>b__0()
at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary
2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func
1 factory)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.AddToBundleCache(String bundleName, IBundler bundler, List1 bundleFiles) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetScriptBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperScriptService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List
1 bundleItems, String bundleName)
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService2.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count) at AspNetCoreGeneratedDocument.Pages_Account_ResetPassword.<ExecuteAsync>b__19_0() at Microsoft.AspNetCore.Mvc.Razor.RazorPage.RenderSectionAsyncCore(String sectionName, Boolean required) at AspNetCoreGeneratedDocument.Themes_LeptonX_Layouts_Account_Default.<>c__DisplayClass20_0.<<ExecuteAsync>b__1>d.MoveNext() in C:\Users\mail\source\repos\Hub\src\Hub.Web\Themes\LeptonX\Layouts\Account\Default.cshtml:line 193 --- End of stack trace from previous location --- at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() at AspNetCoreGeneratedDocument.Themes_LeptonX_Layouts_Account_Default.ExecuteAsync() in C:\Users\mail\source\repos\Hub\src\Hub.Web\Themes\LeptonX\Layouts\Account\Default.cshtml:line 94 at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable
1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.
6 Answer(s)
-
0
Hi can you try deleting yarn.lock and running
abp install-libs
again? -
0
error Couldn't find package “@fortawesome/fontawesome-free@^6.5.1.1” required by “@abp/font-awesome@~8.1.3” on the “npm” registry.
, according to this log, there is a problem with the version of yourfortawesome
package, which may be preventing the installation of other packages. Can you try again after fixing this issue? -
0
Hi, I removed the lock files and tried again but get the same error 500 issue. The free font awesome package is something inside ABP pulling it as I don't see @abp/font anywhere in the solution to fix that issue myself.
Here is the output from the install-libs:
Running Yarn on C:\Users\mail\source\repos\Hub\src\Hub.Web yarn install v1.22.19 info No lockfile found. [1/4] Resolving packages... warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > vinyl-fs > glob-stream > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 error Couldn't find package "@fortawesome/fontawesome-free@^6.5.1" required by "@abp/font-awesome@~8.1.3" on the "npm" registry. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > vinyl-fs > glob-stream > unique-stream > through2-filter@3.1.0: this package has been deprecated for breaking semver major
-
0
Can you try the package.json content I provided?
{ "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@fortawesome/fontawesome-pro": "^6.3.0", "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~3.1.3", "@volo/account": "~8.1.3", "@volo/audit-logging": "~8.1.3", "@volo/file-management": "~8.1.3", "@volo/identity": "~8.1.3", "@volo/language-management": "~8.1.3", "@volo/saas": "~8.1.3" }, "resolutions": { "@fortawesome/fontawesome-free": "6.5.1" } }
-
0
Hi, I fixed the authentication issue for the Pro version and added your extra line afterwards it is now working.
Thank you, I can get the clients site uploaded this evening which will keep them happy.
As this is a issue with the core implementation rather than my custom work will it still use up a support ticket allowance?
Cheers, Dave
-
0
This is not a bug on the abp side, so there will be no ticket refunds. I am closing this question as it has been resolved.