Hello together
Let me try to describe the problem …
Describe the problem/error/question
I installed the n8n template with workers on railway for running in queue mode. I tried everything I found regarding env, docker installation and so on, but on the workers the installation seems not to work.
On the main instance I was able to fix it with N8N_REINSTALL_MISSING_PACKAGES=true but this doesn’t work at the workers.
In the console everything seems to be ok when the docker container gets created.
Docker creation log
#1 transferring dockerfile: 2.31kB done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.n8n.io/n8nio/n8n:latest
#3 DONE 0.4s
#4 [1/4] FROM docker.n8n.io/n8nio/n8n@sha256:e2b40c42b622fea084c2575e7e3682aed47fa8daa71f146794374cf8c868a544
#4 CACHED
#5 [2/4] WORKDIR /home/nodes/
#5 DONE 0.3s
#6 [3/4] RUN npm install n8n-nodes-text-manipulation
#6 3.599
#6 3.599 added 20 packages in 2s
#6 DONE 3.7s
#7 [4/4] RUN npm install n8n-nodes-guuid-generator
#7 1.478
#7 1.478 added 2 packages in 461ms
#7 DONE 1.5s
#8 exporting to image
#8 exporting layers
#8 exporting layers 0.3s done
#8 writing image sha256:1635c08d6851b93b5473cf3278f93270f62fddaf2d92b87accb000fa27f8f9d0 done
#8 naming to us-west1.registry.rlwy.net/1d82ae4b-b1e9-4809-8ef4-5bd3c73b7fc9:1fb24cc6-711b-42b0-ad09-ed3d1390341d7 0.0s done
#8 DONE 0.3s
Build time: 6.39 seconds
================
Publishing Image
================
So in my opinion everything should be fine, both community-nodes are installed with all dependencies, but when the docker container is running, the nodes are missing.
I tried installing it globally, not globally, with root, without root, at different locations, tired to put the nodes directly in the docker container, and sure, I tried everything simultane on workers and main instance.
Main instance is only running because of the N8N_REINSTALL_MISSING_PACKAGES=true env.
I searched everywhere, tried everything, but it seems that I tried the wrong things
Here are the Docker file with some env.
With # marked lines are just a few other tries before
# Use the n8n image as the base
FROM docker.n8n.io/n8nio/n8n
ARG PGPASSWORD
ARG PGHOST
ARG PGPORT
ARG PGDATABASE
ARG PGUSER
ENV DB_TYPE=postgresdb
ENV DB_POSTGRESDB_DATABASE=$PGDATABASE
ENV DB_POSTGRESDB_HOST=$PGHOST
ENV DB_POSTGRESDB_PORT=$PGPORT
ENV DB_POSTGRESDB_USER=$PGUSER
ENV DB_POSTGRESDB_PASSWORD=$PGPASSWORD
ENV N8N_LOG_LEVEL=debug
ENV N8N_REINSTALL_MISSING_PACKAGES=true
ENV NODE_FUNCTION_ALLOW_BUILTIN=*
ENV NODE_FUNCTION_ALLOW_EXTERNAL=*
ENV N8N_LOG_OUTPUT=console
ENV N8N_LOG_LEVEL=debug
ENV N8N_COMMUNITY_PACKAGES_ENABLED=true
#ENV NODES_INCLUDE=[n8n-nodes-text-manipulation,n8n-nodes-guuid-generator]
ENV N8N_ENCRYPTION_KEY=$ENCRYPTION_KEY
#USER root
WORKDIR /home/nodes/
RUN npm install n8n-nodes-text-manipulation
RUN npm install n8n-nodes-guuid-generator
#RUN mkdir ~/.n8n/
#WORKDIR ~/.n8n/nodes
#WORKDIR /home/node/.n8n/
#COPY nodes /home/node/.n8n/nodes
#WORKDIR /urs/local/lib/node_modules/n8n
#WORKDIR ~/.n8n/nodes
#RUN npm install -g n8n-nodes-text-manipulation
#RUN npm install -g n8n-nodes-guuid-generator
#WORKDIR /urs/local/lib/node_modules/n8n
#RUN npm i n8n-nodes-text-manipulation
#RUN npm i n8n-nodes-guuid-generator
#RUN npm install -g n8n-nodes-text-manipulation
#RUN npm install -g n8n-nodes-guuid-generator
#RUN cd /usr/local/lib/node_modules/ && npm install n8n-nodes-text-manipulation
#RUN cd /usr/local/lib/node_modules/ && npm install n8n-nodes-guuid-generator
#RUN mkdir ~/.n8n/nodes
#RUN cd ~/.n8n/nodes
#RUN mkdir ~/.n8n/
#RUN mkdir ~/.n8n/nodes
#WORKDIR ~/.n8n/nodes
#RUN npm install -g n8n-nodes-text-manipulation
#RUN npm install -g n8n-nodes-guuid-generator
#RUN npm i n8n-nodes-text-manipulation
#RUN npm i n8n-nodes-guuid-generator
#USER node
CMD ["worker"]
What is the error message (if any)?
Node not found: n8n-nodes-guuid-generator.UUID Generator
Node not found: n8n-nodes-text-manipulation
Thank’s to anybody who will try to figure out, what’s going wrong with my community-node installation tries
Information on your n8n setup
- n8n version: 1.16.0
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting: queue
- Running n8n via: Docker via railway
- Operating system: railway