IMD SolutionComputing LibraryShop main store

Troubleshooting

Why an AVEVA Edge Docker HMI page fails to load

Edge computing and IIoT Published 8 min read

Short answer

Trace the failed Mobile Access request in order: browser to Apache's access and error logs, CGI mode in Mobile Access Settings, then the Apache account's traversal rights on the CGI path and every parent directory. The working setups are self-built, an Ubuntu-like container with Apache and the documented CGI add-on rather than an official image, so each layer is yours to verify.

On this page
  1. What a working setup actually is
  2. Does the request reach Apache?
  3. Is CGI mode enabled in Mobile Access Settings?
  4. Do Apache's filesystem rights block the CGI path?
  5. Working the reported fix: mode 2750 on the /root/ tree
  6. Does the rendered page prove the data path?
  7. The decision for each observation
  8. Questions asked

When an AVEVA Edge HMI page served through Mobile Access will not load from a Docker container, stop changing settings and trace the request in one fixed order: from the browser to Apache's access and error logs, then to CGI mode in Mobile Access Settings, then to the Apache account's traversal rights on the CGI path and on every parent directory above it. The setups reported working are self-built, an Ubuntu-like container running Apache with the documented CGI add-on rather than an official image, so every layer between the browser and the runtime server is one you built and can inspect. Work the layers in that order and each observation below tells you which layer failed and what to do next.

What a working setup actually is #

The Mobile Access CGI add-on is the documented bridge between the two halves: it connects the project runtime server to any web server that supports the Common Gateway Interface. Nothing in that is container-specific; the container only supplies the Linux, the web server and the file layout the add-on expects, which is why the failures you will chase are ordinary web-server and filesystem failures.

The container engineers report working is built by hand: an Ubuntu-like base, Apache 2 installed into it, then the product Help's Mobile Access and CGI instructions followed inside, with CGI mode enabled from Mobile Access Settings. Treat that as a recipe, not a support statement. Whether an official image exists for the runtime is answered by the vendor's documentation and support channel, not by a container that happens to run.

Before debugging HTTP at all, confirm that the product and release installed in the container match the Help you are following. The Mobile Access CGI instructions cover the AVEVA Edge runtime server; if the container runs a differently named product or another release, resolve that mismatch first, because every setting and path below assumes the documented product.

Does the request reach Apache? #

From a client, load the configured Mobile Access address and record exactly what the browser shows: an error page, a blank page or a timeout. Then, inside the container, read Apache's access log and error log for that same request. You get one of three results:

  • An access-log entry for the request. It reached Apache; move on to CGI mode.
  • No entry in either log. The request died before Apache: wrong address or port, a listener bound to another interface, or a Docker port mapping that is missing or broken. Fix reachability first, because no Edge setting can matter while the packets never arrive. A mapping that worked at first can also break after a restart, the failure traced in why Docker published ports fail after an edge PC reboot.
  • An error-log entry. Classify it before editing anything. A missing-file or handler-failure message points at the web-server path or the CGI setup; a permission-denied message points at filesystem rights, and the two sections below cover it.

Is CGI mode enabled in Mobile Access Settings? #

A reachable Apache proves only that a web server runs. CGI mode is the switch that lets the runtime answer application requests through that server; with it off, static content can serve while every request that needs the project behind it fails.

  1. Open Mobile Access Settings for the deployed project.
  2. Enable CGI mode and apply the setting, following the Help for your release for the exact procedure.
  3. Restart or reload only what that Help tells you to restart or reload.
  4. Repeat the same browser request and read both logs again.

If the page starts answering, confirm it with a known-good displayed value, as described below. If it still fails, go back to the Apache error log and follow the message it actually gives rather than changing tags or paths speculatively.

Do Apache's filesystem rights block the CGI path? #

When the error log says permission denied, the kernel is refusing the Apache account and the web configuration is beside the point. Two checks, in order:

  • Identify the account. Find the user and group the Apache worker processes run as inside the container; on the reported setup the group is www-data.
  • Walk the path. The CGI file needs read and execute for that account. Every directory above it needs execute, the traversal bit, because the kernel checks it on each parent in turn and one closed directory fails the whole request. The error usually names the first refusal, not the deepest.

The fix passed around for this container changes the group of the whole /root/ tree to www-data and then applies one mode to all of it recursively; the target tells you the web content was placed under the root account's home, where the Apache account cannot enter by default. It works, and it is broader than the fault. The worked example below decodes it command by command and marks where to stop.

Working the reported fix: mode 2750 on the /root/ tree #

The inputs #

  • The reported fix, two commands run inside the container: chgrp -R www-data /root/, then chmod -R 2750 /root/, from the working setup described for this deployment.
  • The Apache account's group on that container: www-data, taken from the group the first command hands the tree to.
  • The mode 2750, four octal digits from the second command.
  • The POSIX permission weights, the rule the digits are read with: read = 4, write = 2, execute = 1, and 2 in the leading digit is set-group-ID.

The rule, in words #

An octal mode is read as up to four digits. The last three give the owner, the group and everyone else their rights as a sum of read 4, write 2 and execute 1. A leading digit sets the special bits, and 2 there is set-group-ID: files created below the directory inherit its group. On a directory, execute means traversal, the right to pass through on the way to something inside, while read only lists names.

