Skip to content

fix(docker): enable docker logs for pd/store/server containers #2979

Description

@bitflicker64

[Improvement] docker logs shows no application output for HugeGraph containers

Environment

  • Server Version: 1.7.0
  • Backend: HStore
  • Deployment: docker-compose

Problem

docker logs hg-pd / hg-store / hg-server only shows a few entrypoint startup lines. All actual JVM logs go silently to files inside the container, so debugging requires manually execing in and tailing log files — not the expected Docker workflow.

Root Cause

Two issues working together:

  1. Startup scripts redirect JVM output to a file via >> ${OUTPUT} 2>&1 before Docker can capture it
  2. The console appender is defined in all dist log4j2.xml configs but never wired to the root logger

Fix

A PR with the fix is being opened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions