IMD SolutionComputing LibraryShop main store

Troubleshooting

InfluxDB invalid configuration of app data on ctrlX CORE

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

Short answer

Invalid configuration of app data means the InfluxDB app's stored data area fails startup validation, so unmounting and remounting the micro SD card cannot clear it — the same content is read again. Export the measurements you need and copy the configuration file, then uninstall the InfluxDB app, delete its App Data, reinstall it, and re-apply a configuration whose storage path matches the mounted card.

On this page
  1. What app data is and why the app rejects it
  2. Why remounting the SD card cannot clear it
  3. Three checks before you delete anything
  4. Record versions and export your data
  5. The reset: uninstall, delete App Data, reinstall
  6. Verify the fix held
  7. The decision for each case
  8. Questions asked

On a ctrlX CORE, Invalid configuration of app data means the InfluxDB app read its own persistent data area at startup and rejected it. Unmounting and remounting the micro SD card cannot clear the error, because the remount makes the device read the same content again. The fix is an order of operations, and the order matters: export the measurements you need and copy the app's configuration file, uninstall the InfluxDB app, delete its App Data, reinstall it, and re-apply a configuration whose storage path matches the mounted card. Deleting App Data also removes every stored measurement, so export first. The checks below tell you whether the card, the configuration or the stored app data is at fault; the reset at the end clears the last of those.

What app data is and why the app rejects it #

App data is the persistent storage area a ctrlX OS app owns: its configuration file, its database files and the metadata that binds them. It survives an app stop, a device restart and a plain uninstall, and it is removed only as its own explicit step. Installing the InfluxDB app creates a config.yaml file in this area. At startup the app reads the area and validates what it finds. If the area holds a configuration the running app cannot accept — a storage path that does not exist, a layout left by a different app version — the app aborts with the app-data error instead of starting.

Why remounting the SD card cannot clear it #

On ctrlX OS the app's database storage is meant to live on external storage rather than on the device's internal media, which is why the card sits in the middle of this fault; why InfluxDB on ctrlX OS only offers external storage explains that design. Putting the data location on the card creates three ways to reach the invalid state:

  • the configuration was generated while the card was unmounted, so it names a path that did not exist at that moment;
  • the card disappeared while the app was writing, leaving partially written files behind;
  • data left on the card or in the app data area by an earlier install no longer matches the current configuration schema.

A remount rereads the same bytes, so it reproduces the same failure. That is why a remount attempt changes nothing here: the stale content is the fault, not the mount event.

Three checks before you delete anything #

Run these in order. Each one either fixes the fault directly or proves that the stored app data is what has to go.

  1. Card health. In the ctrlX OS storage view, confirm the external SD card is listed, mounted and writable. If it is missing, read-only or flapping between mounted and unmounted, reseat or replace the card first: nothing the app writes during that state is reliable, and a reset performed on dying storage wastes your export.
  2. The exact error text. Open the InfluxDB app's status page and the diagnostic logs, and record the full message with its timestamp. If it is the app-data validation error, the stored app data is the suspect. A storage-not-found or permission message points at the card or the path instead — fix that first and retest before touching App Data.
  3. The configuration against the mounted path. Open config.yaml in the app's data area and check two things: the file is syntactically valid, and every storage path in it resolves to a location that exists on the mounted card. As a worked example: if the file names a database folder under the card's storage location, open that location in the storage view and confirm the folder, or its parent, actually exists there. Read the paths from your own device, never from another system. If a path is wrong or the syntax is broken, correct it and restart the app — a configuration change takes effect only after a restart, and a broken file can stop the app outright. If the paths and syntax are correct and the error persists, the stored app data is stale, and the reset below is the fix.

Record versions and export your data #

Before anything destructive, record the installed InfluxDB app version, the ctrlX OS version and a system report from the device's diagnostics. If the app was updated to a different version after the data was written, a schema mismatch is the likely cause, and that is worth knowing before you delete anything. Then export what you must keep: use the app's own export or backup tooling, and copy the contents of config.yaml to a location outside the device, because the reset removes the file along with the rest of the app data. If the app cannot start well enough to export, note that in your record; the measurement files remain on the card for as long as the card itself stays healthy. If the stored time series are disposable — a commissioning rig, a test line — skip this and go straight to the reset.

The reset: uninstall, delete App Data, reinstall #

