An error appears: Editor tunnel closed, code=4004, reason=No tunnel
- Dominant language
- JavaScript
- Stars
- 400
- Forks
- 89
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 149
Description
### Current Behavior
We installed FlowFuse on our server in February, and the device (FlowFuse agent) has been running well. However, we recently noticed that the device sometimes hangs, and I can't access it via SSH. Additionally, the connection with the FlowFuse server is lost.
We are using Debian OS on the device.
When I checked the logs on the FlowFuse server, I found an error: Editor tunnel closed, code=4004, reason=No tunnel. Below is the log :
```
3/25/2025 6:17:13 AM [info] Version: 3.0.2
3/25/2025 6:17:13 AM [info] Mode: Device Mode
3/25/2025 6:17:13 AM [info] Device: O8qarmM0B3
3/25/2025 6:17:13 AM [info] ForgeURL: https://forge.flowfuse.wingscorp.com
3/25/2025 6:17:14 AM [info] Configuration :-
3/25/2025 6:17:14 AM [info] * Application : XVNPDXPv2D
3/25/2025 6:17:14 AM [info] * Snapshot : none
3/25/2025 6:17:14 AM [info] * Settings : d445245e43c10b2e766f30c47bcc979453e8a3e7c603c4acdd7e7fa371cc3e7b
3/25/2025 6:17:14 AM [info] * Operation Mode : developer
3/25/2025 6:17:14 AM [info] * Target State : running
3/25/2025 6:17:14 AM [info] * Licensed : yes
3/25/2025 6:17:14 AM [info] Environment :-
3/25/2025 6:17:14 AM [info] * FF_DEVICE_ID : O8qarmM0B3
3/25/2025 6:17:14 AM [info] * FF_DEVICE_NAME : sulfur3-plc
3/25/2025 6:17:14 AM [info] * FF_DEVICE_TYPE :
3/25/2025 6:17:14 AM [info] * FF_APPLICATION_ID : XVNPDXPv2D
3/25/2025 6:17:14 AM [info] * FF_APPLICATION_NAME: wings-plc
3/25/2025 6:17:14 AM [info] * FF_SNAPSHOT_ID : 0
3/25/2025 6:17:14 AM [info] * FF_SNAPSHOT_NAME : None
3/25/2025 6:17:16 AM [info] Starting MQTT heartbeat thread. Interval: 30s (±5s)
3/25/2025 6:17:16 AM [info] MQTT connected
3/25/2025 6:17:17 AM [info] Starting Node-RED
3/25/2025 6:17:17 AM [info] Enabling remote editor access
3/25/2025 6:17:17 AM [info] Connecting editor tunnel to wss://forge.flowfuse.wingscorp.com/api/v1/devices/O8qarmM0B3/editor/comms/ffde_O8qarmM0B3_8ggxsaeC9gvdOYzuLZK96g
3/25/2025 6:17:17 AM [info] Editor tunnel connected
3/25/2025 6:17:17 AM [info] Editor tunnel closed code=4004 reason=No tunnel
3/25/2025 8:36:28 AM [info] Welcome to Node-RED
===================
3/25/2025 8:36:28 AM [info] Node-RED version: v4.0.9
3/25/2025 8:36:28 AM [info] Node.js version: v22.12.0
3/25/2025 8:36:28 AM [info] Linux 5.10.160-rockchip-rk356x arm64 LE
3/25/2025 8:36:29 AM [info] Loading palette nodes
3/25/2025 8:36:30 AM [info] FlowFuse Assistant Plugin is disabled
3/25/2025 8:36:30 AM [info] FlowFuse Light Theme Plugin loaded
3/25/2025 8:36:30 AM [info] FlowFuse Dark Theme Plugin loaded
3/25/2025 8:36:30 AM [info] FlowFuse Team Library Plugin loaded
3/25/2025 8:36:35 AM [] (node:1815) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
3/25/2025 8:36:35 AM [] (Use node --trace-deprecation ... to show where the warning was created)
3/25/2025 8:36:36 AM [info] Settings file : /opt/flowfuse-device/project/settings.js
3/25/2025 8:36:36 AM [info] Context store : 'memory' [module=memory]
3/25/2025 8:36:36 AM [info] Context store : 'persistent' [module=localfilesystem]
3/25/2025 8:36:36 AM [info] User directory : /opt/flowfuse-device/project
3/25/2025 8:36:36 AM [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
3/25/2025 8:36:36 AM [info] Flows file : /opt/flowfuse-device/project/flows.json
3/25/2025 8:36:37 AM [info] Server now running at http://127.0.0.1:1880/device-editor/
3/25/2025 8:36:37 AM [info] Starting flows
3/25/2025 8:36:37 AM [info] Started flows
3/25/2025 8:36:37 AM [info] Binding aedes mqtt server on port: 1883
3/25/2025 8:36:37 AM [info] Connected to broker: mqtt://10.30.12.72:1883
3/25/2025 8:36:37 AM [info] { device: 'sulfur3-plc', application: 'wings-plc' }
3/25/2025 8:36:38 AM [info] Connected to broker: sulfur31@POmogbR5z6@wss://broker.flowfuse.wingscorp.com
3/25/2025 9:26:55 AM [info] Enabling remote editor access
3/25/2025 9:26:55 AM [info] Connecting editor tunnel to wss://forge.flowfuse.wingscorp.com/api/v1/devices/O8qarmM0B3/editor/comms/ffde_O8qarmM0B3_82UywJlNyXZ7KkNSwj4n0w
3/25/2025 9:26:55 AM [info] Editor tunnel connected
3/25/2025 9:32:23 AM [info] MQTT reconnecting to platform
3/25/2025 9:32:23 AM [info] MQTT connected
3/25/2025 10:29:19 AM [info] MQTT reconnecting to platform
3/25/2025 10:29:19 AM [info] MQTT connected
3/25/2025 11:10:39 AM [info] end1: flags=4163 mtu 1500
inet 192.168.100.15 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::200:a4ff:fe8f:53bf prefixlen 64 scopeid 0x20
ether 00:00:a4:8f:53:bf txqueuelen 1000 (Ethernet)
RX packets 127532 bytes 15847237 (15.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 88907 bytes 16573338 (15.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 43
eth0: flags=4163 mtu 1500
inet 172.20.34.114 netmask 255.255.255.0 broadcast 172.20.34.255
inet6 fe80::e827:5e33:7e3d:74b6 prefixlen 64 scopeid 0x20
ether 82:bd:5b:fc:ee:4e txqueuelen 1000 (Ethernet)
RX packets 275487 bytes 26203688 (24.9 MiB)
RX errors 0 dropped 349 overruns 0 frame 0
TX packets 341613 bytes 144522802 (137.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 76894 bytes 47672101 (45.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 76894 bytes 47672101 (45.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3/25/2025 11:28:05 AM [info] MQTT reconnecting to platform
3/25/2025 11:28:06 AM [info] MQTT connected
```
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Environment
- FlowFuse version:
- Node.js version:
- npm version:
- Platform/OS:
- Browser:
### Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Contributor guide
Assessment
This issue has not been assessed yet.