[SOLVED] Error 5 trying to copy/read file?


Recommended Posts

I got the following error on a single file on unRaid 6.0.1 when i run a backup (Goodsync).

 

- ERROR: Error copying file: BlockCopy after Denied/Locked: Cannot open local file '//HUNTERNAS/pictures/2015/20150320_193536.mp4' for read: Access is denied.  (error 5)

 

No matter how i try to access, delete, copy or read the file, I get this error.

 

What happens when I try to play the video:

http://my.jetscreenshot.com/12412/20150701-pixp-92kb.jpg

 

This is the message I get when I try to manually copy the video:

http://my.jetscreenshot.com/12412/20150701-2q4k-31kb.jpg

 

Any thoughts what could be going on?  How could rights be changed on a single file?

Link to comment

Before I try that, there's one more bit.  The file does not exist on the server.  All the files in this directory are on one Disk, and I've searched throughout that drive and can't find the file.  So it does not exist.  I had deleted it some time before the error showed up.  Perhaps this is diagnostic?  Will New Permissions scan the disk and resolve broken filename links?

Link to comment

Has the server been rebooted since the original issue occurred? The /mnt/user fuse filesystem is rebuilt from what exists on the disks each time the server is started, and it's theoretically possible that it's out of sync. Does the file appear if you browse to /mnt/user/pictures/2015/ using MC on the local console or telnet?

Link to comment

Interesting.  The file, 20150320_192536.mp4 DOES NOT show up in MC on either the Disk1/pictures/2015 or user/pictures/2015 share (either LS or MC, neither sees the file).  ONLY from windows do I see the file.

 

The server has booted several times in the past week.  The problem showed up after I had moved files and was setting up my backup software (goodsync) to sync files between my workstation and the nas.  Perhaps Goodsync created the problem?  (www.goodsync.com).  Perhaps there's a better tool to use for backup?  Goodsync is somewhat complex, but it does a good job.  I've used vice-versa before as well.

Link to comment

Interesting.  The file, 20150320_192536.mp4 DOES NOT show up in MC on either the Disk1/pictures/2015 or user/pictures/2015 share (either LS or MC, neither sees the file).  ONLY from windows do I see the file.

Do you have multiple windows machines that show the file, or only that specific workstation?
Link to comment

Now that is really fascinating.  :o 

 

I checked on two different Laptops (via wifi, win 7 and win 8), and neither of those laptops can see that file in either the Disk1 or pictures/2015 share...

Well, that pretty much exonerates unRaid as being the source of the issue. Perhaps offline files on the offending machine?
Link to comment

Yeah, it was really strange.  As you could tell from the screen print, it was a zero byte file, but it ONLY showed up on the unraid drive.  I rebooted the server today and went back and looked at the file, it was still there, on a whim I deleted it.  And it worked this time.  Must have been in some kind of lock state between my PC and the server?

 

So for a root cause analysis, I guess when Good sync ran, it created some kind of lock on the file and a reboot of the server apparently broke the lock for the zero byte file on the server.  Interesting to note that the lock remained through a reboot of the PC...

 

Odd...but thankfully SOLVED!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.