FlowFuse / device-agent

An agent to run FlowFuse managed instances of Node-RED on devices
Apache License 2.0
15 stars 8 forks source link

Loop in Device Agent on Wago Controller using Docker #204

Closed MarianRaphael closed 7 months ago

MarianRaphael commented 9 months ago

Current Behavior

The Device Agent, when accessed on a Wago Controller through Docker, enters an endless loop. This problem occurs during the initialization of Node-RED.

Welcome to Node-RED

[NR] 11/11/2023 4:33:59 PM [info] Node-RED version: v3.1.0 [NR] 11/11/2023 4:33:59 PM [info] Node.js version: v16.20.2 [NR] 11/11/2023 4:33:59 PM [info] Linux 5.10.21-rt34w03.01.06 arm LE [NR] 11/11/2023 4:34:07 PM [info] Loading palette nodes [NR] 11/11/2023 4:34:09 PM [info] FlowForge Light Theme Plugin loaded [NR] 11/11/2023 4:34:09 PM [info] FlowForge Dark Theme Plugin loaded [NR] 11/11/2023 4:34:09 PM [info] FlowFuse Team Library Plugin loaded [NR] 11/11/2023 4:34:18 PM [info] # [NR] 11/11/2023 4:34:18 PM [info] # Fatal error in , line 0 [NR] 11/11/2023 4:34:18 PM [info] # unreachable code [NR] 11/11/2023 4:34:18 PM [info] # [NR] 11/11/2023 4:34:18 PM [info] # [NR] 11/11/2023 4:34:18 PM [info] # [NR] 11/11/2023 4:34:18 PM [info] #FailureMessage Object: 0xb5d5275c [AGENT] 11/11/2023 4:34:18 PM [info] Node-RED stopped unexpectedly - restarting [AGENT] 11/11/2023 4:34:18 PM [info] Starting Node-RED

Expected Behavior

No response

Steps To Reproduce

root@CC100-5667E0:/opt/flowfuse-device docker run --restart=always --mount type=bind,src=/opt/flowfuse-device/device.yml,target=/opt/flowfuse-device/device.yml -p 1880:1880 flowfuse/device-agent:latest

Environment

hardillb commented 9 months ago

Can you provide the device.yml file?

Also it is probably worth mounting a directory on /opt/flowfuse-device/ with the device.yaml file in side so we can see the full project file, settings.js and the flows that NR is trying to run

MarianRaphael commented 9 months ago

Do you need the complete device.yml? I added you to the team with the Wago Device

FF_DEVICE_ID | 613Q1Px3ka |   -- | -- | -- FF_DEVICE_NAME | Wago-SPS Fair |   FF_DEVICE_TYPE | Wago 100 |   FF_SNAPSHOT_ID | VB31BBpzPJ |   FF_SNAPSHOT_NAME | SPS |  

hardillb commented 9 months ago

Yes, I need the device.yml because I can't reproduce it.

I also want to see what files are already on the device.

hardillb commented 9 months ago

Actually I know what this is, it's to do with the docker setup on the device

https://github.com/node-red/node-red-docker/issues/319

hardillb commented 7 months ago

@MarianRaphael Can we close this? As it is a Docker version problem as described in the linked Node-RED issue