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

Loop in Device Agent on Wago Controller using Docker #204

Closed
MarianRaphael opened this issue Nov 11, 2023 · 5 comments
Closed

Loop in Device Agent on Wago Controller using Docker #204

MarianRaphael opened this issue Nov 11, 2023 · 5 comments
Labels
bug Something isn't working needs-triage Needs looking at to decide what to do

Comments

@MarianRaphael
Copy link
Contributor

MarianRaphael commented Nov 11, 2023

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

  • FlowFuse version: FF Cloud, 1.13.3 Device Agent
  • Node.js version:
  • npm version:
  • Platform/OS: Wago Controller 100 - ptxdist linux via docker
@MarianRaphael MarianRaphael added bug Something isn't working needs-triage Needs looking at to decide what to do labels Nov 11, 2023
@hardillb
Copy link
Contributor

hardillb commented Nov 11, 2023

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
Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor

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

node-red/node-red-docker#319

@hardillb
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Needs looking at to decide what to do
Projects
Status: Closed / Done
Development

No branches or pull requests

2 participants