Hello, I am trying to create a K8s Helm Chart for n8n, (will publish the code here)
in https://github.com/n8n-io/n8n/blob/master/packages/cli/config/index.ts I see there are defaults set but when I start the container n8n complains:
UserSettings got generated and saved to: /home/node/.n8n/config
2020-11-25T16:08:05.785351185Z (node:6) UnhandledPromiseRejectionWarning: Error: There was an error: options.port should be >= 0 and < 65536. Received NaN.
2020-11-25T16:08:05.785421438Z at Object.error (/usr/local/lib/node_modules/n8n/node_modules/@oclif/errors/lib/index.js:26:15)
2020-11-25T16:08:05.785431156Z at Start.error (/usr/local/lib/node_modules/n8n/node_modules/@oclif/command/lib/command.js:60:23)
2020-11-25T16:08:05.785436947Z at /usr/local/lib/node_modules/n8n/dist/commands/start.js:134:22
2020-11-25T16:08:05.785442618Z (node:6) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2020-11-25T16:08:05.785456193Z (node:6) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The port seems to be NaN but I expected the default port 5678 to be the set like it is described in https://github.com/n8n-io/n8n/blob/master/packages/cli/config/index.ts
I uses N8N_CONFIG_FILES
but I do see the behavior event if env N8N_CONFIG_FILES
isn’t set.
N8N_CONFIG_FILES = /n8n-config/config.json
cat /n8n-config/config.json
{
"host": "workflow.app.8gears.com",
"port": "5678"
}