Flowforge Issue

Hi there,

Just got Flowforge up and running, but the Node-Red containers don't seem to start up and connect to Flowforge

2023-05-24 18:09:15 Launcher Started
2023-05-24 18:09:15 Loading project settings
2023-05-24 18:09:16 Target state is 'running'
2023-05-24 18:09:16 Starting Node-RED
2023-05-24 18:09:54 Node-RED hang detected.
2023-05-24 18:09:54 Stopping Node-RED
2023-05-24 18:09:55 Node-RED exited rc=0 signal=null
2023-05-24 18:09:56 Node-RED unexpectedly stopped after: 40s
2023-05-24 18:09:56 Starting Node-RED
2023-05-24 18:10:35 Node-RED hang detected.
2023-05-24 18:10:35 Stopping Node-RED
2023-05-24 18:10:35 Node-RED exited rc=null signal=SIGTERM
2023-05-24 18:10:36 Node-RED unexpectedly stopped after: 39s
2023-05-24 18:10:36 Starting Node-RED
2023-05-24 18:11:14 Node-RED hang detected.
2023-05-24 18:11:14 Stopping Node-RED
2023-05-24 18:11:15 Node-RED exited rc=0 signal=null
2023-05-24 18:11:15 Node-RED unexpectedly stopped after: 40s
2023-05-24 18:11:15 Starting Node-RED
2023-05-24 18:11:53 Node-RED hang detected.
2023-05-24 18:11:53 Stopping Node-RED
2023-05-24 18:11:54 Node-RED exited rc=null signal=SIGTERM
2023-05-24 18:11:54 Node-RED unexpectedly stopped after: 39s
2023-05-24 18:11:54 Starting Node-RED
2023-05-24 18:12:32 Node-RED hang detected.
2023-05-24 18:12:32 Stopping Node-RED
2023-05-24 18:12:34 Node-RED exited rc=0 signal=null
2023-05-24 18:12:35 Node-RED unexpectedly stopped after: 41s
2023-05-24 18:12:35 Node-RED restart loop detected. Restarting in safe mode.
2023-05-24 18:12:35 Starting Node-RED

Is there something needed to get these images connected?

Hi @grant.cpt

How have you installed FlowForge? Is it the Docker or k8s version?

Also what hardware are you running on

Just wondering if Flowforge topics will be addressed here in the Node-RED forum or if you plan to setup a separate? I understand they are related but what would be best?

@krambriw we will be setting up our own support forum in the near future.

2 Likes

Docker Desktop (Just testing for now)

Mac M1

Web Portal says to check the logs, but they aren't of real help

Thanks @grant.cpt

We introduced hang detection in FF 1.7 that ensures Node-RED isn't left in a hung state. With the current timings, it should be giving Node-RED about 35 seconds to start up and start responding to HTTP pings. The logs you share do show about that time interval between it logging 'Starting Node-RED' and 'hang detected'. The question then is what is Node-RED doing.

Can you check the logs tab in the FF application - we should see some activity there showing Node-RED starting up - the container log only shows the wrapper app's logs.

So rebooted the stack, there was an ECONNREFUSED for a port 5432

Below is the log output from FF application

