openclaw - 💡(How to fix) Fix [Bug]: v2026.4.27 regression — channels.discord.accounts.*.token: unresolved SecretRef "env:default:..." during openclaw gateway restart [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#74765Fetched 2026-05-01 05:41:35
View on GitHub
Comments
3
Participants
3
Timeline
5
Reactions
4
Timeline (top)
commented ×3closed ×1cross-referenced ×1

Error Message

🦞 OpenClaw 2026.4.27 (cbc2ba0) …

Restarted systemd service: openclaw-gateway.service [openclaw] Failed to start CLI: Error: channels.discord.accounts.*.token: unresolved SecretRef "env:default:...". Resolve this command against an active gateway runtime snapshot before reading it. at createUnresolvedSecretInputError (...) at resolveSecretInputString (...) at normalizeResolvedSecretInputString (...) at normalizeDiscordToken (...) at resolveDiscordToken (...) at resolveDiscordAccount (...) at Object.resolveAccount (...) at Object.resolveAccountForAccessors [as resolveAccount] (...) at Object.resolveAllowFrom (...) at buildAccountNotes (...) // status.scan.runtime

Fix Action

Fix / Workaround

Steps to Reproduce

  1. Upgrade to v2026.4.27 (commit cbc2ba0).
  2. Run openclaw gateway restart (or trigger a systemd service restart after upgrade).
  3. The CLI fails to start.

Code Example

🦞 OpenClaw 2026.4.27 (cbc2ba0)
Restarted systemd service: openclaw-gateway.service
[openclaw] Failed to start CLI: Error: channels.discord.accounts.*.token: unresolved SecretRef "env:default:...". Resolve this command against an active gateway runtime snapshot before reading it.
    at createUnresolvedSecretInputError (...)
    at resolveSecretInputString (...)
    at normalizeResolvedSecretInputString (...)
    at normalizeDiscordToken (...)
    at resolveDiscordToken (...)
    at resolveDiscordAccount (...)
    at Object.resolveAccount (...)
    at Object.resolveAccountForAccessors [as resolveAccount] (...)
    at Object.resolveAllowFrom (...)
    at buildAccountNotes (...)  // status.scan.runtime
RAW_BUFFERClick to expand / collapse

Title:
[Bug]: v2026.4.27 regression — channels.discord.accounts.*.token: unresolved SecretRef "env:default:..." during openclaw gateway restart

Description:

Steps to Reproduce

  1. Upgrade to v2026.4.27 (commit cbc2ba0).
  2. Run openclaw gateway restart (or trigger a systemd service restart after upgrade).
  3. The CLI fails to start.

Actual Behavior

🦞 OpenClaw 2026.4.27 (cbc2ba0) …

Restarted systemd service: openclaw-gateway.service
[openclaw] Failed to start CLI: Error: channels.discord.accounts.*.token: unresolved SecretRef "env:default:...". Resolve this command against an active gateway runtime snapshot before reading it.
    at createUnresolvedSecretInputError (...)
    at resolveSecretInputString (...)
    at normalizeResolvedSecretInputString (...)
    at normalizeDiscordToken (...)
    at resolveDiscordToken (...)
    at resolveDiscordAccount (...)
    at Object.resolveAccount (...)
    at Object.resolveAccountForAccessors [as resolveAccount] (...)
    at Object.resolveAllowFrom (...)
    at buildAccountNotes (...)  // status.scan.runtime

Expected Behavior

Restart succeeds. The runtime snapshot should supply the resolved token value for any Discord account configured with a SecretRef.

Environment

  • OpenClaw 2026.4.27 (regression from prior release)
  • Discord channel with one or more accounts using an env:default:... SecretRef for the token (standard pattern).
  • The environment variable is correctly available to the gateway service.

Related Issues

  • Umbrella: #53098 (“SecretRef resolution is broken across multiple code paths” — CLI, status, restart, doctor, etc.)
  • Similar: #51263, #50537, #45838, #39415

This appears to be the classic “raw config vs resolved runtime snapshot” mismatch, newly exposed by 4.27’s plugin/manifest or account-scanning changes in buildAccountNotes.

extent analysis

TL;DR

The issue can be resolved by ensuring that the SecretRef is properly resolved against an active gateway runtime snapshot before restarting the OpenClaw gateway service.

Guidance

  • Verify that the environment variable referenced in the SecretRef is correctly set and available to the gateway service.
  • Check the OpenClaw configuration to ensure that the Discord account is properly configured with the SecretRef.
  • Investigate the changes made in version 2026.4.27, specifically the plugin/manifest or account-scanning changes in buildAccountNotes, to understand how they may be affecting SecretRef resolution.
  • Consider reverting to a previous version or applying a workaround until the issue is fully resolved, as suggested in related issues #53098, #51263, #50537, #45838, and #39415.

Example

No code snippet is provided as the issue is related to configuration and version changes.

Notes

The issue appears to be related to a regression introduced in version 2026.4.27, and the exact cause may require further investigation. The provided error message and stack trace suggest a mismatch between the raw configuration and the resolved runtime snapshot.

Recommendation

Apply a workaround, such as reverting to a previous version or manually resolving the SecretRef, until the issue is fully resolved in a future version. This is recommended because the issue is a regression and the exact cause is not fully understood, making it safer to avoid using the affected version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: v2026.4.27 regression — channels.discord.accounts.*.token: unresolved SecretRef "env:default:..." during openclaw gateway restart [3 comments, 3 participants]