I have recently Upgraded to Orchestrator 20.10.8 and right after that i stated getting multiple errors, one of them i was able to resolve but other remains, listing out the details below
Error -1. On adding new folder, i am not able to provision bots or do any kind of activities on it, even the users who are provided access to it, not able to access it. I have already checked the roles and permissions, all look okay. As soon as i restart the orchestrator app service (hosted on azure stack), the error goes away. (Error Message- Folder does not exists or user does not have access)
Error -2. If any user already has access to any folder and i change the role of the user, we still face the same kind of error, he is not able to perform any activity. (Error Message- Folder does not exists or user does not have access). The same work around works for this as well, we restart the app service and the error goes away.
Error message:
Folder Does not exists or user does not have access
I have capture the application(orchestrator) error logs as well from the azure cloud. Below is the detialed exception:
System.Runtime.InteropServices.COMException (0x800704CD): An operation was attempted on a nonexistent network connection. (0x800704CD)
--- End of inner exception stack trace ---
at int Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOOperation.GetResult(short token)
at async Task Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ReadBody()
at void System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
at void System.IO.Pipelines.Pipe.GetReadResult(out ReadResult result)
at ReadResult System.IO.Pipelines.Pipe.GetReadAsyncResult()
at async ValueTask<int> Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ReadAsync(Memory<byte> memory, CancellationToken cancellationToken)
at async ValueTask<int> Microsoft.AspNetCore.Server.IIS.Core.HttpRequestStream.ReadAsyncInternal(Memory<byte> buffer, CancellationToken cancellationToken)
at async Task<int> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
at async Task Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool<byte> bytePool, Nullable<long> limit, CancellationToken cancellationToken)
at async Task<InputFormatterResult> Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
at async Task Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
at async Task<ModelBindingResult> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, object value)
at void Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider+<>c__DisplayClass0_0+<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()+Awaited(?)
at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)
System.Runtime.InteropServices.COMException (0x800704CD): An operation was attempted on a nonexistent network connection. (0x800704CD)
I found the solution for this.
I had redis connection details added in app service configurations and somehow it was not working for me, i moved it to Orchestrator.dll.config and it resolved my issue.