You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "ccoffline (via GitHub)" <gi...@apache.org> on 2026/02/24 07:19:53 UTC

[I] [Bug] Log file path is empty [seatunnel]

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

   ### 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
   
   I submit job and cannot find job log. Web UI shows fine in tags `Overview`, `Exception`, `Configuration` and nothing in `Log`.
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   seatunnel:
     engine:
       classloader-cache-mode: true
       history-job-expire-minutes: 1440
       backup-count: 1
       queue-type: blockingqueue
       print-execution-info-interval: 60
       print-job-metrics-info-interval: 60
       slot-service:
         dynamic-slot: true
       checkpoint:
         interval: 10000
         timeout: 60000
         storage:
           type: hdfs
           max-retained: 3
           plugin-config:
             storage.type: s3
       telemetry:
         metric:
           enabled: false
         logs:
           scheduled-deletion-enable: true
       http:
         enable-http: true
         port: 5800
         enable-dynamic-port: false
         # Uncomment the following lines to enable basic authentication for web UI
         # enable-basic-auth: true
         # basic-auth-username: admin
         # basic-auth-password: admin
   ```
   
   ### Running Command
   
   ```shell
   services:
     seatunnel:
       image: apache/seatunnel:2.3.12
       container_name: seatunnel
       restart: always
       user: root
       network_mode: host
       environment:
         TZ: Asia/Shanghai
         ST_DOCKER_MEMBER_LIST: ***:5801
       volumes:
         - ./config:/opt/seatunnel/config
         - ./logs:/opt/seatunnel/logs
         - ./jobs:/opt/seatunnel/jobs
       command: /opt/seatunnel/bin/seatunnel-cluster.sh
   ```
   
   ### Error Exception
   
   ```log
   {"status":"fail","message":"Log file path is empty, get logRef : "}
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   <img width="2244" height="330" alt="Image" src="https://github.com/user-attachments/assets/6e313649-6334-40e4-8173-07dd7e95045a" />
   
   ### Are you willing to submit PR?
   
   - [x] 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] Log file path is empty [seatunnel]

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

   <!-- code-pr-reviewer -->
   Thanks for reporting this. I can confirm the bug exists in the official Docker image.
   
   **Root cause:** The Dockerfile at `seatunnel-dist/src/main/docker/Dockerfile` (lines 10–12) intentionally disables file logging by commenting out `rootLogger.appenderRef.file.ref` to redirect logs to console (for container log collection). However, `LogUtil.getLogPath()` in `seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/utils/LogUtil.java` expects either `routingAppender` or `fileAppender` references to be enabled, causing the REST API to fail with "Log file path is empty".
   
   **Workaround:** Mount a custom `log4j2.properties` that restores file logging:
   ```yaml
   volumes:
     - ./config/log4j2.properties:/opt/seatunnel/config/log4j2.properties
   ```
   Ensure your custom config contains: `rootLogger.appenderRef.file.ref = fileAppender`
   
   If you'd like to submit a PR to fix this, consider adding an environment variable to control whether file logging is enabled in Docker, or update the Web UI to fall back to console logs when file appenders are disabled.


-- 
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