IMD SolutionComputing LibraryShop main store

Explainer

Why Ignition Edge cannot run without a local package cache

Edge computing and IIoT Published 5 min read By IMD Solution engineering team

Short answer

Ignition Edge has no setting to disable its local cache because the client needs compressed JAR packages on local storage to decompress classes on demand. After a power cut leaves an incomplete file and the client fails with EOFException, delete ~/.ignition/cache under the launching account before the client starts and accept a slower first launch.

On this page
  1. Why can't Ignition Edge run with no local cache?
  2. Where does the cache live and whose is it?
  3. What does EOFException actually tell you?
  4. How do I clear the cache before every launch?
  5. Is there a better fix than deleting the cache each boot?
  6. How do I verify the fix is working?
  7. Questions asked

An Edge PC that is always killed by a power cut will eventually fail to launch its Vision client with Error launching application: EOFException: null, because an interrupted write left an incomplete file in the local package cache. The fix is to delete that cache before the client starts and let it rebuild; there is no setting that lets the client run without a cache, because it needs compressed JAR packages on local storage to work from.

Why can't Ignition Edge run with no local cache? #

Because its packages are, for the most part, compressed JAR files that the client must read from local storage to decompress classes on demand. Much of the content can be decompressed into RAM as needed, but the source archive has to sit on local storage for that on-demand decompression to work at all. So no launch option, gateway setting or client flag disables the cache: the folder named .ignition under the launching account's user directory is created on the first launch of a client or Designer and stays, as the vendor's own cache-clearing procedure confirms. Deleting it is a recovery action, not a way to run without it.

Where does the cache live and whose is it? #

Under the home directory of the account that launches the client, in ~/.ignition/cache, so the first check is that you clear the right user's copy. On an Edge device the client is typically launched by an autostart entry or script running under one specific account; deleting the cache of a different account, for example an admin you logged in as over SSH, clears nothing the client uses. Find the account in the launcher (the session that owns the client process) and operate on that account's home directory.

What does EOFException actually tell you? #

That a reader reached the end of a data stream before it expected to, which fits a cached package truncated by an interrupted write. An EOFException on its own does not prove the cache is the cause, so treat it as a hypothesis and test it: record the exact message, clear ~/.ignition/cache for the client's account, and launch again. If the client then loads, the corrupted cache is confirmed as the cause; if it fails the same way with an empty cache, the problem is elsewhere and repeated deletion will not help.

The trigger is the shutdown behavior. A Compact Flash card that is written while power is removed can end up with an incomplete file, and a device that is always switched off without a shutdown will hit this repeatedly. The cache is not special in that respect; it is just the directory the client reads on every launch, so it is where the damage shows first.

How do I clear the cache before every launch? #

With a short startup step that runs before the client, under the same account the client runs under:

  1. Stop the client, or keep it from starting, while the cache is being changed.
  2. Delete only ~/.ignition/cache for that account; do not widen the deletion to other folders under .ignition, and do not touch the gateway's own directories.
  3. Make the launch sequence wait until the deletion has finished, and check its exit status. If it fails, log the failure and do not start the client as if the cache had been cleared; a failed deletion usually means a permissions or storage problem that the next launch would hit anyway.
  4. Launch the client and let it fetch and rebuild its packages before you judge startup performance.

The cost of doing this on every boot is one slower first launch each time, because the client rebuilds or re-fetches package content before later launches can reuse it. On a device that runs the client locally against a gateway on the same machine, the package source is local, so the rebuild cost is disk and decompression work rather than a network download.

Is there a better fix than deleting the cache each boot? #

Yes, two of them, and both move the writes off the persistent card instead of cleaning up after them. An overlay filesystem that writes to RAM puts a disposable writable layer over a read-only base system, so an interrupted write never reaches the card and the cache is rebuilt into RAM on each boot; this is the Linux equivalent of a Windows write filter, and the implementation differs by distribution, so it belongs in your OS design rather than in a client setting. The alternative is snapshotting the system with a known-good cache already in place and restoring that snapshot, which keeps the first launch fast but couples your recovery procedure to the snapshot tool.

