This repository was archived by the owner on Apr 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 518
Error "EPERM: operation not permitted, lstat ..." when deployed to full IIS with restricted permissions #1101
Milestone
Comments
SteveSandersonMS
added a commit
that referenced
this issue
Jul 11, 2017
SteveSandersonMS
added a commit
that referenced
this issue
Jul 11, 2017
SteveSandersonMS
added a commit
that referenced
this issue
Jul 11, 2017
Fixed (or at least, temporarily worked around, until Node can really fix the underlying issue) in #1102 |
SteveSandersonMS
added a commit
that referenced
this issue
Jul 12, 2017
SteveSandersonMS
added a commit
that referenced
this issue
Jul 12, 2017
SteveSandersonMS
added a commit
that referenced
this issue
Jul 12, 2017
Complete the lstat patching for #1101
Please, how do i get this fix ? This issue has paused an app in production ? or is there a quick work around ? |
I had this issue and was able to just use a try/catch to get around this for myself
|
@mvndaai Any suggestions where this code should be placed in the angular template? Thanks. |
@idenev I am not exactly sure where you mean by the angular template, do you have an example. I would suggest making a function in your javascript that handles this and then just call it in angular. |
I was able to get around this by performing an iisreset |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In a typical IIS deployment, the application runs as a user that only has permission to read the filesystem at the level of the application and below. It does not usually have permission to read any attributes of ancestor-level directories.
This causes Node to throw an error when it tries to load any module. For example, if the module file was at
C:\Users\username\apps\myapp1\
, the IIS user would typically have access to read attributes ofC:\
andC:\Users
, but notC:\Users\username
, so Node would throw:The underlying issue is a bug which was already reported to Node, i.e., that Node tries to walk along the file path to the module, starting from the disk root, reading the attributes of each directory to see whether or not it's a symlink. It's fine to do that in typical Linux/macOS cases, but is not at all fine in typical Windows cases.
This affects all uses of NodeServices (both the SPA templates, and any standalone usage) for applications deployed to IIS, such as those deployed to a local IIS instance by Visual Studio.
The text was updated successfully, but these errors were encountered: