Hi, is it possible to install SuiteCRM Node in a N8N docker container?
Thanks
Hi, is it possible to install SuiteCRM Node in a N8N docker container?
Thanks
if you use the standard image (Alpine)
docker exec -it n8n /bin/ash
apk add bash bash-completion bash-doc
bash
cd /usr/local/lib/node_modules/n8n
edit:
better use the recommended folder
mkdir /home/node/.n8n/custom
cd /home/node/.n8n/custom
n8n-nodes-dnc-suitecrm need mmmagic so you need to install dependencies first, then install the module, then delete the dependencies again.
apk --no-cache --virtual build-dependencies add \ python \ make \ g++ \ && npm i n8n-nodes-dnc-suitecrm --unsafe-perm \ && apk del build-dependencies
npm i n8n-nodes-dnc-suitecrm
type exit
to logout or type ctrl+d
docker restart n8n
These changes are only valid until you delete and recreate your container. To make them permanent, you should use a custom Dockerfile in order to create a custom image.
this seems very useful.
@svenjanssen I tried to walk through your install tutorial above.
When I type
apk --no-cache --virtual build-dependencies add \ python \
make \ g++ \ && npm i n8n-nodes-dnc-suitecrm
âunsafe-perm \ && apk del build-dependencies
it gives me an Error:
ERROR: â pythonâ is not a valid child dependency, format is name([<>~=]version)
any ideas how to solve this?
Same problem here.
@Jason_Den @alexhammerschmied make sure you upvote the feature request. The more votes, the more chances of being developed. That way, this node will come out of the box with n8n.
Why donât you make a PR to the project with the SuiteCRM implementation you created?
sorry I have not encountered this. I could only google search too
I donât quite understand, PR with which content?
The suiteCRM node?
done I am happy to test something regarding a PR.
@svenjanssen when I connect the node to my suitescrm and try to run a âget allâ function it gives mi a
500 Error - undefined.
Any ideas why this would happen?
Hi people,
as mentioned in this post: External CLI tools in n8n - #13 by alexhammerschmied
i was able to create a Dockerimage which installs the plugin and the dependencies. So from n8n side everything seems to work.
But I canât get the connection to work. What am I missing? I walked through all the steps with the crm module but somehow no data gets fetched or sent to suitecrm.
Can anybody help me? Does someone know where to look or dig deeper?
How were you able to resolve the previous errors with the âpython is not a validâŚâ and the 500?
Things to look for:
Did you install the suitecrm API according to the docs? Does it work with postman? (Many errors were present on suite side in the past, some of them needed manual fixing. I think they are resolved depending on which version you are running)
Did you install the plugin for suitecrm that comes with the webhook?
Please create a regular webhook node (not suite), click open âURLâ and check if it is correct âhttps://your-domain.com:1234â
Hi @svenjanssen!
I am able to get the swagger.json with postman.
It seems to be reachable. But as soon as I try to connect to SuiteCRM with OAuth2 it gives me an error and tells me it canât complete the token request.
I donât know what to do.
Swagger.json can usually be reached without authenticating. To make sure everything works please authenticate using postman. There is a suitecrm postman package to be found somewhere so you donât have to create it yourself. Then you can test oauth2 and the endpoints.
Also check (.htaccess issue on suitecrm side)
we did it recently
Hello lovely people!
Any news on this? Can i help testing?
Hi Alex,
unfortunately I canât edit the post up there so here is how I would do it today:
Install n8n using our image (digitalboss/n8n-custom-nodes:latest) with env CUSTOM_MODULES=@digital-boss/n8n-nodes-suitecrm;
Using the image you can also load other modules such as the trigger automatically. If you mount the volume you can then use n8nio/n8n image afterwards and it will load the modules which were installed. The modules only load when the container is first created, so for any updates of the custom modules you need to recreate the container.
The @digital-boss/n8n-nodes-suitecrm is the new package, it does not require mmmagic procedure from above anymore.
If you go do it the old way, you want to npm i @digital-boss/n8n-nodes-suitecrm
into /home/node/.n8n/custom
folder
Hi @svenjanssen
PArdon me for being stupid - so to get this to work we should be:
adding to docker-compose.yml:
n8n:
image: digital-boss/n8n-custom-nodes:latest
and to the .env in the docker-build folder:
CUSTOM_MODULES=@digital-boss/n8n-nodes-suitecrm;
Iâve tried this on a fresh docker install, and iâm not seeing the module. Have I missed something?
Thanks in advance,
Luke
CUSTOM_MODULES=@digital-boss/n8n-nodes-suitecrm
is correct yes, it shows up under "Custom Modules
When you first create the container, the logs should indicate, that the module / custom node has been installed:
custom module: @digital-boss/n8n-nodes-suitecrm
+ @digital-boss/[email protected]
installed 1 package and audited 381 packages in 5.417s
15 packages are looking for funding
run `npm fund` for details