Contrib-ui-upload messes up all my dashboard

Hello there,

Using the node-red-contrib-ui-upload (node) - Node-RED causes my dashboard to unexpected behaviour: once I put the node in the editor, the dashboard becomes with default theme even if unselected or changed color in the editor, and also any new node put in the flow won't appear (just the tables of the ui-table):
before:
dashboard ok

after:
error upload node

If I remove the upload node from the editor the dashboard remains corrupted, when I restart Node-red it fixes until I put again the ulpoad node (that obvioysly I need).

[
    {
        "id": "663ef125791e8be8",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "175d72fc57f2089e",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "26c7e2e16ee849c6",
        "type": "ui_base",
        "theme": {
            "name": "theme-dark",
            "lightTheme": {
                "default": "#0094CE",
                "baseColor": "#0094CE",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": false
            },
            "darkTheme": {
                "default": "#097479",
                "baseColor": "#097479",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": true,
                "reset": false
            },
            "customTheme": {
                "name": "Untitled Theme 1",
                "default": "#4B7930",
                "baseColor": "#4B7930",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
            },
            "themeState": {
                "base-color": {
                    "default": "#097479",
                    "value": "#097479",
                    "edited": false
                },
                "page-titlebar-backgroundColor": {
                    "value": "#097479",
                    "edited": false
                },
                "page-backgroundColor": {
                    "value": "#111111",
                    "edited": false
                },
                "page-sidebar-backgroundColor": {
                    "value": "#333333",
                    "edited": false
                },
                "group-textColor": {
                    "value": "#0eb8c0",
                    "edited": false
                },
                "group-borderColor": {
                    "value": "#555555",
                    "edited": false
                },
                "group-backgroundColor": {
                    "value": "#333333",
                    "edited": false
                },
                "widget-textColor": {
                    "value": "#eeeeee",
                    "edited": false
                },
                "widget-backgroundColor": {
                    "value": "#097479",
                    "edited": false
                },
                "widget-borderColor": {
                    "value": "#333333",
                    "edited": false
                },
                "base-font": {
                    "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
                }
            },
            "angularTheme": {
                "primary": "indigo",
                "accents": "blue",
                "warn": "red",
                "background": "grey",
                "palette": "light"
            }
        },
        "site": {
            "name": "Node-RED Dashboard",
            "hideToolbar": "false",
            "allowSwipe": "false",
            "lockMenu": "false",
            "allowTempTheme": "true",
            "dateFormat": "DD/MM/YYYY",
            "sizes": {
                "sx": 48,
                "sy": 48,
                "gx": 6,
                "gy": 6,
                "cx": 6,
                "cy": 6,
                "px": 0,
                "py": 0
            }
        }
    },
    {
        "id": "ab67ea46c7860390",
        "type": "ui_group",
        "name": "Default",
        "tab": "175d72fc57f2089e",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "1a8aa824bdf29c9e",
        "type": "ui_button",
        "z": "663ef125791e8be8",
        "name": "",
        "group": "ab67ea46c7860390",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "button",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 170,
        "y": 120,
        "wires": [
            []
        ]
    },
    {
        "id": "93ea5a940edcf969",
        "type": "ui_upload",
        "z": "663ef125791e8be8",
        "group": "ab67ea46c7860390",
        "title": "upload",
        "accept": "",
        "name": "",
        "order": 1,
        "width": 0,
        "height": 5,
        "chunk": 256,
        "transfer": "binary",
        "x": 170,
        "y": 80,
        "wires": [
            []
        ]
    }
]

Also, I don't know why, it seems that the node is customized (it's in Italian as you can see), different from the example like here: https://flows.nodered.org/flow/687918dd5cb66a3bfc2a661e15ef4237

I'm using a fresh new installation of node-red 3.1.0, but using 18.18.2.

Any suggestions?

Thanks in advance

EDIT: Here the log, nothing relevant to me:

15 Nov 10:46:18 - [info] 

Welcome to Node-RED
===================

15 Nov 10:46:18 - [info] Node-RED version: v3.1.0
15 Nov 10:46:18 - [info] Node.js  version: v18.18.2
15 Nov 10:46:18 - [info] Windows_NT 10.0.19044 x64 LE
15 Nov 10:46:18 - [info] Loading palette nodes
15 Nov 10:46:20 - [info] Dashboard version 3.6.1 started at /ui
15 Nov 10:46:20 - [info] Settings file  : c:\Users\xxx\.node-red\settings.js
15 Nov 10:46:20 - [info] Context store  : 'default' [module=memory]
15 Nov 10:46:20 - [info] User directory : c:\Users\xxx\.node-red
15 Nov 10:46:20 - [info] Projects directory: c:\Users\xxx\.node-red\projects
15 Nov 10:46:20 - [info] Server now running at http://127.0.0.1:1880/
15 Nov 10:46:20 - [info] Active project : xxx
15 Nov 10:46:20 - [info] Flows file     : c:\Users\xxx\.node-red\projects\xxx\flows-REC.json
15 Nov 10:46:20 - [info] Starting flows
15 Nov 10:46:20 - [info] Started flows
15 Nov 10:48:08 - [info] Stopping flows
15 Nov 10:48:08 - [info] Stopped flows
15 Nov 10:48:08 - [info] Updated flows
15 Nov 10:48:08 - [info] Starting flows
15 Nov 10:48:08 - [info] Dashboard version 3.6.1 started at /ui
15 Nov 10:48:08 - [info] Started flows
15 Nov 10:57:56 - [info] Stopping flows
15 Nov 10:57:56 - [info] Stopped flows
15 Nov 10:57:56 - [info] Updated flows
15 Nov 10:57:56 - [info] Starting flows
15 Nov 10:57:56 - [info] Started flows

Can you post the file .node-red/package.json please.

I see you have opened an issue on GitHub

Let us know what response you get.

Yes I've raised the issue.

Meanwhile if you don't mind I upload the 3 files, maybe it's something wrong with my installation:

  • package.json and package-lock.json from the ".node-red/ folder"
    package.json (531 Bytes)
    package-lock.json (199.3 KB)
    package-project.json (275 Bytes)

  • package-project.json (renamed to -project by me to ulpload it) from the ".node-red\projects\xxx" Folder

Those all look ok. I think you will have to wait for the author to respond.

Thanks for the reply.

Well, actually I think it's about NSSM:

  1. if I launch the command 'node-red' from cmd it works properly.

  2. if I launch the file node-red-cmd located in "C:\Users\BPro\AppData\Roaming\nvm\v18.18.2" or in "C:\Program Files\nodejs" it works properly.

  3. if I pass both .bat files from both directories to NSSM the bug occurs.

I switched to NSSM from pm2 because of problems of this one (in production sometimes it didn't start node-red somehow)...

Meanwhile maybe i've got an answer from git-hub, and meanwhile I try to setup the node-red service from the task scheduler, do you have any suggestion?

thanks again

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.