After I deployed an R Model as a Web service with MRsDeploy, I have this problem:

ssr 1 Reputation point
2020-07-08T11:39:39.607+00:00

Here is log in ComputeNode's logs:

2020-07-08 18:53:14.539 +08:00 [Warning] {"CorrelationId":"5337019b-bd2f-43f0-81de-554fcfb8867e","Subject":{"Message":"The process cannot access the file 'D:\mlserver\R_SERVER\o16n\rserve\workdir\conn11396\DeployREngineConsole90691ff8-5e43-4eb6-b18d-81f61dbb187e.txt' because it is being used by another process.","StackTrace":" at System.IO.FileSystem.DeleteFile(String fullPath)\r\n at Microsoft.MLServer.ComputeNode.IOWrappers.FileProvider.DeleteFiles(IEnumerable1 pathList)\r\n at Microsoft.MLServer.ComputeNode.ShellManagement.RShell.LoadVariablesAndDoExecution(String code, Dictionary2 inputParameters, SanitizedString1[] outputParameterNames)\r\n at Microsoft.MLServer.ComputeNode.ShellManagement.ShellBase.<>c__DisplayClass39_0.<<ExecuteAsync>b__0>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.MLServer.ComputeNode.ShellManagement.Syncronizer.InvokeSingleAsync[T](Func1 operation)\r\n at Microsoft.MLServer.ComputeNode.ShellManagement.ShellBase.ExecuteAsync(String code, Dictionary2 inputParameters, SanitizedString1[] outputParameterNames)\r\n at Microsoft.MLServer.ComputeNode.ServiceInvocation.ShellServiceInvocation.ExecuteServiceAsync(IShell shell, String code, Dictionary2 inputParameters, ParameterDefinition[] inputParameterDefinitions, ParameterDefinition[] outputParameterDefinitions, String[] outputFileNames)\r\n at Microsoft.MLServer.ComputeNode.ServiceInvocation.ShellManagerServiceInvocation.ExecuteServiceAsync(IShellManager shellManager, String code, Dictionary2 inputParameters, ParameterDefinition[] inputParameterDefinitions, ParameterDefinition[] outputParameterDefinitions, String[] outputFileNames, Func2 preExecutionFunc, TaskCompletionSource1 shellFromPoolResultTcs, Action postShutdownAction)\r\n at Microsoft.MLServer.ComputeNode.ShellManagement.ServiceCache.ExecuteAsync(String name, String version, Dictionary2 inputParameters, TaskCompletionSource1 shellFromPoolResultTcs, Action postShutdownAction)\r\n at Microsoft.MLServer.ComputeNode.Controllers.CachedServicesController.ExecuteServiceAsync(String name, String version, Dictionary`2 inputParameters)\r\n at lambda_method(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()"}

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 48,156 Reputation points
    2020-07-13T17:57:57.557+00:00

    @ssr
    Thanks for reaching out to us, this is not supported here. We are sorry. Please go to the following forum for help. Thanks.

    1. Machine Learning Server support forum
    2. Microsoft R Open support forum

    Thanks very much for choosing Microsoft and we are sorry for all inconveniences.

    Regards,
    Yutong

    0 comments No comments