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.

terminateProcess.sh fails with EACCES

See original GitHub issue

I noticed while debugging a language server client extension that the server would not get killed. Logging the result.error in:

https://github.com/Microsoft/vscode-languageserver-node/blob/053149a76e7ec147347e41a5847a1cc4ccb3d541/client/src/utils/processes.ts#L34-L36

I got:

Error: spawnSync /home/extension/node_modules/vscode-languageclient/lib/utils/terminateProcess.sh EACCES

which I guess is reasonable since it’s not executable!

$ uname -a
Linux 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Sep 20, 2019

Fix by setting the executable bit in Git which is now preserved. capture

0reactions
dbaeumercommented, May 9, 2019

OK. Will look into how I could best fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix : Error Unable to Terminate Process Access is Denied on ...
Fix : Error Unable to Terminate Process Access is Denied on Windows 11 / 10 · 1. Open Run using the Windows and...
Read more >
TerminateProcess not suceeding on Windows 10
Windows 10 fails with "Access Denied" on the first call "TerminateProcess". Clearly something has changed in the Windows security model when it ...
Read more >
WindowsError [Error 5] Access Denied when trying to ... - GitHub
I'm getting a WindowsError [Error 5] Access Denied when moviepy terminates the process with proc.terminate() . It seems an issue similar to ...
Read more >
Kill a process which says "Access denied" - Super User
I'm still getting an error with Process Hacker: "Unable to terminate ... An attempt was made to access and exiting process." – Aaron...
Read more >
TerminateProcess function (processthreadsapi.h) - Win32 apps
After a process has terminated, call to TerminateProcess with open handles to the process fails with ERROR_ACCESS_DENIED (5) error code.
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