2023-05-24 19:08:44 [2023-05-24T17:08:44.179Z] INFO: FlowForge v1.7.1
2023-05-24 19:08:44 [2023-05-24T17:08:44.179Z] INFO: FlowForge running with NodeJS v16.20.0
2023-05-24 19:08:44 [2023-05-24T17:08:44.179Z] INFO: FlowForge Data Directory: /usr/src/forge
2023-05-24 19:08:44 [2023-05-24T17:08:44.179Z] INFO: Config File: /usr/src/forge/etc/flowforge.yml
2023-05-24 19:08:44 [2023-05-24T17:08:44.199Z] INFO: Database driver: postgres
2023-05-24 19:08:44 [2023-05-24T17:08:44.253Z] ERROR: Failed to start: SequelizeConnectionRefusedError: connect ECONNREFUSED 192.168.16.3:5432
2023-05-24 19:08:45 [2023-05-24T17:08:45.591Z] INFO: FlowForge v1.7.1
2023-05-24 19:08:45 [2023-05-24T17:08:45.591Z] INFO: FlowForge running with NodeJS v16.20.0
2023-05-24 19:08:45 [2023-05-24T17:08:45.592Z] INFO: FlowForge Data Directory: /usr/src/forge
2023-05-24 19:08:45 [2023-05-24T17:08:45.592Z] INFO: Config File: /usr/src/forge/etc/flowforge.yml
2023-05-24 19:08:45 [2023-05-24T17:08:45.606Z] INFO: Database driver: postgres
2023-05-24 19:08:46 [2023-05-24T17:08:45.977Z] INFO: No license applied
2023-05-24 19:08:46 [2023-05-24T17:08:45.993Z] INFO: Usage       : count/limit
2023-05-24 19:08:46 [2023-05-24T17:08:45.993Z] INFO:  Users      : 1/150
2023-05-24 19:08:46 [2023-05-24T17:08:45.993Z] INFO:  Teams      : 1/50
2023-05-24 19:08:46 [2023-05-24T17:08:45.993Z] INFO:  Projects   : 1/50
2023-05-24 19:08:46 [2023-05-24T17:08:45.993Z] INFO:  Devices    : 0/50
2023-05-24 19:08:46 [2023-05-24T17:08:46.253Z] INFO: Email not configured
2023-05-24 19:08:46 [2023-05-24T17:08:46.322Z] INFO: Container driver: docker
2023-05-24 19:08:46 [2023-05-24T17:08:46.410Z] INFO: Server listening at http://0.0.0.0:3000
2023-05-24 19:08:46 [2023-05-24T17:08:46.411Z] INFO: ****************************************************
2023-05-24 19:08:46 [2023-05-24T17:08:46.411Z] INFO: * FlowForge is now running and can be accessed at: *
2023-05-24 19:08:46 [2023-05-24T17:08:46.411Z] INFO: *   http://forge.example.com                       *
2023-05-24 19:08:46 [2023-05-24T17:08:46.411Z] INFO: ****************************************************
2023-05-24 19:08:46 [2023-05-24T17:08:46.484Z] INFO: Connected to comms broker
2023-05-24 19:09:31 [2023-05-24T17:09:31.101Z] INFO: AUDIT: event: stopped, type: project, id: 6df5518f-2c60-491c-8351-4c705b8d64d8
2023-05-24 19:09:45 [2023-05-24T17:09:44.984Z] INFO: AUDIT: event: crashed, type: project, id: 6df5518f-2c60-491c-8351-4c705b8d64d8
2023-05-24 19:09:45 [2023-05-24T17:09:45.498Z] INFO: AUDIT: event: project.deleted, type: team, id: 1
2023-05-24 19:09:45 [2023-05-24T17:09:45.506Z] INFO: AUDIT: event: project.deleted, type: project, id: 6df5518f-2c60-491c-8351-4c705b8d64d8
2023-05-24 19:10:00 [2023-05-24T17:09:59.209Z] INFO: AUDIT: event: project.created, type: project, id: 1ace15a3-5638-44d3-9c43-e816aa9b9097
2023-05-24 19:10:00 [2023-05-24T17:09:59.211Z] INFO: AUDIT: event: project.created, type: team, id: 1
2023-05-24 19:10:55 [2023-05-24T17:10:54.896Z] INFO: AUDIT: event: stopped, type: project, id: 1ace15a3-5638-44d3-9c43-e816aa9b9097
2023-05-24 19:11:46 [2023-05-24T17:11:45.584Z] INFO: AUDIT: event: crashed, type: project, id: 1ace15a3-5638-44d3-9c43-e816aa9b9097
2023-05-24 19:12:24 [2023-05-24T17:12:24.394Z] INFO: AUDIT: event: stopped, type: project, id: 1ace15a3-5638-44d3-9c43-e816aa9b9097
2023-05-24 19:13:05 [2023-05-24T17:13:04.237Z] INFO: AUDIT: event: stopped, type: project, id: 1ace15a3-5638-44d3-9c43-e816aa9b9097

