Issue about Error: ENOENT: no such file or directory, uv_resident_set_memory
925 views
Skip to first unread message
蔡仲明
unread,
Sep 6, 2018, 4:23:43 AM9/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sandstorm Development
I frequently encounter this error message:
Error: ENOENT: no such file or directory, uv_resident_set_memory
I guess this is some system call or file invisible in the sandbox, but can it just returns some false value so the app won't crash and I need to read and fix?
Thanks.
Ian Denhardt
unread,
Sep 6, 2018, 2:40:06 PM9/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 蔡仲明, Sandstorm Development
Looks like that function is part of libuv, node's async-io library. I
did a bit of digging, my guess is it's chocking on trying to open
/proc/self/stat:
It should be possible for you to work around this by inserting a dummy
file in your package; the format is documented in proc(5) and it looks
to me like the function is interested in the 'rss' value. I don't know
enough about what's calling that function and how the result is used to
be able to say what the impact of specific values would be though.
I don't think it's a good idea for sandstorm itself to try to spoof
this; we don't have enough visibility into how the information is being
used, and I worry anything we try to do centrally will introduce weird
resource usage bugs elsewhere.
Looks like the cygwin implementation just returns ENOSYS from this
function: