Running Node-RED within Cumulocity: UI not working

I’m trying to deploy Node-RED to Cumulocity using the implementation provided on GitHub ( GitHub - Cumulocity-IoT/cumulocity-node-red: This repository contains a node red microservice that runs within cumulocity. , Version 2.6.1). The microservice seems to run well, but I can’t figure out how to access the Node-RED flow editor. I’ve tried the following options:

  • Accessing it directly via /service/node-red/: After entering my credentials into a Basic Auth popup of my browser, I just get error 403 “Forbidden”.
  • Using the dedicated frontend UI package (either via extension marketplace or precompiled version from GitHub or built by myself from source), the application becomes visible in the application switcher, but the application does not work properly. It just shows the Cumulocity title bar and a huge blank area.

For the case the Cumulocity version matters: I’m doing this on the EU-latest cloud.

@Tristan_Bastian: Maybe you have a good hint for me.

Hi @Christian_Winter1,

Because of the 403 error I would suggest that you verify that you have the Node-RED specific permissions assigned to your user or usergroups.

Regards,
Tristan

1 Like

Missing permissions was indeed the problem. Sticking to the README instructions indeed helps :wink:: “The microservice introduces new permissions, make sure you’ve assigned these to a global role of your user.” Hence I’ve created new global roles where I’ve ticked the Node-RED ADMIN and/or READ permission as well as the frontend application permission (for my user account, the latter is redundant since admin users can access all applications by default).

Now the 403 error is gone when accessing /service/node-red/ and the frontend application shows the expected contents.

One more insight: The trailing slash of /service/node-red/ is important for making this work.

2 Likes