Comments (6)
This is happening because we upgraded oclif
since the version of the package we were on was long deprecated.
In this version of the package there is code to determine the user's shell, which makes calls to require('os').userInfo().shell
if process.env.SHELL
isn't set.
As a temporary solution, can you please add the env variable SHELL: /bin/sh
to your container?
For a proper fix, We'll add this to our docker images.
from n8n.
Hey @stavros-k
Can you share your exact config? We don't officially support running as a different user so I am surprised it works at all but the error seems to be unhappy with the path which isn't one we use.
from n8n.
Hello, this is the config-variables
And here is the runAs context (user supplies the actual value, but 568 was working until know.
The error doesn't really complain about the data directory.
You can try directly with this:
(No error)
docker run --rm -it -u 1000 node sh -c 'echo "require(\"os\").userInfo()" | node'
(Error)
docker run --rm -it -u 568 node sh -c 'echo "require(\"os\").userInfo()" | node'
node:os:365
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
at Object.userInfo (node:os:365:11)
at [stdin]:1:15
at runScriptInThisContext (node:internal/vm:144:10)
at node:internal/process/execution:109:14
at [stdin]-wrapper:6:24
at runScript (node:internal/process/execution:92:62)
at evalScript (node:internal/process/execution:123:10)
at node:internal/main/eval_stdin:32:5
at Socket.<anonymous> (node:internal/process/execution:224:5)
at Socket.emit (node:events:531:35) {
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]
}
Perhaps some new functionality added recently that uses the above?
from n8n.
Ah maybe, the bit that caught my eye was the mention of the /data folder which isn’t one we use but I am also aware that we don’t officially support using other users so this is a bit of a grey area…
It is interesting that you get the same error outside of n8n which makes me wonder if there is anything for us to actually fix here…
I will check with the team on Monday when I get back.
from n8n.
Sure, no rush!
I couldn't find any direct calls to os.userInfo() in your codebase, I assume its being done from another package.
Depending on how it is structured, it might be possible to try/catch it. (Assuming that the userInfo is not really required somewhere in n8n.)
Have a good weekend
from n8n.
@netroy do you have any thoughts on this?
from n8n.
Related Issues (20)
- Bug: HTTP Request - Pagination - Complete Expression - Still Uses OLD $node['name'] and NOT new $('name') References HOT 12
- Bug: Airtable Upsert Incorrectly Marks Linked Fields as Read Only HOT 8
- Bug: When creating a HTTP Node with square brackets [ ] in the title, the output is always null. HOT 3
- String (Date) is being reported by Compare node as Different when it is Same HOT 4
- n8n produces wrong links when run behind a reverse proxy with ports other than 80 or 443 HOT 3
- Bug: OpenAi Assistant usage removes function HOT 12
- .replaceAll doing weird stuff HOT 8
- Bug: RangeError when enabling Kubernetes service HOT 3
- Problem with the Google Calendar node for obtaining multiple events with recurrence HOT 2
- OneDrive Node SSL Error HOT 11
- Docker-Tags breaking auto-update tools HOT 7
- Azure OpenAI Chat Model is Missing HOT 15
- Clickup Integration Create Task set Assignee by Id invalid format when using expression HOT 7
- HTTP Request Node - Maximum number of redirects exceeded HOT 5
- Unrecognized node type HOT 7
- Trello node fails with 403 on GET operations HOT 2
- LLM Chain with Hugging Face HOT 22
- OpenAI > Generate Image > Prompt Type: Expression return an error OpenAI: Parameter "Text" is required. HOT 1
- Question and Answer Chain - Error in sub-node ‘Embeddings OpenAI’ HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n8n.