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

Error: uv_os_get_passwd returned ENOENT in container environment due to PR#132 #136

Closed
HankLeo opened this issue Mar 1, 2024 · 1 comment · Fixed by #138
Closed

Error: uv_os_get_passwd returned ENOENT in container environment due to PR#132 #136

HankLeo opened this issue Mar 1, 2024 · 1 comment · Fixed by #138
Labels
bug Something isn't working

Comments

@HankLeo
Copy link

HankLeo commented Mar 1, 2024

Hi mates,

Nowadays we got the error as below:

SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
    at new SystemError (node:internal/errors:256:5)
    at new NodeError (node:internal/errors:367:7)
    at Object.userInfo (node:os:365:11)
    ...
    at node:internal/main/run_main_module:28:49 {
  code: 'ERR_SYSTEM_ERROR',
  info: {
    errno: -2,
    code: 'ENOENT',
    message: 'no such file or directory',
    syscall: 'uv_os_get_passwd'
  },
  errno: [Getter/Setter],
  syscall: [Getter/Setter]
}

This error is imported from release 1.1.1 with the change:
https://github.com/vertica/vertica-nodejs/pull/132/files#diff-8b957f11f1cf0fb604dac14ef10fc85b583bd97977888c111b53c450376bc199R124
When our application runs to this.client_os_user_name = os.userInfo().username in connection-parameters.js, this error occurs. We run our application in the pod of container environment with limited permission and protected user.
Can you give me any advice or just add some fallback logic to handle this error?

Best Regards,
Hank

@sitingren sitingren added the bug Something isn't working label Mar 3, 2024
@sitingren sitingren mentioned this issue Mar 4, 2024
sitingren added a commit that referenced this issue Mar 5, 2024
@sitingren
Copy link
Member

Fix is included in v1.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants