You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TuanDang1996 (via GitHub)" <gi...@apache.org> on 2026/08/05 10:00:12 UTC

[I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

TuanDang1996 opened a new issue, #11662:
URL: https://github.com/apache/seatunnel/issues/11662

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   When SeaTunnel Zeta runs on Kubernetes and the Web UI / REST API is exposed through Ingress (or any reverse proxy) with a public domain, the job log links in the UI / `/logs` response are built with each Hazelcast member's **pod IP**, which is not reachable from the browser.
   
   Example (from Web UI / `/logs`):
   
   ```text
   http://10.0.1.167:8080/logs/job-1137316576459685899.log
   ```
   
   Expected (reachable via Ingress):
   
   ```text
   https://domain.com/logs/job-1137316576459685899.log
   ```
   
   **Root cause** (2.3.13 and current `dev`): `LogService` builds absolute URLs from the cluster member address / system monitoring `host` field, e.g.:
   
   ```java
   String host = member.getAddress().getHost(); // or systemMonitoring "host"
   String url = "http://" + host + ":" + nodeHttpPort + contextPath;
   // ...
   url + REST_URL_LOGS + "/" + fileName
   ```
   
   There is **no** `seatunnel.engine.http` option to set a public / advertise host or base URL. Available HTTP options today are only things like `enable-http`, `port`, `context-path`, auth, and HTTPS keystore settings.
   
   **Notes:**
   - Serving the same file via relative path on the ingress host works, e.g. `https://<ingress-host>/logs/job-<id>.log`
   - `/log` (current-node) already uses relative links (`log/<file>`), which work behind Ingress
   - `/logs` (all-node / UI job log list) uses absolute member-IP links, which break behind Ingress
   
   **Suggested fix direction:**
   1. Add a config such as `seatunnel.engine.http.public-url` / `public-host` (and optionally scheme) used when generating `logLink` values, **or**
   2. Prefer relative log links in the Web UI / `/logs` HTML (same style as `/log`), so the browser stays on the Ingress host
   
   
   ### SeaTunnel Version
   
   2.3.13
   
   ### SeaTunnel Config
   
   ```conf
   conf
   seatunnel:
     engine:
       history-job-expire-minutes: 1440
       backup-count: 1
       http:
         enable-http: true
         port: 8080
         enable-dynamic-port: false
         enable-basic-auth: true
         # no public-host / public-url option exists today
       telemetry:
         metric:
           enabled: true
   ```
   
   ### Running Command
   
   ```shell
   shell
   # Separated cluster mode
   ./bin/seatunnel-cluster.sh -r master
   ./bin/seatunnel-cluster.sh -r worker
   
   # Open Web UI via Ingress, click a finished job's log link
   # or:
   curl -u 'user:pass' 'https://<ingress-host>/logs'
   ```
   
   ### Error Exception
   
   ```log
   log
   No server-side exception. Browser cannot open the log link because it points at the pod ClusterIP, e.g.:
   
   http://10.0.1.167:8080/logs/job-1137316576459685899.log
   
   Connection fails from outside the cluster. Opening the same path on the Ingress host succeeds:
   
   https://<ingress-host>/logs/job-1137316576459685899.log
   ```
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   N/A — log list returns absolute URLs with member pod IPs (same pattern as #9287).
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #11662:
URL: https://github.com/apache/seatunnel/issues/11662#issuecomment-5223751266

   Thanks for linking PR #11669. I checked the proposed direction and the new  config is aligned with the narrow, backward-compatible fix discussed above for ingress / reverse-proxy deployments.\n\nThe next step is to continue review on that PR so the config contract and  behavior are validated in one place. Keeping the issue focused on the problem statement and the PR focused on the implementation will make this much easier to close cleanly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #11662:
URL: https://github.com/apache/seatunnel/issues/11662#issuecomment-5215602751

   Confirmed against dev: LogService builds log URLs from member.getAddress().getHost() (or the systemMonitoring 'host' field) plus the node HTTP port, with no config to override the advertised host. This breaks any deployment where the browser cannot reach member IPs directly (Ingress, NAT, reverse proxy).
   
   Of the two proposed fixes, adding a `seatunnel.engine.http.public-url` (or `public-host`/`public-scheme`) option seems necessary for the multi-node case, since /logs aggregates files from different members and a purely relative link would only resolve against the node serving the request. Relative links alone would only be correct in single-node or shared-storage setups.
   
   Would you be willing to submit a PR? A reasonable approach: use the configured public URL when set, otherwise fall back to the current member-address behavior, keeping backward compatibility. Please also cover the HTML output of /logs and the Web UI job log list in tests.
   
   <!-- streview-comment:68 -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #11662:
URL: https://github.com/apache/seatunnel/issues/11662#issuecomment-5191585862

   Thanks for the detailed reproduction.
   
   I checked the current `dev` branch and the report matches the server path today: the log service still builds per-node log URLs from the member host/port and returns those absolute links to the UI, so in an ingress or Kubernetes deployment those links can point to an internal pod/member address instead of the externally reachable host. That makes this a valid bug.
   
   The safest first fix is to keep the scope narrow: make the `/logs` and job-log links ingress-safe without changing unrelated monitoring URLs in the same PR, and add a regression test around the externally exposed log-link behavior. If you would like to take it, a focused PR on that boundary would be a good next step.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #11662:
URL: https://github.com/apache/seatunnel/issues/11662#issuecomment-5203023317

   Thanks for the detailed report and root cause analysis in LogService. Confirmed: /logs builds absolute URLs from member.getAddress().getHost(), which breaks behind Ingress, while /log already uses relative links. This is a valid bug/limitation affecting Kubernetes deployments.
   
   Of the two suggested fixes, relative links (option 2) only work when the proxy routes all members under one host, which isn't true for multi-node clusters where /logs aggregates links to different members. A configurable public URL/host per node (option 1, e.g. seatunnel.engine.http.public-url) is likely needed; possibly both together. Would you be willing to submit a PR?
   
   As a workaround until this is fixed, you can fetch logs via the current-node /log endpoint (relative links) on each member, or rewrite the member-IP URLs at the ingress/proxy layer if your topology allows it.
   
   <!-- streview-comment:55 -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Zeta][WebUI] Job log links use unreachable member IP instead of configurable public host [seatunnel]

Posted by "TuanDang1996 (via GitHub)" <gi...@apache.org>.
TuanDang1996 commented on issue #11662:
URL: https://github.com/apache/seatunnel/issues/11662#issuecomment-5215638352

   Hi, seems like @waterWang already opened PR to implement that one: https://github.com/apache/seatunnel/pull/11669, please help to check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org