IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an Edge app does not autostart on a Unified Comfort Panel

HMI and touchscreens Published 6 min read

Short answer

An Industrial Edge app on a Unified Comfort Panel starts on its own only if its containers carry a restart policy such as unless-stopped. Installation alone does not set one, and an HMI Runtime button can open an app's interface or send it a command, but it cannot start a stopped container.

On this page
  1. First, identify which condition you are seeing
  2. What the restart policy controls
  3. Worked example: a two-container app that must survive a nightly panel restart
  4. Setting the policy in the deployment path
  5. What an HMI Runtime button can do instead
  6. Acceptance check before you call it done
  7. Questions asked

An installed Industrial Edge app on a Unified Comfort Panel does not start on its own after a panel reboot unless its containers carry a restart policy, set in the app's deployment configuration. Siemens documents the restart policy as part of an app's own configuration, so installing the app is not the same as telling it to run. An HMI Runtime button cannot fill that gap: it opens an app's interface or sends the app a command, but it does not start a stopped container. Here is how to tell which of the four failure shapes you have, how to set the policy, and what each policy actually does.

First, identify which condition you are seeing #

Operators call all of these "the app will not start", but they have different causes and different fixes. Work down this list before touching configuration:

  • Installed but stopped after a panel restart — no restart policy is in effect. This is the autostart case; fix it with the deployment configuration, below.
  • Container starts, then exits repeatedly — the policy is working but the process fails. Read the container logs and exit code; restarting is not the repair.
  • Container runs but the interface is unavailable — readiness, not lifecycle. The app is initializing or its interface address is not what the screen expects.
  • The button does nothing — an intent mismatch. The button is set to navigate or command, but the container behind it is stopped, which a Runtime button cannot change.

Note which event precedes the symptom: a panel restart, a process exit, or a deliberate stop by maintenance. A restart policy treats those three events differently, and that difference is the whole decision.

What the restart policy controls #

A restart policy is a container-engine setting that decides whether the engine starts a container again after a lifecycle event. Docker documents the two policies that matter here:

  • always — restart the container whether it stopped cleanly or failed, including when the engine restarts. A deliberate stop is honored only until the engine itself restarts.
  • unless-stopped — like always, except that a container stopped manually, or by any means other than the engine, stays stopped even after an engine or panel restart.
  • on-failure — restart only when the container exits with a failure, and not when the engine itself restarts.

The distinction between a process exit and an engine restart is what surprises most people: an app set to on-failure that happens to exit cleanly stays down across a panel reboot, because the engine coming back up is not a failure event.

If your app is multi-container, set the policy for each service the app needs; one policy on one service does not drag its companions up with it.

Also note what a policy does not do: automatic restart is not recovery. A container can relaunch cleanly and still fail because a configuration file, credential, network service or storage resource it needs is not ready. Commissioning should test the full startup sequence, not just the relaunch. The related article on Docker image CPU architecture for Unified Comfort Panels covers the container side of these apps in more depth; for the install side, see why an Edge app fails to install on a Unified Comfort Panel when memory is the limiter.

Worked example: a two-container app that must survive a nightly panel restart #

Inputs. A SendMail-type Edge app packaged with two containers: the mail service and a small helper service. The panel is power-cycled every night by the shift schedule. Maintenance stops the app once a week for housekeeping and expects it to stay down until they start it again. The restart policy today is unset, which is the state an app ships in.

Rule in words. Pick the policy whose documented behavior matches all three events: engine restart (the nightly power cycle), process exit, and deliberate stop.

Reasoning through the events.

  • With no policy: after the nightly reboot, both containers stay down. 1 of 3 events behaves as required (the deliberate stop), 2 of 3 fail.
  • With on-failure: the nightly reboot brings the engine back up, which is not a failure exit, so both containers stay down. Still only 1 of 3 events correct.
  • With always: the nightly reboot restarts both containers, and a failure exit restarts them — 3 of 3 — but the weekly deliberate stop comes back the next time the engine restarts, so maintenance's stop does not hold.
  • With unless-stopped: the nightly reboot restarts both containers, a failure exit restarts them, and the deliberate stop survives the next engine restart. 3 of 3.

Result. Set restart: unless-stopped on both services in the app's deployment configuration:

services:
  sendmail:
    restart: unless-stopped
  helper:
    restart: unless-stopped

Decision. For any Edge app that should run continuously and still respect a maintenance stop, use unless-stopped. Use always only when a deliberate stop must be undone by the next engine restart, and avoid on-failure as an autostart policy on a panel, because an engine restart is not a failure event.