KK so port 5432 is Postgres. Rebooted that container and then rebooted FF application. It's not complaining about connection refused.

However, Node-Red still isn't starting up

The logs we need to see are the Node-RED logs, not the FF logs.

From within the FlowForge application, you should see a Node-RED Logs tab on the left when looking at the instance page.

Oh my bad :see_no_evil:

Here are the requested logs. Very interesting behaviour...

2023/05/24 19:28:24
[system]
Launcher Started
2023/05/24 19:28:24
[system]
Loading project settings
2023/05/24 19:28:25
[system]
Target state is 'running'
2023/05/24 19:28:25
[system]
Starting Node-RED
2023/05/24 19:28:54
[info]
Welcome to Node-RED
===================
2023/05/24 19:28:54
[info]
Node-RED version: v3.0.2
2023/05/24 19:28:54
[info]
Node.js  version: v16.16.0
2023/05/24 19:28:54
[info]
Linux 5.15.49-linuxkit arm64 LE
2023/05/24 19:29:03
[system]
Node-RED hang detected.
2023/05/24 19:29:03
[system]
Stopping Node-RED
2023/05/24 19:29:05
[system]
Node-RED exited rc=0 signal=null
2023/05/24 19:29:06
[system]
Node-RED unexpectedly stopped after: 40s
2023/05/24 19:29:06
[system]
Starting Node-RED
2023/05/24 19:29:44
[system]
Node-RED hang detected.
2023/05/24 19:29:44
[system]
Stopping Node-RED
2023/05/24 19:29:44
[system]
Node-RED exited rc=0 signal=null
2023/05/24 19:29:44
[system]
Node-RED unexpectedly stopped after: 38s
2023/05/24 19:29:44
[system]
Starting Node-RED
2023/05/24 19:29:57
[info]
Welcome to Node-RED
===================
2023/05/24 19:29:57
[info]
Node-RED version: v3.0.2
2023/05/24 19:29:57
[info]
Node.js  version: v16.16.0
2023/05/24 19:29:57
[info]
Linux 5.15.49-linuxkit arm64 LE
2023/05/24 19:30:08
[info]
Loading palette nodes
2023/05/24 19:30:15
[info]
FlowForge HTTP Authentication Plugin loaded
2023/05/24 19:30:15
[info]
FlowForge Team Library Plugin loaded
2023/05/24 19:30:15
[]
FlowForge Light Theme Plugin loaded
2023/05/24 19:30:15
[]
FlowForge Dark Theme Plugin loaded
2023/05/24 19:30:22
[system]
Node-RED hang detected.
2023/05/24 19:30:22
[system]
Stopping Node-RED
2023/05/24 19:30:29
[system]
Node-RED exited rc=0 signal=null
2023/05/24 19:30:29
[system]
Node-RED unexpectedly stopped after: 44s
2023/05/24 19:30:29
[system]
Starting Node-RED
2023/05/24 19:30:43
[info]
Welcome to Node-RED
===================
2023/05/24 19:30:43
[info]
Node-RED version: v3.0.2
2023/05/24 19:30:43
[info]
Node.js  version: v16.16.0
2023/05/24 19:30:43
[info]
Linux 5.15.49-linuxkit arm64 LE
2023/05/24 19:30:55
[info]
Loading palette nodes
2023/05/24 19:30:57
[info]
FlowForge HTTP Authentication Plugin loaded
2023/05/24 19:30:57
[info]
FlowForge Team Library Plugin loaded
2023/05/24 19:30:57
[]
FlowForge Light Theme Plugin loaded
2023/05/24 19:30:57
[]
FlowForge Dark Theme Plugin loaded
2023/05/24 19:31:06
[warn]
------------------------------------------------------
2023/05/24 19:31:06
[warn]
[@flowforge/nr-project-nodes/project-link] Error: Project Link nodes cannot be loaded outside of FlowForge EE environment (line:6)
2023/05/24 19:31:06
[warn]
[@flowforge/nr-file-nodes/file] 'file in' already registered by module node-red
2023/05/24 19:31:06
[warn]
------------------------------------------------------
2023/05/24 19:31:06
[info]
Settings file  : /data/settings.js
2023/05/24 19:31:06
[info]
Context store  : 'default' [module=memory]
2023/05/24 19:31:06
[info]
Server now running at http://127.0.0.1:1880/
2023/05/24 19:31:06
[warn]
Encrypted credentials not found
2023/05/24 19:31:06
[info]
Starting flows
2023/05/24 19:31:06
[info]
Started flows
2023/05/24 19:31:07
[system]
Node-RED hang detected.
2023/05/24 19:31:07
[system]
Stopping Node-RED
2023/05/24 19:31:07
[info]
Stopping flows
2023/05/24 19:31:07
[info]
Stopped flows
2023/05/24 19:31:07
[system]
Node-RED exited rc=0 signal=null
2023/05/24 19:31:07
[system]
Node-RED unexpectedly stopped after: 38s
2023/05/24 19:31:07
[system]
Starting Node-RED
2023/05/24 19:31:20
[info]
Welcome to Node-RED
===================
2023/05/24 19:31:20
[info]
Node-RED version: v3.0.2
2023/05/24 19:31:20
[info]
Node.js  version: v16.16.0
2023/05/24 19:31:20
[info]
Linux 5.15.49-linuxkit arm64 LE
2023/05/24 19:31:34
[info]
Loading palette nodes
2023/05/24 19:31:36
[info]
FlowForge HTTP Authentication Plugin loaded
2023/05/24 19:31:36
[info]
FlowForge Team Library Plugin loaded
2023/05/24 19:31:36
[]
FlowForge Light Theme Plugin loaded
2023/05/24 19:31:36
[]
FlowForge Dark Theme Plugin loaded
2023/05/24 19:31:44
[warn]
------------------------------------------------------
2023/05/24 19:31:44
[warn]
[@flowforge/nr-project-nodes/project-link] Error: Project Link nodes cannot be loaded outside of FlowForge EE environment (line:6)
2023/05/24 19:31:44
[warn]
[@flowforge/nr-file-nodes/file] 'file in' already registered by module node-red
2023/05/24 19:31:44
[warn]
------------------------------------------------------
2023/05/24 19:31:44
[info]
Settings file  : /data/settings.js
2023/05/24 19:31:44
[info]
Context store  : 'default' [module=memory]
2023/05/24 19:31:45
[info]
Server now running at http://127.0.0.1:1880/
2023/05/24 19:31:45
[system]
Node-RED hang detected.
2023/05/24 19:31:45
[system]
Stopping Node-RED
2023/05/24 19:31:46
[system]
Node-RED exited rc=0 signal=null
2023/05/24 19:31:46
[system]
Node-RED unexpectedly stopped after: 39s
2023/05/24 19:31:46
[system]
Node-RED restart loop detected. Restarting in safe mode.
2023/05/24 19:31:46
[system]
Starting Node-RED
2023/05/24 19:32:05
[info]
Welcome to Node-RED
===================
2023/05/24 19:32:05
[info]
Node-RED version: v3.0.2
2023/05/24 19:32:05
[info]
Node.js  version: v16.16.0
2023/05/24 19:32:05
[info]
Linux 5.15.49-linuxkit arm64 LE
2023/05/24 19:32:17
[info]
Loading palette nodes
2023/05/24 19:32:19
[info]
FlowForge HTTP Authentication Plugin loaded
2023/05/24 19:32:19
[info]
FlowForge Team Library Plugin loaded
2023/05/24 19:32:19
[]
FlowForge Light Theme Plugin loaded
2023/05/24 19:32:19
[]
FlowForge Dark Theme Plugin loaded
2023/05/24 19:32:24
[system]
Node-RED hang detected.
2023/05/24 19:32:24
[system]
Stopping Node-RED

Okay, so I took an older Docker image 1.5.0 - it's up and running, but I can't access the Node-Red interface. So I'm busy checking why this images/container isn't accessible

Would there be a reason why the Flowforge images doesn't public any ports?

Hi @grant.cpt did you get past these issues?

If so, can you tell us what you did?

Thanks

Because all the access is run through the NGINX proxy, there should be no direct access to the running containers

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