[0.10.125/Linux] Wiki tab is empty: GET /library/wiki-index returns 500 local_graph_read_budget_exceeded once community_limit >= 18
Describe the bug
The Wiki tab in the desktop app shows no topics, although the graph has data: 3,740 memories, 16,656 entities, 50 communities, 43 crystals.
The server answers the wiki index request with HTTP 500. This is GET /library/wiki-index with no parameters, on 0.10.125:
{"error_code":"local_graph_read_budget_exceeded","detail":"The local graph read exceeded its resource limit.","retryable":false,"request_id":"01a21d54-929c-73bb-af7f-fd26fe4c5a49"}
We first saw this on 0.10.124. Upgrading to 0.10.125 did not change any of the results below.
Failures from the remote client on 0.10.124, logged before we started investigating:
| Time (UTC) | Request | request_id |
|---|---|---|
| 2026-11-27 09:18:13 | GET /remote-api/library/wiki-index -> 500 |
01a21c4c-527b-75f0-9ef0-bbe36d5b2c67 |
| 2026-11-27 09:18:18 | GET /remote-api/library/wiki-index -> 500 |
01a21c4c-6509-79da-a6c0-65ae16ca8961 |
| 2026-11-27 09:18:20 | GET /remote-api/library/wiki-index -> 500 |
01a21c4c-6f86-7c93-8a7a-60930f6254a0 |
| 2026-11-27 12:17:07 | GET /remote-api/library/wiki-index -> 500 |
01a21cf0-1dd8-7320-a2ba-88ace752dfc9 |
| 2026-11-27 12:17:11 | GET /remote-api/library/wiki-index -> 500 |
01a21cf0-2bd5-7cf3-9516-6b6737b1cd3f |
The server log does not include query strings, so we cannot see which parameters the client sent. The endpoint's default parameters reproduce the same error.
To Reproduce
On the server, over loopback, on 0.10.125 at 14:06 UTC:
| Request | Status | Time |
|---|---|---|
GET /library/wiki-index (no parameters) |
500 local_graph_read_budget_exceeded |
0.56 s |
GET /library/wiki-index?community_limit=17 |
200, 17 topics | 0.55 s |
GET /library/wiki-index?community_limit=18 |
500 local_graph_read_budget_exceeded |
0.56 s |
GET /library/wiki-index?community_limit=20 |
500 local_graph_read_budget_exceeded |
0.54 s |
GET /library/wiki-index?community_limit=20&top_per_community=1 |
500 local_graph_read_budget_exceeded |
0.60 s |
GET /library/wiki-index?community_limit=20&include_top_memories=0 |
200, 20 topics | 0.43 s |
GET /library/wiki-index?community_limit=50 |
500 local_graph_read_budget_exceeded |
0.75 s |
On 0.10.124 the same requests gave the same status codes on every run, at 12:20 UTC and at 13:43 UTC. Also on 0.10.124:
| Request | Status | Time |
|---|---|---|
GET /library/wiki-page/topic/{id} for the topics ranked 17 to 22 |
200 each | |
GET /library/wiki-export |
200, 8.15 MB ZIP | 7.9 s |
The CLI shows the same threshold: nmem wiki topics -n 17 works, -n 18 and above fail with the same error code.
Observations:
- The error comes back in about 0.5 s, so this is not a timeout.
- The limit is on the whole request, not on one bad community: each topic page loads on its own, and asking for one top memory per community (
top_per_community=1) does not help. - Leaving out the top memories (
include_top_memories=0) makes the request succeed with all 20 topics. So the top-memories read is what goes over the limit. - Communities sorted by
member_count(top 20): 746, 588, 576, 488, 396, 384, 323, 319, 308, 305, 268, 234, 208, 192, 180, 178, 169, 168, 159, 158. All 50 communities have 8,186 members in total. - Cumulative members of the first N communities: 5,693 (N=16), 5,862 (N=17), 6,030 (N=18), 6,347 (N=20).
- Hypothesis, from this one data point only: the index reads every member of each listed community to rank its top memories, and the limit is around 6,000 rows.
Expected behavior
- The wiki index degrades instead of failing as a whole. For example: bound the top-memories read per community, return the topics without top memories plus a warning, or page the topics.
- The Wiki tab shows the error, rather than an empty page that looks like there is no wiki.
- If the read limit is meant to be tunable, the setting is documented. We found no setting or environment variable for it.
Additional context
- Server now:
nmem 0.10.125,nmem-server 0.10.125 (6ce0732663b8),hawdb-storage 0.40.0. We upgraded fromnmem-server 0.10.124 (b46efe2bdcad)with apt at 13:55 UTC on 2026-11-27. The graph is the same before and after the upgrade: 50 communities, 8,186 members, all withupdated_at2026-11-27 09:10 UTC. - Host: Ubuntu 26.04.1 LTS, x86_64, 16 cores, about 60 GB RAM.
- Setup: self-hosted (
nmem serveunder systemd). The desktop and CLI clients connect over the LAN in remote mode. - The same error code also appears on a different endpoint:
GET /remote-api/threads/{thread_id}returned 500local_graph_read_budget_exceededon 2026-11-26 at 09:32 UTC (request_id01a21732-ca50-7203-9840-48c708640007,operation="thread_detail"). The server process that answered had started on 2026-11-24, before the 0.10.124 binary was installed. It was probably 0.10.123, but we have not confirmed this. So the limit is not specific to the wiki and is probably not new in 0.10.124. - We do not know since when the index fails. All 50 communities have
updated_at2026-11-27 09:10 UTC (a community refresh ran then), 8 minutes before the first logged failure. The server logs only non-2xx responses, so we cannot tell whether the index worked before the refresh. - Workarounds in use:
nmem wiki topics -n 17,nmem wiki page topic|entity|crystal <id>, andGET /library/wiki-export.
Thanks for the report, we've received it. We'll look into fixing this as soon as we can and will update this issue once a release with the fix is out.
Same error here, and it hits much earlier than in the original report: nmem wiki topics fails with local_graph_read_budget_exceeded (retryable=false) when 3 topics are requested; 2 topics succeed. Reproduced 3 times, same result. It returns in 0.2–0.5s, so it isn't a timeout, and it isn't affected by server CPU load.
Our three largest communities have 3014 / 2407 / 2295 members. The first two (5421 total) pass; adding the third (7716) fails. This fits the ~6000-row read limit guessed above, though we haven't confirmed it.
include_top_memories=0 doesn't help in our case.
The same query worked a week earlier, before the desktop app updated to 0.10.125. We haven't confirmed that the update is the cause. nmem --json communities still works as a fallback.