Skip to content

Commit f22c5ee

Browse files
Merge remote-tracking branch 'upstream/main' into fix/missing-loading-state
2 parents 5b63bf8 + 71a7147 commit f22c5ee

31 files changed

Lines changed: 621 additions & 248 deletions

File tree

.github/workflows/branch-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
mask-password: true
253253

254254
- name: Login to GHCR
255-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
255+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
256256
with:
257257
registry: ghcr.io
258258
username: ${{ github.actor }}

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
path: 'blueprint-library'
5050
token: ${{ steps.generate_token.outputs.token }}
5151
- name: Cache image pipeline output
52-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
52+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5353
with:
5454
key: img-pipeline-cache
5555
path: website/_site/img

.github/workflows/release-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
- run: npm ci
1919
- run: npm run build
2020
# - run: npm run test
21-
- uses: JS-DevTools/npm-publish@ad693561f8a5b5d4c76f14407da60aa15cb10f90 # v4.0.1
21+
- uses: JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # v4.1.1
2222
with:
2323
token: ${{ secrets.NPM_PUBLISH_TOKEN }}

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
#### 2.22.0: Release
2+
3+
- docs: Rearrange Device Agent documentation (#5977)
4+
- Expose SAML SSO groups to Dashboard (#6041) @hardillb
5+
- Update device local auth docs (#6047) @hardillb
6+
- Bump JS-DevTools/npm-publish from 4.0.0 to 4.0.1 (#6048) @app/dependabot
7+
- Add @flowfuse-nodes scope to Certified Nodes (#6045) @hardillb
8+
- Team broker schema agent (#6003) @hardillb
9+
- Revised snapshot descriptions (#6014) @cstns
10+
- Standardize right drawer header (#6013) @cstns
11+
- Modularize drawer logic by extracting them into a dedicated vuex module (#6004) @cstns
12+
- Docs: Adds clarification of data retention for FlowFuse Assistant (#6030) @joepavitt
13+
- Docs: Modernise the FlowFuse Assistant documentation (#6026) @joepavitt
14+
- fix: close search overlay when tabbing out of search control (#6024) @harshrajeevsingh
15+
- Adds support for closing the right drawer when pressing the Escape key (#6010) @cstns
16+
- Bump vite from 6.3.5 to 6.3.6 (#6000) @app/dependabot
17+
- Bump JS-DevTools/npm-publish from 3.1.1 to 4.0.0 (#6023) @app/dependabot
18+
- Bump axios from 1.8.3 to 1.12.1 (#6020) @app/dependabot
19+
- Fix owner id in snapshot AI request (#6016) @Steve-Mcl
20+
- Replace the permissions mixin with it's composable counterpart (#5993) @cstns
21+
- Add api to generate remote instance snapshot description (#5966) @cstns
22+
- Fix UI lock up when binding tables values with non utf encodings (#5986) @cstns
23+
124
#### 2.21.2: Release
225

326
- Bump aws-actions/configure-aws-credentials from 4.3.1 to 5.0.0 (#5994)
131 KB
Loading

docs/device-agent/install/device-agent-installer.md

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ The FlowFuse Device Agent Installer is the easiest way to get the FlowFuse Devic
2727
- Internet connection for downloading dependencies
2828
- Administrator/root privileges for system service installation
2929

30+
### Networking requirements
31+
32+
Please see [Networking requirements](./overview.md#networking-requirements).
33+
3034
## Use the FlowFuse Device Agent Installer to install or update the FlowFuse Device Agent
3135

3236
### One-line install
@@ -135,7 +139,9 @@ To update the Device Agent package, use the `--update-agent` flag, optionally sp
135139

136140
Specifying `--update-agent` without the `--agent-version` flag will update to the latest available version.
137141

138-
## Managing
142+
## Troubleshooting
143+
144+
### Managing the Device Agent service
139145

140146
Services are named per-port, for example `flowfuse-device-agent-1880`. On macOS, the launchd label is `com.flowfuse.device-agent-1880`.
141147

@@ -145,7 +151,6 @@ Services are named per-port, for example `flowfuse-device-agent-1880`. On macOS,
145151
sudo systemctl start flowfuse-device-agent-<port>
146152
sudo systemctl stop flowfuse-device-agent-<port>
147153
sudo systemctl restart flowfuse-device-agent-<port>
148-
sudo systemctl status flowfuse-device-agent-<port>
149154
```
150155

151156
#### Linux (SysVinit)
@@ -154,7 +159,6 @@ sudo systemctl status flowfuse-device-agent-<port>
154159
sudo service flowfuse-device-agent-<port> start
155160
sudo service flowfuse-device-agent-<port> stop
156161
sudo service flowfuse-device-agent-<port> restart
157-
sudo service flowfuse-device-agent-<port> status
158162
```
159163

160164
#### Linux (OpenRC)
@@ -163,7 +167,6 @@ sudo service flowfuse-device-agent-<port> status
163167
sudo rc-service flowfuse-device-agent-<port> start
164168
sudo rc-service flowfuse-device-agent-<port> stop
165169
sudo rc-service flowfuse-device-agent-<port> restart
166-
sudo rc-service flowfuse-device-agent-<port> status
167170
```
168171

169172
#### macOS (launchd)
@@ -172,18 +175,52 @@ sudo rc-service flowfuse-device-agent-<port> status
172175
sudo launchctl start com.flowfuse.device-agent-<port>
173176
sudo launchctl stop com.flowfuse.device-agent-<port>
174177
sudo launchctl kickstart -k system/com.flowfuse.device-agent-<port>
175-
sudo launchctl print system/com.flowfuse.device-agent-<port>
176178
```
177179

178180
#### Windows (Service Control)
179181

180182
```bash
181183
sc.exe start flowfuse-device-agent-<port>
182184
sc.exe stop flowfuse-device-agent-<port>
185+
```
186+
187+
188+
### Check the Device Agent service status
189+
190+
You can check the status of the Device Agent service to verify if it is running correctly or to diagnose any issues.
191+
The status command provides information about the current state of the service, including whether it is active, inactive, or failed.
192+
193+
#### Linux (systemd)
194+
195+
```bash
196+
sudo systemctl status flowfuse-device-agent-<port>
197+
```
198+
199+
#### Linux (SysVinit)
200+
201+
```bash
202+
sudo service flowfuse-device-agent-<port> status
203+
```
204+
205+
#### Linux (OpenRC)
206+
207+
```bash
208+
sudo rc-service flowfuse-device-agent-<port> status
209+
```
210+
211+
#### macOS (launchd)
212+
213+
```bash
214+
sudo launchctl print system/com.flowfuse.device-agent-<port>
215+
```
216+
217+
#### Windows (Service Control)
218+
219+
```bash
183220
sc.exe query flowfuse-device-agent-<port>
184221
```
185222

186-
## Viewing Device Agent log files
223+
### Viewing Device Agent log files
187224

188225
Adjust the path if custom directory has been specified during installation.
189226

@@ -203,6 +240,35 @@ journalctl -f -u 'flowfuse-device-agent-<port>'
203240
Get-Content -Path 'C:\opt\flowfuse-device\flowfuse-device-agent.log' -Wait
204241
```
205242

243+
### Error: Disk space check failed
244+
245+
> [ERROR] Disk space check failed: insufficient disk space in temporary directory (/tmp): need at least 500.0 MB, available 490.4 MB
246+
247+
##### Cause:
248+
The `Disk space check failed` error indicates that the installer has detected insufficient disk space in the temporary directory.
249+
The FlowFuse Device Agent Installer requires a minimum of 500MB of free disk space in the temporary directory to ensure proper installation.
250+
251+
This error might also appear if there is not enough space on the disk partition where the Device Agent is being installed.
252+
Make sure that the target installation directory has at least 500MB of free space available.
253+
[Adjust installation directory](/docs/device-agent/install/device-agent-installer/#install-in-custom-directory) accordingly.
254+
255+
##### Solution:
256+
To fix this issue, you can try to free up some disk space by deleting unnecessary files or moving them to another location.
257+
Alternatively, you can specify a different temporary directory with sufficient space by setting proper environmental variable before running the installer.
258+
259+
**On Linux/macOS**, set the `TMPDIR` environment variable:
260+
261+
```bash
262+
export TMPDIR=/path/to/existing/directory/with/sufficient/space
263+
```
264+
265+
**On Windows**, you can set the `TEMP` or `TMP` environment variable:
266+
```powershell
267+
Set TMP="C:\path\to\existing\directory\with\sufficient\space"
268+
```
269+
270+
Retry installation after making these adjustments.
271+
206272
## Further reading
207273

208274
For more detailed technical information about the FlowFuse Device Agent, like list of supported parameters or how to contribute, please refer to the [documentation](https://github.com/FlowFuse/device-agent/blob/main/installer/README.md).

docs/device-agent/install/manual.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Use this method if you want direct control over the Node.js runtime and filesyst
2020
- Linux, macOS, or Windows
2121
- Outbound network access to FlowFuse platform and the NPM registry
2222

23+
### Networking requirements
24+
25+
Please see [Networking requirements](./overview.md#networking-requirements).
26+
2327
## Install the Device Agent
2428

2529
The Device Agent is published to npm as [@flowfuse/device-agent](https://www.npmjs.com/package/@flowfuse/device-agent).
@@ -103,19 +107,6 @@ flowfuse-device-agent -v
103107

104108
Once assigned, access the Node-RED editor at `http://<device-ip>:1880`.
105109

106-
## Networking requirements
107-
108-
Allow outbound TCP 443 to:
109-
110-
- app.flowfuse.com
111-
- mqtt.flowfuse.cloud
112-
113-
Ensure access to npm registry to download Node-RED and nodes:
114-
115-
- https://registry.npmjs.com
116-
117-
For offline environments, see [Running with no access to npmjs.org](../running.md#running-with-no-access-to-npmjs.org).
118-
119110
## Upgrading the agent
120111

121112
With Device Agent 1.13+, the package moved from the `@flowforge` scope to `@flowfuse`:

docs/device-agent/install/overview.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ Most users should use the Device Agent Installer. Power users can choose Manual
3535

3636
Note: The Device Agent downloads the required Node-RED version and any nodes specified by the assigned snapshot. Ensure firewall/proxy permits access to the npm registry or see [Running with no access to npmjs.org](../running.md#running-with-no-access-to-npmjs.org).
3737

38+
### Networking requirements
39+
40+
If you're working behind a firewall, and need to configure it to allow the Device Agent to connect to FlowFuse and the npm registry, see the following:
41+
42+
Allow outbound TCP 443 to:
43+
44+
- app.flowfuse.com
45+
- mqtt.flowfuse.cloud
46+
- registry.flowfuse.cloud
47+
- registry.flowfuse.com
48+
49+
Ensure access to npm registry to download Node-RED and nodes:
50+
51+
- https://registry.npmjs.com
52+
53+
For offline environments, see [Running with no access to npmjs.org](../running.md#running-with-no-access-to-npmjs.org).
54+
55+
3856
## Verify the installation
3957

4058
After installing by any method:

docs/device-agent/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The FlowFuse platform can be used to manage Node-RED Remote Instances running on
1919

2020
By installing the FlowFuse Device Agent, you can securely connect your hardware to FlowFuse in order to manage and deploy Node-RED flows remotely.
2121

22+
**Note:** The FlowFuse Device Agent will install Node-RED when the agent receives a snapshot to run from FlowFuse.
23+
2224
In order to connect your device to FlowFuse, and to allow FlowFuse to manage it, you'll need to do the following steps:
2325

2426
- [Quick Start Guide](/docs/device-agent/quickstart.md) - Install on a device and remotely edit through FlowFuse Cloud.

docs/device-agent/register.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ httpStatic:
338338

339339
This option can be used to enable local login for the Node-RED editor. This option is not recommended for day to day use.
340340

341+
It can be configured under the Remote Instance's Settings
342+
343+
![Local Auth settings for Remote Instance](./images/device-local-access.png){data-zoomable}
344+
_Local Auth settings for Remote Instance_
345+
346+
Or by adding the following to the `device.yml` file
347+
341348
```yml
342349
localAuth:
343350
enabled: true

0 commit comments

Comments
 (0)