Skip to content

memos-local-plugin daemon log grows unbounded (no rotation); most of its volume is unretried http.exception errors #2379

Description

@chiefmojo

Version: @memtensor/memos-local-plugin 2.0.16, installed via install.sh (Hermes Agent integration)

install.sh launches the bridge daemon with a plain redirect and no rotation:

# install.sh:1055-1063
local daemon_log="${prefix}/logs/daemon-start.log"
...
nohup "${node_bin}" "${bridge_entry}" --agent=hermes --daemon >"${daemon_log}" 2>&1 &

No size cap, no logrotate hookup, no truncation on restart. Measured across three long-running installs: 59.3 MB / 287,895 lines on the oldest, 10.8 MB and 9.1 MB on two others — still growing, actively written.

The volume itself points at a second bug. In the most recent 5,000 lines of the 59 MB log: 2,150 are WARN/ERROR (~43%), 644 are http.exception, 274 are fetch failed. All 644 http.exception entries carry transient=falsenone are retried. A rotation policy alone would hide this; the firehose is the daemon treating what looks like a retryable condition (fetch failed) as terminal on every occurrence.

Separately, historical crash churn (ERR_MODULE_NOT_FOUND for a missing tsx, 186 stack frames) accounts for part of the file's total size but doesn't reproduce in the last 5,000 lines — that part is fixed/settled, not a current concern.

Ask:

  1. Rotate/cap daemon-start.log in install.sh (or move to a proper logger with rotation).
  2. Look at why http.exception is uniformly transient=false and never retried — fetch failed in particular looks like it should be retryable.

Happy to share the full recent-lines sample if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:pluginOpenClaw & Hermesstatus:needs-triageNeeds initial triage | 需要初步判断 & 问题复现

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions