# Failed to rename files

**URL:** <https://with.raidrive.com/t/failed-to-rename-files/5813>\
**Category:** SFTP\
**Created:** [March 25, 2022, 7:05pm UTC](https://with.raidrive.com/t/failed-to-rename-files/5813 "2022-03-25T19:05:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yongyi\_Yang](https://with.raidrive.com/letter_avatar_proxy/v4/letter/y/c67d28/32.png) [@Yongyi\_Yang](https://with.raidrive.com/u/Yongyi_Yang)\
**Post date:** [March 25, 2022, 7:05pm UTC](https://with.raidrive.com/t/failed-to-rename-files/5813/1 "2022-03-25T19:05:21Z")

</div>

When I try to rename files on a remote server, it says “you need authority from Everyone”.

The connection to the problematic server is relative slow (the server is overseas). However, when it comes to a relatively fast server (a local server or a domestic server), this problem does not show up. I guess the problem is caused by an unreasonable timeout value. Is there a way to fix this?

the log:

```auto
2022-03-26 02:50:38.771 [ERROR] SFTP (<ServerName>) : Rename/Move : /a.txt => /sd.txt : Rename Failed : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Directory/File Fail","Filename":"/a.txt=>/sd.txt","InnerException":"Failure; Failure."}
2022-03-26 02:50:38.771 [ERROR] FILESYSTEM : <ServerName>: RenameOrMoveFile Fail2 : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Failed"} : \Device\HarddiskVolume3\Windows\explorer.exe
2022-03-26 02:50:39.179 [ERROR] SFTP (<ServerName>) : Rename/Move : /a.txt => /sd.txt : Rename Failed : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Directory/File Fail","Filename":"/a.txt=>/sd.txt","InnerException":"Failure; Failure."}
2022-03-26 02:50:39.179 [ERROR] FILESYSTEM : <ServerName>: RenameOrMoveFile Fail2 : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Failed"} : \Device\HarddiskVolume3\Windows\explorer.exe
2022-03-26 02:50:41.591 [ERROR] SFTP (<ServerName>) : Rename/Move : /a.txt => /sd.txt : Rename Failed : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Directory/File Fail","Filename":"/a.txt=>/sd.txt","InnerException":"Failure; Failure."}
2022-03-26 02:50:41.591 [ERROR] FILESYSTEM : <ServerName>: RenameOrMoveFile Fail2 : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Failed"} : \Device\HarddiskVolume3\Windows\System32\dllhost.exe
2022-03-26 02:50:41.999 [ERROR] SFTP (<ServerName>) : Rename/Move : /a.txt => /sd.txt : Rename Failed : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Directory/File Fail","Filename":"/a.txt=>/sd.txt","InnerException":"Failure; Failure."}
2022-03-26 02:50:41.999 [ERROR] FILESYSTEM : <ServerName>: RenameOrMoveFile Fail2 : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Failed"} : \Device\HarddiskVolume3\Windows\System32\dllhost.exe
2022-03-26 02:50:43.642 [ERROR] SFTP (<ServerName>) : Rename/Move : /a.txt => /sd.txt : Rename Failed : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Directory/File Fail","Filename":"/a.txt=>/sd.txt","InnerException":"Failure; Failure."}
2022-03-26 02:50:43.642 [ERROR] FILESYSTEM : <ServerName>: RenameOrMoveFile Fail2 : Exception : {"WinErrorCode":5,"NotifyErrorCode":211,"RaiException":"Rename Failed"} : \Device\HarddiskVolume3\Windows\System32\dllhost.exe

```

```auto

```

---

<div class="post-metadata">

**Author:** ![Yongyi\_Yang](https://with.raidrive.com/letter_avatar_proxy/v4/letter/y/c67d28/32.png) [@Yongyi\_Yang](https://with.raidrive.com/u/Yongyi_Yang)\
**Post date:** [March 25, 2022, 7:17pm UTC](https://with.raidrive.com/t/failed-to-rename-files/5813/2 "2022-03-25T19:17:48Z")

</div>

wait… it does not come from slow connection. It seems comes from yas3fs I used on my server…

No hurry to reply this issue. Let me test more…

---

<div class="post-metadata">

**Author:** ![Yongyi\_Yang](https://with.raidrive.com/letter_avatar_proxy/v4/letter/y/c67d28/32.png) [@Yongyi\_Yang](https://with.raidrive.com/u/Yongyi_Yang)\
**Post date:** [March 25, 2022, 7:25pm UTC](https://with.raidrive.com/t/failed-to-rename-files/5813/3 "2022-03-25T19:25:09Z")

</div>

But renaming files served by yas3fs works fine through ssh…  
How does raidrive implement file renaming?

---

<div class="post-metadata">

**Author:** ![RaiDrive](https://with.raidrive.com/user_avatar/with.raidrive.com/raidrive/32/1778_2.png) [@RaiDrive](https://with.raidrive.com/u/RaiDrive)\
**Post date:** [March 28, 2022, 1:32am UTC](https://with.raidrive.com/t/failed-to-rename-files/5813/4 "2022-03-28T01:32:32Z")

</div>

Hi~ @Yongyi_Yang ,

Since the SFTP server only returned a “Failure” error, it is difficult to pinpoint the exact cause.

To check if there are any basic environment, file name, or other issues, please send the log file(C:\ProgramData\OpenBoxLab\RaiDrive\log) of RaiDrive via e-mail([support@raidrive.com](mailto:support@raidrive.com)) and we will tell you again.