The arithmetic #

Breaking the mode into its four digits:

  • Leading digit 2: set-group-ID on.
  • Owner digit: 7 = 4 + 2 + 1, so read + write + execute.
  • Group digit: 5 = 4 + 1, so read + execute for the Apache group, with execute being the traversal bit.
  • Others digit: 0, no rights at all.

The least the Apache account needs on any parent directory is execute alone, digit 1. The fix grants 5, which is 4 more than that minimum, the extra being listing, and the recursive switch applies it to /root/ and every directory below it. On the CGI file itself the same group digit happens to be right: the server must read and execute it, and 5 is exactly read plus execute.

The result #

After both commands, any process in that group can enter and list the whole tree under /root/, and files created below it inherit the group. Apache's permission-denied error disappears because traversal now succeeds along the entire path, along with everything else the tree contains.

The decision #

Open the path to the CGI file and nothing beyond it. Grant the execute bit to the Apache group on exactly the directories the error log names, from the first named directory down to the CGI file, and read plus execute on the file itself. Keep the reported recursive form only for a disposable container whose /root/ holds nothing but the web tier; the moment that tree also holds project files, credentials or mounted host data, the recursive change belongs in your next security review as a finding, not a fix. The cleanest boundary: install the runtime and web content under a service path of their own outside /root/, and the error this fix answers never appears.

Does the rendered page prove the data path? #

Once the page renders, the HTTP and CGI layers are proven for that request; the data behind it is not. Verify one known-good tag: read the value on screen, change it at the controller, confirm the display follows. A page that loads with a static or wrong value sends you to the tag's binding and the controller connection, not back to Apache.

If the page renders for the first browser and later browsers are refused, the web tier is done and the question moves to thin client licensing — see why a 16K AVEVA Edge runtime license does not set Thin Client count.

The decision for each observation #

Observation Layer that failed Decision
No Apache access-log entry Browser to container Fix address, port mapping and listener before touching Edge or Apache configuration.
Access entry, error log names a missing file or handler Web-server path or CGI setup Correct the path or handler, then repeat the same request.
Error log says permission denied Filesystem rights Grant traverse on the named directories only, read plus execute on the CGI file.
Page loads, value static or wrong Tag binding or controller path Test a known-good tag against a controller change; leave the web tier alone.
Page loads, later browsers refused Thin client licensing Leave the web tier alone; the count is a licensing question, not an Apache one.

The order is the whole method: logs before settings, settings before permissions, and permissions scoped to the path the log names. Run it top to bottom once with the same request and the failing layer identifies itself; skip a layer and you will fix the wrong one twice.

Questions asked

Can Mobile Access CGI run behind a web server other than Apache?

In principle, yes. The add-on targets the Common Gateway Interface, not one server product, so any CGI-capable server can front the runtime. The only setup reported working uses Apache 2 on an Ubuntu-like base, so reproduce that first and treat a different server as your own integration, with its own CGI module to configure and test.

Does the vendor publish an official Docker image for the Edge runtime?

The product documentation that describes Docker installs covers Edge Data Store and its adapters, such as the MQTT, OPC UA and Modbus TCP adapters. The working Edge runtime container reported by engineers is built by hand. Treat supported container status for the runtime as a question to put through the vendor's support channel before you standardize on it, because a container that runs is not the same as a container that is supported.

Why not grant every account full rights on the CGI directory to rule permissions out?

Because it removes the symptom and creates a bigger one. A directory that any account can write to lets anything running in the container decide what the web server executes next. Grant the Apache account read and execute on the CGI file and traverse on its parent directories, and keep write rights with the account that deploys the project.

The page loads for one browser but refuses the others. Is the CGI path at fault?

No. A rendered page proves the browser-to-CGI path end to end. When later browsers are refused while the first keeps working, the web tier is no longer the suspect: the size of the runtime license does not determine how many thin clients may connect, so take the refusal to whoever administers the licenses, not to the container.

Keep reading

  • Troubleshooting

    Why Docker published ports fail after an edge PC reboot

    A container that reports running after a reboot has proved nothing about its published port. Treat unreachable ports as a boot-sequencing fault: probe each port from a client, follow the packets with iptables counters, then start the stack in dependency order instead of tuning the applications. Wait delays are installation-specific; readiness is proven per port.

    Edge computing and IIoT

  • Troubleshooting

    Docker iptables raw table does not exist on an edge gateway

    A raw table does not exist error during docker compose up is kernel-side: the gateway's kernel provides no legacy iptable_raw module, so the daemon cannot program its direct-access filtering DROP rule. Probe the raw table and the module directly, keep one default route on the internet-facing port, and fix it by installing a newer vendor software image — 1V8.2 to 1V8.3.1 cleared it in the reported case. The iptables false and host-network workarounds both break port mapping.

    Edge computing and IIoT

  • Troubleshooting

    Fixing a Docker shared library error on an edge PC

    A container on an edge PC that exits with an error while loading shared libraries was built for a different controller firmware generation than the one installed. Pull the image revision rebuilt for your firmware, recreate the container, and verify with ldd, the linker cache and a restart-count check. Never symlink across major library versions: on a machine driving physical outputs, a mismatched library produces wrong I/O data instead of a clean error.

    Edge computing and IIoT

Why an Ignition historian import does not display data