The order below matters. Uninstalling alone leaves the invalid app data in place, so the error returns on the next start; the App Data deletion is the step that clears it.

  1. Stop the InfluxDB app and confirm the card shows mounted in the storage view.
  2. Uninstall the InfluxDB app from the Apps page under Settings in the ctrlX OS web interface.
  3. Delete the app's App Data: open the App data window, open Manage app data, and use the Reset button on the InfluxDB entry's Active data. This removes the invalid configuration and every stored measurement the app owns — your export is the only copy.
  4. Reinstall the InfluxDB app.
  5. Re-apply the configuration: paste the saved config.yaml contents back and set the storage path on the external card as in Store InfluxDB data on an SD card in ctrlX CORE. Use the file you saved, not one generated while the card was unmounted.
  6. Start the app.

Verify the fix held #

  • App state: the app shows running, and the diagnostic log holds no app-data error entry after the new start timestamp.
  • Storage binding: the app's data location on the card gains new files and grows once data arrives.
  • Cold start: stop and start the app once. It must come back running with no error, which shows the configuration validates on a restart, not only on first install.
  • Remount test: stop the app, unmount and remount the card, then start the app. It must start normally. Never unmount while the app runs — a card that disappears mid-write is one of the causes of this fault.
  • Downstream: if Grafana reads this database, run its data source connection test and open a panel with freshly written points. If the app runs but its web page answers a 404 after the reinstall, that is a separate post-install symptom, covered in ctrlX CORE InfluxDB web UI 404 after app install.

The decision for each case #

What you find Decision
Card missing, read-only or flapping Storage fault: reseat or replace the card, remount it, retest. Run the reset only once storage is healthy.
A storage-not-found or permission error Fix the path or the card, correct config.yaml, restart the app, retest. No reset needed.
Wrong path or broken syntax in config.yaml Correct the file, restart the app, retest. No reset needed.
Correct file, correct paths, healthy card, app-data error Stale app data: export, uninstall, delete App Data, reinstall, re-apply, verify. A remount will not help.

Questions asked

Does uninstalling the InfluxDB app on ctrlX CORE delete its stored measurements?

No. Uninstalling removes the app program but leaves App Data untouched, and App Data is a separate item you delete explicitly. That separation is why a plain reinstall does not clear the error and why the reset sequence has the deletion as its own step. The deletion is also what removes every stored measurement, so the export has to happen before it, not after.

Can remounting the micro SD card clear Invalid configuration of app data?

No. Validation runs on the stored content, and a remount reads that same content again, so the same message follows. A remount is a test to run after the fix, never the fix itself, and then only with the app stopped: a card that vanishes while the app is writing is one of the ways this state is created in the first place.

Can I keep my InfluxDB configuration when I delete the App Data?

Yes, if you copy it out first. The configuration lives inside the app data area, so the reset deletes it with everything else. Save the contents of the YAML file to a location outside the device before resetting, paste them back after the reinstall, and confirm every storage path resolves on the mounted card before starting the app.

Which login does the database use after the reset?

The InfluxDB app's user authentication is separate from the ctrlX user management, so your device login does not sign you in to the database. Re-apply the database credentials from the saved configuration, then update anything that connects, for example a Grafana data source, before you run the downstream connection test.

The error came back after a clean reinstall. What now?

Then what the app reads at startup is wrong again, not the app data you reset. Confirm the card is mounted and writable, check the configuration so every path exists on the mounted card, and restart the app, since configuration changes take effect only after a restart. If it still fails, take the app version, the ctrlX OS version, the full error text with its timestamp and a system report to support.

Keep reading

  • How-to

    Store InfluxDB data on an SD card in ctrlX CORE

    The InfluxDB App on a ctrlX CORE writes wherever its active configuration points its data storage location, not where Node-RED sends records. Format the SD card as EXT4 in the Storage window, mount it, repoint the persistent data path in config.yaml, upload and activate the configuration, reboot, and confirm with a known tag that writes land on the card and survive a restart.

    Edge computing and IIoT

  • Troubleshooting

    ctrlX CORE InfluxDB web UI 404 after app install

    A 404 at the /influxdb path means the controller answered but the InfluxDB app route is missing, not that writes fail. Record versions and licenses, back up configuration and data separately, update the core system app to 1.20, reinstall the InfluxDB app, then bring Node-RED or Telegraf ingestion back one client at a time until a known Data Layer value reaches a query.

    Edge computing and IIoT

  • How-to

    Export InfluxDB CSV from ctrlX CORE Device Bridge data

    Post a bounded Flux query to the /api/v2/query endpoint with Accept: application/csv and a read token, or run an InfluxDB in node into csv and file nodes in Node-RED. Keep each request's row count small: rows equal series count times window length divided by sample interval.

    Edge computing and IIoT

Ignition history providers split retention and data pruning