openclaw - 💡(How to fix) Fix [Bug]: memory-lancedb config validation fails even when plugin is disabled (v2026.4.8) [1 comments, 2 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#63250Fetched 2026-04-09 07:56:18
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
1
Author
Participants
Timeline (top)
commented ×1labeled ×1referenced ×1

After updating to 2026.4.8, the gateway fails to start with a config validation error for memory-lancedb — even when the plugin is explicitly disabled or not present in the user's config at all.

Error Message

After updating to 2026.4.8, the gateway fails to start with a config validation error for memory-lancedb — even when the plugin is explicitly disabled or not present in the user's config at all.

Error Output

Any user upgrading to 2026.4.8 who does not have a fully configured memory-lancedb block (including users who have never used it) will hit this error and be unable to start their gateway.

Root Cause

Gateway fails to start because memory-lancedb plugin config is validated even when the plugin is explicitly disabled in the user config.

Fix Action

Workaround

Patch the config directly via Node.js (bypasses Notepad paste issues on Windows):

node -e "const fs=require('fs');const f='C:\\\\Users\\\\YOUR_USERNAME\\\\.openclaw\\\\openclaw.json';const c=JSON.parse(fs.readFileSync(f));c.meta.lastTouchedVersion='2026.4.8';c.meta.lastTouchedAt='2026-04-08T00:00:00.000Z';c.plugins.entries['memory-lancedb']={enabled:false,config:{embedding:{apiKey:'dummy'}}};fs.writeFileSync(f,JSON.stringify(c,null,2));console.log('Done!');"

Key findings:

  • The embedding block must contain only apiKey — no type or model fields allowed
  • A dummy apiKey value satisfies the schema validator even when the plugin is disabled
  • meta.lastTouchedVersion must match the current version or config edits are silently overwritten

Code Example

Invalid config at C:\Users\elite\.openclaw\openclaw.json:
- plugins.entries.memory-lancedb.config.embedding: invalid config: must have required property 'embedding'

---

node -e "const fs=require('fs');const f='C:\\\\Users\\\\YOUR_USERNAME\\\\.openclaw\\\\openclaw.json';const c=JSON.parse(fs.readFileSync(f));c.meta.lastTouchedVersion='2026.4.8';c.meta.lastTouchedAt='2026-04-08T00:00:00.000Z';c.plugins.entries['memory-lancedb']={enabled:false,config:{embedding:{apiKey:'dummy'}}};fs.writeFileSync(f,JSON.stringify(c,null,2));console.log('Done!');"

---
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Gateway fails to start because memory-lancedb plugin config is validated even when the plugin is explicitly disabled in the user config.

Steps to reproduce

Bug: memory-lancedb config validation fails even when plugin is disabled (v2026.4.8)

Summary

After updating to 2026.4.8, the gateway fails to start with a config validation error for memory-lancedb — even when the plugin is explicitly disabled or not present in the user's config at all.

Environment

  • OpenClaw version: 2026.4.8 (9ece252)
  • OS: Windows 11
  • Install method: npm (npm install -g openclaw)
  • Node version: (npm managed)
  • Setup: Local-only, Ollama + qwen2.5:3b, loopback gateway

Steps to Reproduce

  1. Install or update to OpenClaw 2026.4.8
  2. Have a config with no memory-lancedb entry, or with "memory-lancedb": { "enabled": false }
  3. Run openclaw gateway status

Error Output

Invalid config at C:\Users\elite\.openclaw\openclaw.json:
- plugins.entries.memory-lancedb.config.embedding: invalid config: must have required property 'embedding'

Root Cause (observed)

OpenClaw 2026.4.8 appears to inject memory-lancedb as a built-in default plugin and validates its full config schema even when "enabled": false. Users with no memory-lancedb entry, or a minimal disabled entry, hit this validation wall with no clear path to fix it.

Additionally, meta.lastTouchedVersion being set to an older version causes OpenClaw to silently overwrite user config edits with its own defaults on every run — making manual fixes extremely difficult to apply and persist.

What Did NOT Work

  • Removing the memory-lancedb block entirely — OpenClaw re-injects it from defaults
  • Adding { "enabled": false } only — schema validation still fails
  • Adding type and model fields to embedding — rejected with must NOT have additional properties
  • openclaw config fix — no effect
  • npm update -g openclaw — stayed on same version 2026.4.8 (9ece252)

Workaround

Patch the config directly via Node.js (bypasses Notepad paste issues on Windows):

node -e "const fs=require('fs');const f='C:\\\\Users\\\\YOUR_USERNAME\\\\.openclaw\\\\openclaw.json';const c=JSON.parse(fs.readFileSync(f));c.meta.lastTouchedVersion='2026.4.8';c.meta.lastTouchedAt='2026-04-08T00:00:00.000Z';c.plugins.entries['memory-lancedb']={enabled:false,config:{embedding:{apiKey:'dummy'}}};fs.writeFileSync(f,JSON.stringify(c,null,2));console.log('Done!');"

Key findings:

  • The embedding block must contain only apiKey — no type or model fields allowed
  • A dummy apiKey value satisfies the schema validator even when the plugin is disabled
  • meta.lastTouchedVersion must match the current version or config edits are silently overwritten

Suggested Fixes

  1. Skip schema validation for plugins where "enabled": false — this is the core issue
  2. Support ollama as a valid embedding type for memory-lancedb (currently rejected with must NOT have additional properties)
  3. openclaw config fix should auto-patch known schema errors introduced by version upgrades
  4. Document the lastTouchedVersion behavior — silent config overwrites are very confusing to debug and make manual fixes nearly impossible to apply

Impact

Any user upgrading to 2026.4.8 who does not have a fully configured memory-lancedb block (including users who have never used it) will hit this error and be unable to start their gateway.

Expected behavior

In v2026.4.5 (last known-good version), gateway started successfully with "memory-lancedb": { "enabled": false } and no config.embedding block required.

Actual behavior

Gateway fails with Invalid config: plugins.entries.memory-lancedb.config.embedding: must have required property 'embedding' even when memory-lancedb is set to "enabled": false or absent from user config entirely.

OpenClaw version

2026.4.8 (9ece252)

Operating system

Windows 11

Install method

npm global

Model

ollama

Provider / routing chain

Local-only, Ollama + qwen2.5:3b, loopback gateway

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

To fix the gateway startup issue, patch the config directly by setting meta.lastTouchedVersion to the current version and adding a dummy apiKey to the memory-lancedb embedding block.

Guidance

  • The issue arises from OpenClaw validating the memory-lancedb plugin config even when it's disabled, so the config needs to be patched to include required fields.
  • To verify the fix, run openclaw gateway status after applying the patch and check if the gateway starts successfully.
  • The embedding block must contain only apiKey, and a dummy value satisfies the schema validator even when the plugin is disabled.
  • Ensure meta.lastTouchedVersion matches the current version to prevent silent config overwrites.

Example

The provided Node.js patch code can be used as a workaround:

node -e "const fs=require('fs');const f='C:\\\\Users\\\\YOUR_USERNAME\\\\.openclaw\\\\openclaw.json';const c=JSON.parse(fs.readFileSync(f));c.meta.lastTouchedVersion='2026.4.8';c.meta.lastTouchedAt='2026-04-08T00:00:00.000Z';c.plugins.entries['memory-lancedb']={enabled:false,config:{embedding:{apiKey:'dummy'}}};fs.writeFileSync(f,JSON.stringify(c,null,2));console.log('Done!');"

Notes

This fix assumes the issue is specific to OpenClaw version 2026.4.8 and may not apply to other versions. Additionally, the workaround may need to be reapplied if the config is overwritten or changed.

Recommendation

Apply the workaround by patching the config directly, as this is the most straightforward solution to resolve the gateway startup issue. This approach allows users to start their gateway while waiting for a potential fix in a future OpenClaw 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…

FAQ

Expected behavior

In v2026.4.5 (last known-good version), gateway started successfully with "memory-lancedb": { "enabled": false } and no config.embedding block required.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING