a year ago
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:
0 Replies
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/nodemodules/n8n/nodemodules/@n8nio/license-sdk/dist/LicenseManager.js:29:3103)\n' +\n ' at C.renew (/usr/local/lib/nodemodules/n8n/nodemodules/@n8nio/license-sdk/dist/LicenseManager.js:29:2983)\n' +\n ' at License.renew (/usr/local/lib/nodemodules/n8n/dist/License.js:175:28)\n' +\n ' at LicenseService.renewLicense (/usr/local/lib/nodemodules/n8n/dist/license/license.service.js:66:32)\n' +\n ' at LicenseController.renewLicense (/usr/local/lib/nodemodules/n8n/dist/license/license.controller.js:28:35)\n' +\n ' at handler (/usr/local/lib/nodemodules/n8n/dist/decorators/registerController.js:78:78)\n' +\n ' at /usr/local/lib/nodemodules/n8n/dist/ResponseHelper.js:103:32\n' +\n ' at newFn (/usr/local/lib/nodemodules/n8n/nodemodules/express-async-errors/index.js:16:20)\n' +\n ' at Layer.handle as handlerequest\n' +\n ' at next (/usr/local/lib/nodemodules/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?
10 months ago
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 DBTYPE=postgresdb ENV DBPOSTGRESDBDATABASE=$PGDATABASE ENV DBPOSTGRESDBHOST=$PGHOST ENV DBPOSTGRESDBPORT=$PGPORT ENV DBPOSTGRESDBUSER=$PGUSER ENV DBPOSTGRESDB_PASSWORD=$PGPASSWORD
ARG ENCRYPTION_KEY
ENV N8NENCRYPTIONKEY=$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.
10 months ago
How have you verified that railway is using that Dockerfile to build with?
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 EXECUTIONSMODE=queue and added the variable N8NREINSTALLMISSINGPACKAGES=true.
Thank you for your attention!
10 months ago
glad you where able to solve it!