Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fails with "EBUSY" when trying to rmdir folder (Windows XP) #90

Open
ycanales opened this issue Aug 4, 2015 · 4 comments
Open

Comments

@ycanales
Copy link

ycanales commented Aug 4, 2015

Following the basic.js example the first steps work fine (old version detects and downloads the newest, closes, then it runs from temp folder) until the update fails at step 5 with the following error after a while—it retries a lot of times as I checked in rimraf.js lib.

The error:

Error {
  code: "EBUSY",
  errno: -4082,
  message: "EBUSY: resource busy or locked, rmdir 'C:\Archivos de programa\theapp'",
  path: "C:\Archivos de programa\theapp",
  syscall: "rmdir",
  [...]
}

Note: Archivos de programa = Program files

I noticed I couldn't delete the folder manually either, and using LockHunter it said it was because of nw.exe (the one from the update version, running from temporary folder)

I checked the nw.exe processes running, and the three of them were from the temp folder (so I discarded that the old one may be still running)

I'm using:

  • node-webkit-updater: 0.3.0
  • nw: 0.12.2
  • nw-boilerplate
  • Windows XP Pro SP3

I'm fairly new to node and nw.js so I'm kind of stuck here.

Thanks for your help!

@Aufree
Copy link

Aufree commented Dec 17, 2015

You should kill your old version of app first.

@adam-lynch
Copy link
Collaborator

@ycanales you definitely killed the old one in step 4?

@Mior
Copy link

Mior commented Feb 4, 2016

I have similar issue.
I'm not able to remove folder because pwd is in current directory, which is app directory as described in #96. One possible fix is to change pwd.
This still won't fix issue if I run nw from current directory as changing pwd won't help because I'm locking current directory just by being there. For that probably this approach would be better. Just remove files from inside folder instead of entire folder.

Would removing files/folders from inside cause any issues? Any ideas?

Mior referenced this issue in firsara/node-webkit-updater Mar 10, 2016
@Mior
Copy link

Mior commented Mar 10, 2016

This issue should be fixed by this change #105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants