Troubleshooting
Why ipkg install gcc fails on a PLCnext edge controller
Short answer
The install stops at ipkg install gcc because the tutorial builds Node-RED natively, which is unsupported on the controller. Run Node-RED in a Docker container instead, decide on storage from df -h and free -m readings rather than buying a card up front, and remember the IT library SMTP function block is not released for GPRS: mail over a GPRS-mode router belongs in the container's email node or on a faster bearer.

On this page
- Why does ipkg install gcc fail on the AXC F 2152?
- Is there a supported way to run Node-RED on this controller?
- Does the controller have room for the container, or do I need external storage?
- How do I send an email when a controller input changes?
- Does the IT library SMTP function block work over GPRS?
- How do I prove the mobile link carries mail before blaming the flow?
- What does a passing end-to-end alarm test look like?
- Questions asked
ipkg install gcc stops because the procedure you followed builds Node-RED natively on the controller, and a native build is not a released route for the AXC F 2152. Do not buy a memory card to rescue it, and do not debug the compiler step: the supported path is Node-RED in a Docker container, where the image already carries Node.js, Node-RED and the build tooling the tutorial was trying to fetch. This article gives the decision rule for storage and RAM with the arithmetic worked through, an alarm flow that fires mail on a change, the vendor statement on the IT library SMTP block and GPRS, and the tests that prove mail leaves the site.
Why does ipkg install gcc fail on the AXC F 2152? #
The install stops at the compiler because the tutorial you followed builds Node-RED from source on the controller's own Linux system, and that native-build route is not released for this controller, so the compiler step is where the procedure stops.
Nothing is wrong with the package manager, and no flag combination fixes it: the firmware's package sources are sized for the control runtime, not for compiling a JavaScript stack from source. The container route removes the need entirely, because the Node-RED image ships the runtime and the tooling with it.
Do this before moving on:
- Abandon the native path; do not retry the compiler step with different options.
- Undo whatever the failed step left behind so the firmware stays at its released state — a half-installed toolchain on a control device is worse than none.
- Note the firmware version, because the Docker guide states a firmware requirement you need in the next step.
- Buy nothing yet: the memory-card decision comes from measurement, not from the failed install.
Is there a supported way to run Node-RED on this controller? #
Yes: the vendor's container route. Install the Docker-compatible engine (Balena-Engine) on the AXC F 2152 following the vendor's Docker getting-started guide, then run Node-RED as a container with its flows on a persistent volume, and the controller firmware stays at its released state.
The vendor documents the route in two places: the Docker getting-started repository for the AXC F 2152, which walks through the engine install, and the maker-blog article on Node-RED with Docker, tips and best practice, which covers container run options and operating practice. The older community discussion page that some tutorials still cite returns an error today, so treat those two as the working references, and check the firmware requirement the guide states before installing the engine.
Native installs are a normal route on a general-purpose Linux edge computer, as in the guide to installing Node-RED natively on a Linux edge computer, but this controller runs its control runtime on a fixed firmware layout, so the compiler stays off it. If a project genuinely needs compiled code at the edge, that work belongs on a general-purpose edge board — the walk-through of GCC builds and execution on a BeagleBone Black is one documented example — not inside control firmware.
Confirm the engine before pulling anything: the version command the guide gives must answer, and a trivial test container must run. Do not continue until both work.
Does the controller have room for the container, or do I need external storage? #
Measure before you buy: read free space with df -h and free RAM with free -m, then compare the free space on the container-data partition with the image size plus your flow data — the arithmetic below decides internal storage, external storage or a separate host.
Open an SSH session and read both numbers, then do the arithmetic against what you will actually store: the Node-RED image size your registry reports, plus flows, logs and the persistent volume's data.
Worked example, with example numbers that your readings replace. Say df -h shows 1.2 GB free on the partition that will hold container data, the Node-RED image comes to about 450 MB, and flows plus logs add 150 MB — 600 MB in total. 1.2 GB - 0.6 GB = 0.6 GB free after the pull, so the controller holds it internally and no card is needed. If the same reading had come back at 500 MB: 500 MB - 600 MB = -100 MB, short by 100 MB, so point the engine's data directory (its data-root setting) at external storage before pulling, not after the partition fills.
For RAM, read the available column of free -m, start the container, measure its draw, and subtract: for example, 512 MB available minus 200 MB for the idling container leaves 312 MB for the control runtime and logging. That measured remainder must cover the control task's worst case; it is the decision number, not a rule of thumb. Once containers run, docker system df shows what images and volumes actually occupy.
Decisions, per case:
- Free space at or above image plus flow data: internal storage, nothing to buy.
- Free space below that total: move the engine's data-root to external storage, then pull the image.
- RAM remainder that cannot cover the control task's worst case: keep the controller for control and host the Node-RED container on a separate fanless industrial mini PC, which shares nothing with the control runtime.
How do I send an email when a controller input changes? #
Build the alarm flow in four stages and prove each before adding the next: persistent volume, live controller value into a debug node, a change filter so the flow fires on change instead of per poll, then the email node pointed at your SMTP server.
- Volume first. Start the container with Node-RED's data directory mounted from the host, so flows, credentials and installed nodes survive recreation — the mechanics, and the failure when the mount is wrong, are in the article on the Node-RED Docker EACCES mkdir error and host storage.
- Data second. Bring the controller variable into the flow with the data-access method the maker-blog article describes, and prove it with a debug node that shows the live value while you toggle the input at the machine.
- Filter third. A report-by-exception node (rbe) passes one message per change; for an input fault, add a switch node that passes only the fault state. The debug sidebar should show one message per change, never a stream.
- Mail last. Install the email node from the palette manager (the node-red-node-email package) and configure the SMTP server, the submission port your mail provider documents, credentials and the recipient address. Mobile carriers often filter outbound port 25, which is why the submission port is the reliable choice.
If you also need SMS, Node-RED core has no SMS node: send through the provider's email-to-SMS gateway or its HTTP API, whichever the provider documents.
Email and SMS here are notifications, not a safety function: the stop that protects people or machinery stays in the controller's own logic, and this flow only announces what the controller already detected.
Where a stage fails, the fault lives in one place:
| Symptom | Fault lives in |
|---|---|
| Debug node never shows the toggled input's value | the data-access binding between container and controller |
| Value shows, but no message leaves the filter | flow logic: the rbe or switch condition |
| Email node status shows an error | network path, SMTP credentials or carrier filtering |
Does the IT library SMTP function block work over GPRS? #
No, the vendor's function-block development states the IT library SMTP block cannot be used for GPRS communication and is not released for that case, so when the mobile router runs in GPRS mode the block will not send mail and no input configuration changes that.
That is a release decision, not a bug: no tag, block input or firmware setting makes the block send mail in that mode, so debugging its inputs wastes time. Read the router's status page first and note its current bearer — that one line tells you which case you are in.
Decisions, per case:
- Router in GPRS mode: move mail to the Node-RED email node in the container. It uses the container's own network stack, so the block's release restriction does not apply — but GPRS latency, NAT and carrier port filtering still do, so run the reachability tests in the next section.
- Router offers a faster bearer: switch modes per the router's own documentation and retest the block. The release statement covers GPRS only, so before relying on any other bearer, confirm it in the IT library documentation.
How do I prove the mobile link carries mail before blaming the flow? #
Test from inside the container along the route the email node uses: resolve the SMTP server name, then open TCP to the submission port you configured — only when both succeed does a remaining failure point at credentials or flow logic.
Work along the path in order:
- DNS:
docker exec <container> nslookup <smtp-host>— a failure here is DNS or the router's gateway setting on the controller, not SMTP. - TCP:
nc -vz <smtp-host> <port>if the image carries nc, or the equivalent from the host. A timeout or refusal is carrier port filtering; use the submission port your provider documents rather than port 25. - Gateway: confirm the controller's default route points at the mobile router and that the router forwards outbound traffic.
Decision: DNS resolves and the TCP connection opens, so any failure left is attributable to SMTP credentials or flow logic; TCP blocked, so fix the port or the bearer first, because no credential change helps while the path is closed.
What does a passing end-to-end alarm test look like? #
A pass is six checks: the debug node shows the changed value, exactly one message passes the filter, the mail lands in the recipient's mailbox, the SMS arrives through the gateway, the setup survives a container restart and a controller reboot, and mail triggers again afterwards.
Run them in order and stop at the first failure, because each step depends on the last:
- Trigger a real input fault and confirm the debug node shows the changed value.
- Confirm exactly one message passes the change filter.
- Confirm the mail lands in the recipient's mailbox.
- If you set up SMS, confirm it arrives through the chosen gateway.
- Restart the container and confirm the flows come back intact from the host volume.
- Reboot the controller, confirm the container's restart policy brings Node-RED back with no manual action, then trigger the fault again and confirm mail still leaves over the mobile link.
A failure at the restart or reboot step points at the volume or the restart policy; a failure after that, with the earlier checks green, points back at the mobile path.
Questions asked
Why do my Node-RED flows disappear when I recreate the container?
The flows live in the container's writable layer, which is discarded whenever the container is removed or recreated. Keep Node-RED's data directory on a host-mounted volume so flows, credentials and installed palette nodes survive recreation, image upgrades and restarts.
Do some Node-RED palette nodes need a compiler inside the container?
Some do. Nodes that ship native code build at install time and need build tools inside the container image, so prefer nodes with prebuilt binaries on a controller and test the install on a workbench unit first. Node-RED core and most common nodes are pure JavaScript and install without a compiler.
Is it safe to keep Node-RED and the control runtime on the same controller?
Within the measured limits, yes: the container shares the controller's RAM and storage with the control runtime, so the readings this article describes decide it. Keep fault detection in the controller program and use Node-RED only for notification, so a container problem can never hide an alarm the controller has raised.
Does the GPRS limit also stop the Node-RED email node from sending?
No. The release statement covers the IT library SMTP function block, which is a controller-side program block. The Node-RED email node runs in the container with its own network stack, so the restriction does not apply to it; what still applies is whatever the mobile bearer itself blocks, such as filtered ports or slow upstream bandwidth.


