Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing and using fails #4

Open
grawsom opened this issue Feb 3, 2023 · 3 comments
Open

Installing and using fails #4

grawsom opened this issue Feb 3, 2023 · 3 comments
Labels
needs-triage Needs looking at to decide what to do

Comments

@grawsom
Copy link

grawsom commented Feb 3, 2023

Current Behavior

When installing via manager, nothing happens, and if you install again it says.
Failed to install: @flowforge/nr-tools-plugin
Module already loaded
Check the log for more information
After restart of NR service, the tool shows up, in menu, but no info that it is installed in manager.
I can connect, create and send "snapshot" but gets same error as mentioned in #3
have now made an trial account on FF to see if it was my locally installed instance, but same error

Expected Behavior

To get a copy of my NR flow running somewhere unto FF for use there.

Steps To Reproduce

In NR instance
Manager - find @flowforge/nr-tools-plugin
Press install - twice to see error
Restart service, see item in menu
Connnect to FF - choose project, make snapshot

In FF instance
Make rollback - get errors
This is from log

{ "error": { "code": "unexpected_error", "message": "TypeError: Cannot set properties of null (setting 'flow')" }, "project": { "id": "2770e937-aced-479f-9d6f-2ddf7844e3b9", "name": "grawsom-test-NR-302" } }

Environment

  • FlowForge version: 3.0.2

  • Node.js version: 16.17.0

  • npm version: 8.19.2

  • Platform/OS:
    Udgave Windows 11 Pro
    Version 21H2
    Installeret d. ‎14-‎09-‎2022
    Operativsystemets build 22000.1455
    Visning Microsoft-pakke med funktionsoplevelse 1000.22000.1455.0

  • Browser: Edge

@grawsom grawsom added the needs-triage Needs looking at to decide what to do label Feb 3, 2023
@knolleary
Copy link
Member

Hi @grawsom

When installing via manager, nothing happens, and if you install again it says.
Failed to install: @flowforge/nr-tools-plugin

This is a Node-RED issue I'll get raised and link back.

If a module contains just a plugin and no nodes for the palette, the palette manager misinterprets it as a failed install (because nothing has been added to the palette). This is also why plugins don't show up in the Manage Palette view.

A restart of Node-RED gets it loaded properly.

We haven't been able to reliably reproduce #3, but I'll go back and see where we are with it.

@grawsom
Copy link
Author

grawsom commented Feb 19, 2023

Hi @knolleary
Don't know if this helps, but it fixed my problem.
I tried different senarios, and what I found out was the "credentials" making the fuss, i could remove the the credentials in flows entry in DB and that helped - but still need the credentials.
Every time it says Cannot set properties of null - hmmmmmm

So what I found was in the DB under "StorageCredentials - ProjectId" it was NULL
I then took the id from DB "Projects" and inserted in "StorageCredentials - ProjectId" and the it worked.

And I could make it wrong again by setting it back to NULL

@ZJvandeWeg
Copy link
Member

@knolleary could you further triage this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs looking at to decide what to do
Projects
Status: 💬 Support cases & under review
Development

No branches or pull requests

3 participants