When the computer restart, then most of the time I’m unable to login, I got the below error when trying to long.
The process cannot access the file ‘D:\Users\xxx.xxxx\AppData\Roaming\UiPath\UiPath.settings’ because it is being used by another process.
Full error detail:
RemoteException wrapping System.IO.IOException: The process cannot access the file ‘D:\Users\xxx.xxxx\AppData\Roaming\UiPath\UiPath.settings’ because it is being used by another process.
at System.IO.FileSystemAclExtensions.ValidateFileHandle(SafeFileHandle handle, String fullPath)
at System.IO.FileSystemAclExtensions.g__CreateFileHandleInternal|12_0(String fullPath, FileMode mode, FileSystemRights rights, FileShare share, Int32 flagsAndAttributes, SECURITY_ATTRIBUTES* secAttrs)
at System.IO.FileSystemAclExtensions.CreateFileHandle(String fullPath, FileMode mode, FileSystemRights rights, FileShare share, FileOptions options, FileSecurity security)
at System.IO.FileSystemAclExtensions.Create(FileInfo fileInfo, FileMode mode, FileSystemRights rights, FileShare share, Int32 bufferSize, FileOptions options, FileSecurity fileSecurity)
at UiPath.Robot.Core.ProtectedFileUtils.CreateProtectedFile(String path)
at UiPath.Service.Utils.SystemUtils.SaveProtected(String path, String content)
at UiPath.Service.Orchestrator.OrchestratorController.SaveLocalSettings(ConnectionInfoMachineKey connectionInfo)
at UiPath.Service.Orchestrator.OrchestratorController.PerformConnect_MachineKeyAsync(ConnectionInfoMachineKey connectionInfo)
at UiPath.Service.Orchestrator.OrchestratorController.PerformConnect_MachineKeyAsync(ConnectionInfoMachineKey connectionInfo)
at UiPath.Service.Orchestrator.OrchestratorController.ConnectToServer(IConnectionInfo connectionInfo, CancellationToken ct)
at UiPath.Service.UserHost.InteractiveConnectFlow.<>c__DisplayClass21_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Service.HttpExceptions.Improve[T](Func1 code) at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)
I checked that other threat and while i can understand the explanation, it doesn’t add a solution for the issue because as I mentioned before I just restarted the computer, so there is not others UiPath process running.
That file is a UiPath file, so no others process should be using the file, but lets said that file is being monitored by any windows process, then UiPath process should have the option to use anyway because its is UiPath file, if don’t, then the UiPath process should be able to copy and use a temp version of that file to prevent the issue. I think here is a opportunity to improve UiPath.
Please note that when that happen most of the time I’m unable to use the UiPath sometimes for the next couple hours or sometime for the rest of the day…
Sometimes I ran UiPath on Administrator mode hoping will be able to take control of that file and still unable to login.
Should be a way for the UiPath process to take control of the file for when this happens, I just cannot believe the solution is to wait for the file to be available for the proprietary UiPath process.
Sometimes I just restart the computer a couple times more and them I’m able to login with not issues, but sometimes that doesn’t work at all.
Note that this not only happens to me, its also happens to other coworker’s where no one is able to run any UiPath process until is able to login again.
So, please let me know what else I can do in order to be able to use UiPath after computer restart.
My computer was restarted over the weekend and again unable to login into the studio:
RemoteException wrapping System.IO.IOException: The process cannot access the file ‘D:\Users\UserName\AppData\Roaming\UiPath\UiPath.settings’ because it is being used by another process.
at System.IO.FileSystemAclExtensions.ValidateFileHandle(SafeFileHandle handle, String fullPath)
at System.IO.FileSystemAclExtensions.g__CreateFileHandleInternal|12_0(String fullPath, FileMode mode, FileSystemRights rights, FileShare share, Int32 flagsAndAttributes, SECURITY_ATTRIBUTES* secAttrs)
at System.IO.FileSystemAclExtensions.CreateFileHandle(String fullPath, FileMode mode, FileSystemRights rights, FileShare share, FileOptions options, FileSecurity security)
at System.IO.FileSystemAclExtensions.Create(FileInfo fileInfo, FileMode mode, FileSystemRights rights, FileShare share, Int32 bufferSize, FileOptions options, FileSecurity fileSecurity)
at UiPath.Robot.Core.ProtectedFileUtils.CreateProtectedFile(String path)
at UiPath.Service.Utils.SystemUtils.SaveProtected(String path, String content)
at UiPath.Service.Orchestrator.OrchestratorController.ClearLocalSettings()
at UiPath.Service.Orchestrator.OrchestratorController.g__PerformDisconnectInternal|29_0(RunningJobHandling jobHandling, Boolean persistent)
at UiPath.Service.Orchestrator.OrchestratorController.PerformDisconnectAsync(RunningJobHandling option, Boolean persistent)
at UiPath.Service.Orchestrator.OrchestratorController.DisconnectFromServer(RunningJobHandling jobHandling, CancellationToken ct)
at UiPath.Service.Settings.SettingsOperations.DisconnectFromServer(DisconnectFromServerParameters parameters, CancellationToken ct)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func`2 exceptionHandler)
Again, the UiPath.settings is a UiPath file, why UiPath cannot take control of the needed file