If the client or Designer keeps failing after a clean cache, the storage or the package path is at fault and the PC itself may be due for replacement; the fallback is a fanless industrial mini PC with a solid-state boot device, chosen when the repair is not worth it. Read the launch log for the specific package or access failure before changing the cache policy again.

How do I verify the fix is working? #

Four checks after the first boot with cleanup enabled:

  1. The cleanup step completed, with a success exit status, before the client started.
  2. The client opened to its normal operating screen without the EOFException.
  3. Cache files are present again under the launching account's ~/.ignition/cache; their return is the point, not a problem, because the objective is a usable cache, not an empty one.
  4. The second launch after that boot is noticeably faster than the first; a slow first load followed by normal loads is consistent with a rebuild, while repeated failures mean the storage or the package source needs attention, not more deletion.

An IOException during the cleanup itself, rather than a launch-time EOFException, points at a locked file or a filesystem that refused the delete; the file cache deletion error walkthrough covers that variant. Repeated corruption across reboots on the same card also justifies checking the flash storage itself, since the same interrupted-write mechanism that damages the cache damages everything else on the card.

Questions asked

Why does the client fail with EOFException after a power cut?

An EOFException means a reader hit the end of a data stream before it expected to. A forced power loss can interrupt a write into the cached package, so the next launch reads a truncated JAR and stops. The message alone does not prove the cache is at fault; confirm it by clearing the cache and seeing the client load.

Can I point the cache at a RAM disk instead of deleting it?

Only indirectly: the cache lives in the launching account's home directory, so mounting that path or an overlay layer in RAM achieves it at the filesystem level, not through an Ignition setting. The write exposure disappears with the power cut, and the first launch after every boot pays the rebuild cost.

Does clearing the cache on every boot lose anything besides launch time?

No project data or configuration is lost; the cache holds package content the client rebuilds or fetches again. The cost is a longer first launch on each boot, and a dependency on the package source being reachable at that moment, which on a local Edge device is the gateway on the same machine.

What if the client still fails after the cache is cleared?

Stop deleting and start measuring: confirm the storage is mounted and writable by the client account, confirm the package source is reachable, and read the launch log for the specific package or access failure. Repeated deletion will not fix a failing Compact Flash card or a broken network path.

Keep reading

  • Troubleshooting

    Ignition Edge Designer fails to launch from a Raspberry Pi gateway

    The Designer is a workstation application: launch it from your Windows desktop against the gateway on the Pi, and leave system Java alone, because the Ignition 8.x launcher manages its own runtime. If a remote launch still fails after an in-place upgrade, capture the launcher and gateway logs, then rebuild one test Pi with a clean operating system and a clean Ignition Edge install before touching the rest of the fleet.

    Edge computing and IIoT

  • Troubleshooting

    Why an edge PC freezes when telemetry stops but CPU is low

    When telemetry stops while CPU stays low and the local console is frozen, the edge PC is running out of memory, not losing its network: in the reported installation a remote-access agent (TeamViewer) grew resident memory until the system locked. Stop and disable that service with systemctl, confirm the htop trend stays flat, then fix the two ports that share one subnet and one gateway.

    Edge computing and IIoT

  • Troubleshooting

    Fix npm E502 when installing Node-RED nodes behind a proxy

    npm error code E502 on a palette install means an answering hop could not resolve or connect onward to the registry host, even when a generic HTTP check passes. Work the failure upstream from the proxy: confirm the proxy process, match the device's proxy address and mode, check the firewall rule, then verify outbound TCP 443 to registry.npmjs.org. Treat an App Unavailable editor as a missing localhost exception, a separate fault.

    Edge computing and IIoT

Why Ignition Edge historian data fills the disk before pruning