Issue setting up local instance NPM

Describe the problem/error/question

I’m not very familiar with hosting this myself and trying to set up a local test enviroment. Not sure what I’m doing wrong on the config file. I’ve looked the git up schema, but apparently I’m reading it incorrectly.

What is the error message (if any)?

(node:24505) Error Plugin: n8n: configuration param 'path' missing from config, did you override its parent?
configuration param 'path.editorBaseUrl' not declared in the schema
configuration param 'path.host' not declared in the schema
module: @oclif/[email protected]
task: cacheCommand
plugin: n8n
root: /usr/local/lib/node_modules/n8n
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)

My config json

{
    "generic": {
        "timezone": "America/Chicago"
    },
    "path": {
        "editorBaseUrl": "wigginsphilip.duckdns.org",
        "host": "wigginsphilip.duckdns.org"
    }
}

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via npm **
  • **Operating system:raspbery pi

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Philip_Wiggins

Is there a specific reason to make it hard on urself?
Setting up n8n with docker is easy peasy, have you tried that?

I have in the past, but I’ve never had luck with docker. When I did use it it seemed to clear out all of my workflows when I updated.

Sounds like a basic setup without volume attached.
I can recommend portainer as a nice GUI on docker. And there should be info on volumes to attach in the docs.

1 Like

I attempted docker again on linux, but this is what happens when I try to run. No matter how I do the key, including one from letsencrypt I get an error about the key not being there. I’ve even tried with .key and .crt and get the error about .key

docker run -it --rm \
 --name n8n \
 -p 5678:5678 \
 -e N8N_PROTOCOL=https \
 -e N8N_HOST=wigginsphilip.duckdns.org \
 -e N8N_SSL_CERT=/home/philip/n8nCert.pem \
 -e N8N_SSL_KEY=/home/philip/n8nKey.pem \
 -v n8n_data:/home/node/.n8n \
 docker.n8n.io/n8nio/n8n
User settings loaded from: /home/node/.n8n/config
Last session crashed
Initializing n8n process
Error: ENOENT: no such file or directory, open '/home/philip/n8nKey.pem'
Error: Exiting due to an error.
Error: ENOENT: no such file or directory, open '/home/philip/n8nKey.pem'

Ah yeah, I always use nginx as a reverse proxy for the SSL stuff.

There should be a couple of examples around on the community and also in the repo I think.

I haven’t messed with nginx or webserver stuff much at all. Any good guides you can recommend? My goolge searching has resulted in much help.

Not really, sorry.

But they have a GUI which is easy to use😁

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.