n8n community node installation problem
I added the commands below to the Dockerfile... in another installation it worked perfectly, but I had to destroy it and in the new one it doesn't work
RUN mkdir /home/node/.n8n/nodes
WORKDIR /home/node/.n8n/nodes
RUN npm i n8n-nodes-chatroot n8n-nodes-text-manipulation
The logs follow:
Solution:Jump to solution
I managed to solve it here with a tip from a follower of my YouTube channel
In Primary variables I put regular mode EXECUTIONS_MODE=regular
I installed the community nodes in n8n UI settings...
8 Replies
Project ID:
373e2444-d9ac-4d60-8315-8e254f8967ba
373e2444-d9ac-4d60-8315-8e254f8967ba
The community nodes were installed but I still can't use them in editor on n8n
It appears there was a failure when trying to renew the license. This could be due to an uninitialized certificate.
This issue appears not to be directly related to n8n workflows or nodes, but rather to license and certificate issues.
Log:
2024-03-07T13:16:02.502Z | error | Failed to renew license: renewal failed because current cert is not initialized "{\n stack: 'Error: renewal failed because current cert is not initialized\n' +\n ' at C._renew (/usr/local/lib/node_modules/n8n/node_modules/@n8n_io/license-sdk/dist/LicenseManager.js:29:3103)\n' +\n ' at C.renew (/usr/local/lib/node_modules/n8n/node_modules/@n8n_io/license-sdk/dist/LicenseManager.js:29:2983)\n' +\n ' at License.renew (/usr/local/lib/node_modules/n8n/dist/License.js:175:28)\n' +\n ' at LicenseService.renewLicense (/usr/local/lib/node_modules/n8n/dist/license/license.service.js:66:32)\n' +\n ' at LicenseController.renewLicense (/usr/local/lib/node_modules/n8n/dist/license/license.controller.js:28:35)\n' +\n ' at handler (/usr/local/lib/node_modules/n8n/dist/decorators/registerController.js:78:78)\n' +\n ' at /usr/local/lib/node_modules/n8n/dist/ResponseHelper.js:103:32\n' +\n ' at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n' +\n ' at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n' +\n ' at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/route.js:144:13)',\n file: 'license.service.js',\n function: 'mapErrorMessage'\n}"
How could I execute these commands on Railway, to use the n8n community nodes installed in queue mode?
this would need to be done in the dockerfile
Hi @Brody
I did it using dockerfile, I didn't notice any abnormalities in the log, but I don't see the two community nodes that I installed on n8n
Interestingly, I did this successfully a while ago, but it no longer works.
FROM n8nio/n8n:1.44.1
USER node
RUN mkdir ~/.n8n/nodes
WORKDIR ~/.n8n/nodes
RUN npm i n8n-nodes-chatroot
RUN npm i n8n-nodes-text-manipulation
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
ARG ENCRYPTION_KEY
ENV N8N_ENCRYPTION_KEY=$ENCRYPTION_KEY
CMD ["n8n start"]
I followed the n8n documentation
https://docs.n8n.io/integrations/community-nodes/installation/manual-install/
If you could test it out I would be grateful.
How have you verified that railway is using that Dockerfile to build with?
Solution
I managed to solve it here with a tip from a follower of my YouTube channel
In Primary variables I put regular mode EXECUTIONS_MODE=regular
I installed the community nodes in n8n UI settings
I returned the variable EXECUTIONS_MODE=queue and added the variable
N8N_REINSTALL_MISSING_PACKAGES=true.
Thank you for your attention!
glad you where able to solve it!