Setting the policy in the deployment path #

The Industrial Edge documentation treats the restart policy as part of the app's configuration, so change it in the supported deployment or app-configuration workflow, not by editing a live container.

  1. Record the baseline: installed app version, current container states, existing restart settings and recent logs.
  2. Locate the app's deployment configuration and list every container the app needs to function.
  3. Set the policy per service. If the app arrives as a managed package, check whether the setting is editable or needs an updated package from the supplier.
  4. Apply the update through the environment's documented procedure, then verify the effective setting on the running containers. A change to a configuration file does not retroactively change an existing container; redeploy or recreate so the policy takes effect.
  5. Power-cycle the panel on the bench and confirm both containers come back, then stop one deliberately and confirm it stays down across another restart. That pair of tests proves the policy is live.

What an HMI Runtime button can do instead #

A Runtime button needs a defined action and destination. Sort the operator's request into one of three intents:

  • Open the app's interface: get the app's documented interface address and use the navigation method the panel runtime supports. This works whether or not the container was started by a policy — if the app is down, the navigation fails visibly, which is acceptable feedback.
  • Send the app a command: use the app's documented communication interface. Commanding a running app is within a button's reach; commanding it to start its own container is not.
  • Start a stopped container: this is a management action on the Edge device, done through the Edge management interface by a role with the authorization for it. Do not build this into operator screens; configure autostart with the policy so operators never need it.

When the requirement is continuous availability, the right design is automatic startup via the policy plus a readiness indication on the screen — not an operator responsible for launching containers.

Acceptance check before you call it done #

Run the full sequence once on the bench with verified screens and tags: reboot the panel, confirm every container restarts, confirm the interface opens from the Runtime screen, stop the app deliberately, reboot again, and confirm it stays down. A passing check means the app is available after every routine restart, a failure exit recovers, and a maintenance stop holds — the three events the policy exists to sort.

Questions asked

Which restart policy should an Edge app use on a panel?

Use unless-stopped when the app should always be running except when maintenance deliberately stops it, because it survives a panel reboot but honors an intentional stop. Use on-failure only when the app should stay down after a clean exit and come back after a crash, remembering that on-failure does not restart containers when the container engine itself restarts.

Can an HMI Runtime button start a stopped Edge app?

No. A Runtime button opens a screen, navigates to an app interface or sends the app a command over its documented interface. Configure autostart with the restart policy instead of building a button for it.

Does a restart policy fix an app that starts and then keeps crashing?

No. A policy only re-launches the container after an exit. If the app exits repeatedly, the policy produces a restart loop while the real fault stays: missing configuration, an unreachable network service, a missing credential or exhausted memory. Read the container logs and exit code, fix the cause, and let the policy cover genuine one-off interruptions.

The app is installed and its container is running, so why is the interface unavailable?

A running process and a ready application are different states. The container may still be initializing, waiting on a dependent service or publishing its interface on a different address than the button or web client expects. Check the app's documented interface address and its startup sequence before blaming the restart policy.

Keep reading

  • Troubleshooting

    Why Comfort Panel simulation fails with the pdata.fwc error

    When Start Simulation on a Comfort Panel ends with the pdata.fwc configuration file could not be loaded and HmiRTm.exe stops, a TIA Portal V17 installed beside an older version has broken the shared simulation component: repair V17 from its DVD or ISO without uninstalling first, then apply all pending V17 updates. If only one project fails, delete the Diagnostic Viewer control from the screens and rebuild all software; as a last resort, recreate the HMI device.

    HMI and touchscreens

  • How-to

    Printing images and PDFs from a Unified Comfort Panel

    A Unified Comfort Panel has no built-in function that prints the runtime screen or a document to a printer. Print through the panel's LibreOffice install: open the PDF directly, or wrap a JPG in a one-line HTML file, then submit with -p or --pt and automate via runLibreoffice.sh. Use the CUPS lp command only after the printer queue prints a known-good file on the panel.

    HMI and touchscreens

  • Troubleshooting

    Why a Unified Comfort Panel web client shows scrollbars

    On V17 Update 7 the panel-integrated web client has no fit-to-window setting, so a screen configured for the panel's native resolution overflows any smaller browser viewport. From V18 Update 1 you set size-fit on the Main screen window. Staying on V17, run the browser fullscreen or fit the layout from a UI.GetClientInfo script.

    HMI and touchscreens

Why a Comfort Panel touch calibration is not saving