-
I'm working on an app that starts a Node.exe process in an Azure Service Fabric Service. The Node.exe process is run with limited permissions (NETWORK SERVICE), and I find that when I try to run the app with Node.exe under service fabric I get this error
The app runs correctly from the command line, likely because from the command line it's running with permissions to access that directory. My question is, why is it trying to lstat that directory? I've fully specified the javascript file that holds my app, which has been webpacked. Since it runs from the command line, I know that it is able to load the modules it needs, none of which should actually be coming from an external file because it has been webpacked (except maybe internal modules, not sure how those work). I don't think I should need to grant NETWORK SERVICE access to that user directory, that's not the right solution. I can sort of debug by doing --inspect-brk, but it only lets me break when the err is thrown, so I can't step into |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be able to workaround the issue by using
|
Beta Was this translation helpful? Give feedback.
You might be able to workaround the issue by using
--preserve-symlinks-main
(and/or--preserve-symlinks
). Hopefully the docs explains why it's doing that well enough: