question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows permissions error

See original GitHub issue

Sometimes when I’m running Gulp, there will spontaneously be an issue with a directory I’ve cleaned and Gulp suddenly can’t access it. If I look into it, I find that the folder has lost its owner and Windows says “Unable to display current owner” in the folder’s properties -> Security -> Advanced. From here it’s nearly impossible to get rid of. I have to execute a takeown using the administrator account through CMD ran as administrator, and even that didn’t really work the last time, so I restarted and the folder was gone.

I realize that’s an incredibly unscientific rundown and doesn’t help to narrow down the issue, but you can find my gulpfile here, as perhaps something sticks out as unusual. The build folder is the one that’s getting borked. Most recently, the issue happened during the imagemin task run as part of the build task, but this isn’t consistent.

This rarely happens (and I’m sure I couldn’t recreate it if I tried), so I know I’m kind of shooting in the dark. Maybe something in my tasks is unusual?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ethanclevenger91commented, Dec 17, 2015

Yeah, guess I could follow up here: may be a thing with Atom as well. If it’s open in there, it’s claiming ownership it seems, preventing me from doing anything with it.

0reactions
phatedcommented, Apr 5, 2016

I’m not sure there’s anything we can do about other processes claiming ownership of files; however, in going over some code for gulp 4, I found that vinyl-fs wasn’t using graceful-fs when creating directories and we had some chmod/utimes problems that we’ve since fixed. If you are using gulp 3, I suggest upgrading to gulp 4 and see if that helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Access Denied" or other errors when you access or work with ...
Right-click the file or folder, and then click Properties. Click the Security tab. Under Group or user names, click your name to see...
Read more >
Windows 10 "Access Denied" Folder Errors: 5 Easy Fixes
The most common fix to try when you see "folder access denied" is to take ownership of the folder through the File Explorer....
Read more >
How To Fix Folder Access Denied in Windows - Alphr
1. Hold down Win + R to open "Run." 2. Type "control userpasswords2" in the dialogue box that opens and tap "OK." 3....
Read more >
Fix Access Denied Errors with Ease [CMD, Hard Drive, Folder]
Why am I getting Access denied in Windows 10 when opening a folder? ... This message usually means that you don't have the...
Read more >
How to fix "Access Denied" error step-by-step on Windows 10 ...
If you are getting Access Denied error in Windows, then you are not alone. This is a quite common problem related to permission,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found