Closed egachi closed 2 years ago
Do you think adding extra logging on this part can help us to get the complete path and see if there are any issue with the format?
//Public declaration
Nop.Services.Logging.DefaultLogger _logger = (Nop.Services.Logging.DefaultLogger)Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Logging.ILogger>();
//Inside GenerateCssFiles() method...
lock (_lock)
{
//store json file to see a generated config file (for debugging purposes)
//BundleHandler.AddBundle(configFilePath, bundle);
//process
//custom logging event...
_logger.InsertLog(Nop.Core.Domain.Logging.LogLevel.Information, "Debugging: Checking ConfigFilePath !", "Date:" + DateTime.Now.ToString() + "ConfigFilePath: " + configFilePath.ToString(), null);
_processor.Process(configFilePath, new List<Bundle> {bundle});
}
We couldn't reproduce it. If you find any conditions that can help to reproduce the issue, we'll reopen it.
Closed #5817
nopCommerce version: 4.3.0.0
Environment:
Steps to reproduce the problem: Issue is randomly happening without any code changes or deployments, it can happen after a restart. We can't reproduce the issue in another environment (same configurations and code), it is just happening in production, the only difference can be request load.
I see several threads with bundling not working as expected in Linux:
• Css bundling not working · Issue #3440 · nopSolutions/nopCommerce (github.com) • Bundling minification on linux · Issue #4135 · nopSolutions/nopCommerce (github.com)
Checking further on the BundlerMinifier library, there are some validations for Linux or Windows urls file path locations based on the current directory. https://github.com/madskristensen/BundlerMinifier/blob/master/src/BundlerMinifier.Core/Helpers/FileHelpers.cs#L74
There is a possibility that in certain conditions the path changes since using a Windows File Share and ending into a different path format which it can be complaining but this is just a theory.
Are you aware of any possible issue when using .NET core 3.1 with docker and mounting application files under a Windows File Share?
Any insights will be appreciate.
Thanks