Scenario: multitenant Orchard 1.9.3 deployment running in a single instance Azure Web App where all settings & media is stored in Azure blob storage.
After enabling File System Output Cache (so all cache items are stored in the App_Data\OutputCache folder, I see entries being added to the folder just fine. But it appears that items with long URLs are throwing errors and causing 500's to be thrown. Sometimes it's a long URL, but sometimes common campaign management links (UTM codes for Google Analytics) are causing issues to as they make long URLs too with the extra querystring options. The error, as you can see below, is Invalid Path when it tries to find the file in cache.
Here are a few of the errors (note the links in the errors work now as I've disabled cache and the errors have gone away).
I noticed there were changes to the File System Output Cache in the 1.9.x release... are long URLs an issue?
2016-05-09 00:00:17,596 [19] Orchard.OutputCache.Filters.OutputCacheFilter - Default - An unexpected error occured while reading a cache entry
http://www.andrewconnell.com/archive/2012/07/30/sharepoint-2010-metadata-based-navigation-in-publishing-sites-series-overview.aspx
System.ArgumentException: Invalid path
at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:17,628 [19] Orchard.OutputCache.Filters.OutputCacheFilter - Default - An unexpected error occured while reading a cache entry
http://www.andrewconnell.com/archive/2012/07/30/sharepoint-2010-metadata-based-navigation-in-publishing-sites-series-overview.aspx
System.ArgumentException: Invalid path
at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:32,565 [30] Orchard.OutputCache.Filters.OutputCacheFilter - mscloudshow - An unexpected error occured while reading a cache entry
http://www.microsoftcloudshow.com/blog/episode-087-catching-up-with-paul-schaeflein-on-azure-ad-improvements?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+MicrosoftCloudShow+(Microsoft+Cloud+Show)
System.ArgumentException: Invalid path
at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:32,581 [30] Orchard.OutputCache.Filters.OutputCacheFilter - mscloudshow - An unexpected error occured while reading a cache entry
http://www.microsoftcloudshow.com/blog/episode-087-catching-up-with-paul-schaeflein-on-azure-ad-improvements?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+MicrosoftCloudShow+(Microsoft+Cloud+Show)
System.ArgumentException: Invalid path
at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
Related
I am trying to setup my azure iot edge device (Linux Ubuntu 18.04 - Linux Containers), but as soon as I apply the configuration with the Connectionstring my EdgeAgent fails on first provisioning with the following error message
System.Security.Cryptography.CryptographicException: The X509 certificate could not be added to the store.
---> System.UnauthorizedAccessException: Access to the path '/home/edgeagentuser/.dotnet/corefx/cryptography/x509stores/root' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Internal.Cryptography.Pal.DirectoryBasedStoreProvider.AddCertToStore(ICertificatePal certPal)
at Internal.Cryptography.Pal.DirectoryBasedStoreProvider.Add(ICertificatePal certPal)
--- End of inner exception stack trace ---
at Internal.Cryptography.Pal.DirectoryBasedStoreProvider.Add(ICertificatePal certPal)
at System.Security.Cryptography.X509Certificates.X509Store.Add(X509Certificate2 certificate)
at Microsoft.Azure.Devices.Edge.Util.CertificateHelper.InstallCertificates(IEnumerable`1 certificateChain, ILogger logger) in /mnt/vss/_work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/CertificateHelper.cs:line 228
at Microsoft.Azure.Devices.Edge.Agent.Service.Program.MainAsync(IConfiguration configuration) in /mnt/vss/_work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Service/Program.cs:line 187
More details can be found here:
GitHub Issue
Managed to resolve the issue, by specifying the edgeHub and edgeAgent container versions explicitly. Check Github issue for more detail.
Whenever I start Azure Cloud shell, it crashes with below error. Any idea how to get rid of this error. Any help is appreciated.
Requesting a Cloud Shell.Succeeded.
Connecting terminal...
Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Management.Automation.Configuration.PowerShellConfig' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.Automation.Platform' threw an exception.
---> System.IO.IOException: Bad message
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at System.Management.Automation.Platform.SelectProductNameForDirectory(XDG_Type dirpath) in /PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs:line 343
at System.Management.Automation.Platform..cctor() in /PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs:line 145
--- End of inner exception stack trace ---
at System.Management.Automation.Configuration.PowerShellConfig..ctor() in /PowerShell/src/System.Management.Automation/engine/PSConfiguration.cs:line 91
at System.Management.Automation.Configuration.PowerShellConfig..cctor() in /PowerShell/src/System.Management.Automation/engine/PSConfiguration.cs:line 57
--- End of inner exception stack trace ---
at System.Management.Automation.Utils.GetPolicySettingFromConfigFile[T](ConfigScope[] preferenceOrder) in /PowerShell/src/System.Management.Automation/engine/Utils.cs:line 784
at System.Management.Automation.Utils.GetPolicySetting[T](ConfigScope[] preferenceOrder) in /PowerShell/src/System.Management.Automation/engine/Utils.cs:line 760
at Microsoft.PowerShell.CommandLineParameterParser.GetConfigurationNameFromGroupPolicy() in /PowerShell/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs:line 578
at Microsoft.PowerShell.ConsoleHost.ParseCommandLine(String[] args) in /PowerShell/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs:line 289
at Microsoft.PowerShell.UnmanagedPSEntry.Start(String[] args, Int32 argc) in /PowerShell/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs:line 82
at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args) in /PowerShell/src/powershell/Program.cs:line 71
Aborted (core dumped)
This might be something in your profile or a corrupt clouddrive image. To "factory reset" your cloudshell do the following:
Navigate to the resource group used for the cloudshell storage
Navigate to the storage account in this resource group
Navigate to "File Share", you should see a a share called "cloudshellshare".
Delete this share.
Restart/Start cloudshell. This should give a factory fresh cloudshell.
I am not able to publish azure functionapp using CLI tool azure-functionapp-core-tools version 3. I am getting the below error -
Creating archive for current directory...
> /usr/local/Cellar/azure-functions-core-tools#3/3.0.2534/gozip -base-dir "/Users/sibaprasad/works/BCD/TalentReferralFunctionApp" -input-file "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpMKd4Nb.tmp" -output "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpVq6XLV.tmp"
Uploading 752.3 KB [##############################################################################]
Creating archive for current directory...
> /usr/local/Cellar/azure-functions-core-tools#3/3.0.2534/gozip -base-dir "/Users/sibaprasad/works/BCD/TalentReferralFunctionApp" -input-file "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpTkz1SB.tmp" -output "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpu0zXFJ.tmp"
Uploading 752.3 KB [##############################################################################]
Creating archive for current directory...
> /usr/local/Cellar/azure-functions-core-tools#3/3.0.2534/gozip -base-dir "/Users/sibaprasad/works/BCD/TalentReferralFunctionApp" -input-file "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpF3WEPY.tmp" -output "/var/folders/lx/36x5q85s79lc2cp1gg5ps7h00000gp/T/tmpMKPt2x.tmp"
Uploading 752.3 KB [##############################################################################]
Azure.Functions.Cli.Common.CliException: Error uploading archive (BadRequest).
at Azure.Functions.Cli.Helpers.RetryHelper.Retry(Func`1 func, Int32 retryCount, TimeSpan retryDelay, Boolean displayError) in D:\a\1\s\src\Azure.Functions.Cli\Helpers\RetryHelper.cs:line 29
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishZipDeploy(Site functionApp, Func`1 zipFileFactory) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 680
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishRunFromPackageLocal(Site functionApp, Func`1 zipFileFactory) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 500
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.HandleLinuxDedicatedPublish(Site functionApp, Func`1 zipStreamFactory) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 405
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishFunctionApp(Site functionApp, GitIgnoreParser ignoreParser, IDictionary`2 additionalAppSettings) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 313
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.RunAsync() in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 173
at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 66
The error message occurred occasionally.
You can try to publish a python v2 function with the follow command: func azure functionapp publish app-name --build-native-deps --no-bundler.
Or you can delete the function app, app service plan, and associated storage account and starting over from scratch to get around this problem.
I am trying to build a connector for ADF to snowflake using .Net snowflake data but after the build test got failed due to Incorrect user and password
I am using a snowflake on azure can any one suggest do I need to add more config in parameter.json file Please find the below error.
Already tried without password test scenario.
https://github.com/snowflakedb/snowflake-connector-net/
error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFConnectionIT.TestConnectWithDifferentRole() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFConnectionIT.cs:line 214
Skipped TestOktaConnection
Skipped TestSSOConnectionWithUser
Skipped TestSSOConnectionWithWrongUser
Failed TestSwitchDb
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFConnectionIT.TestSwitchDb() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFConnectionIT.cs:line 160
Failed TestUnknownConnectionProperty
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFConnectionIT.TestUnknownConnectionProperty() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFConnectionIT.cs:line 144
Failed TestSelectStatement
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFDbAdaptorIT.TestSelectStatement() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFDbAdaptorIT.cs:line 22
Failed TestCancelExecuteAsync
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFDbCommandIT.TestCancelExecuteAsync() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFDbCommandIT.cs:line 402
Failed TestCancelQuery
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConnection.Open() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data\Client\SnowflakeDbConnection.cs:line 113
at Snowflake.Data.Tests.SFDbCommandIT.TestCancelQuery() in D:\LululemonResources\VS\snowflake-connector-net-master\snowflake-connector-net-master\Snowflake.Data.Tests\SFDbCommandIT.cs:line 207
Failed TestDataSourceError
Error Message:
Snowflake.Data.Client.SnowflakeDbException : Incorrect username or password was specified.
Stack Trace:
at Snowflake.Data.Client.SnowflakeDbConne
Make sure you check the ACCOUNT and HOST values in your connection string. Docs here: https://github.com/snowflakedb/snowflake-connector-net/blob/master/README.md
You need to ensure you put whole host url in with rigion (eg australia-east) not just account.snowflakecomputing.com. E.g. HOST= XXX.australia-east.snowflakecomputing.com
The following github repository might save you a bunch of time. It is a .NET framework for Azure Data Factory that leverages Azure Functions to execute. Until Microsoft has a certified source and sink with ADF, this is being leveraged by several Snowflake customers.
https://github.com/jeremiahhansen/snowflake-connector-adf
I just migrated/upgraded from a Windows 2003 Perforce 2009.2 installation to a Windows 2008 R2 2010.2 box and noted that after the upgrade, the only issue that seems to present is the inability to create/edit workspaces from the UI - because it tries to set the SubmitOptions parameter and throws
Error at line 0 of field 'SubmitOptions' in client specification.
Unknown field name 'SubmitOptions'.
Yes, I'm able to create/edit client spec using p4 client, as long as I don't try to include the SubmitOptions parameter.
As far as I can tell, all aspects of the upgrade succeeded (p4d replacement, p4d -xu to upgrade the database, license in place, etc.)
Any ideas? Haven't found a whisper of this issue online (and my Google-fu is pretty good...)
Updates:
Output from p4 spec -o client (I've removed all comments)
# A Perforce Spec Specification.
Fields:
301 Client word 32 key
302 Update date 20 always
303 Access date 20 always
304 Owner word 32 optional
305 Host word 32 optional
306 Description text 128 optional
307 Root line 64 required
308 AltRoots llist 64 optional
309 Options line 64 optional
310 LineEnd select 12 optional
311 View wlist 64 optional
Words:
View 2
Formats:
Client 1 normal
Update 2 L
Access 4 L
Owner 3 R
Host 5 R
LineEnd 0 L
Values:
Options noallwrite/allwrite,noclobber/clobber,nocompress/compress,unlocked/locked,nomodtime/modtime,normdir/rmdir
LineEnd local/unix/mac/win/share
In the end, submitting the following additions to the client spec resolved the issue:
Fields:
313 SubmitOptions select 25 optional
314 Stream line 64 optional
Formats:
SubmitOptions 0 L
Values:
SubmitOptions submitunchanged/submitunchanged+reopen/revertunchanged/revertunchanged+reopen/leaveunchanged/leaveunchanged+reopen
I added those to the previous values and submitted the changes using the combination of
p4 configure set spec.custom=1
p4 spec -i client < fixedp4clientspec.txt
The first command was required because I received an error of "Custom spec of type 'client' is not allowed. Set spec.custom=1 to override." when I tried to update the spec without it. And I don't actually know that line 314 was needed to address this problem, but it was suggested when diffed against a spec that worked elsewhere.
Thanks for the assistance!