Skip to content

[BUG] Memory leak in 0.30 (with Pangolin) - RAM usage continuously growing over time #2344

@nkkfs

Description

@nkkfs

Describe the Bug

I've been experiencing a memory leak issue with Karakeep container for the past few weeks. The RAM usage continuously grows over time until it becomes problematic.

My Environment

  • Deployment: Docker container
  • Platform: Unraid server (i5-9600, 32GB RAM)

Current Behavior

  • Memory usage steadily increases over time
  • The issue persists across multiple weeks of operation
  • Container restart temporarily resolves the issue, but the problem reoccurs
  • After restart, memory usage starts growing again
  • Logs show repeated 500 errors on bookmarks.searchBookmarks endpoint

Logs:

Recent logs show repeated 500 error when searching bookmarks:

2026-01-04T10:09:16.083Z info: --> GET /api/trpc/bookmarks.searchBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22text%22%3A%22url%3Ahttps%3A%2F%2Fclaude.ai%2Fchat%2Fd5x156e-ea93-xe7d-bxc5-dxxx8cee74d9%22%7D%7D%7D 500 4ms

2026-01-04T10:09:37.707Z info: --> GET /api/trpc/bookmarks.searchBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22text%22%3A%22url%3Ahttps%3A%2F%2Fclaude.ai%2Fchat%2Fd5x156e-ea93-xe7d-bxc5-dxxx8cee74d9%22%7D%7D%7D 500 3ms

2026-01-04T10:09:54.052Z info: --> GET /api/trpc/bookmarks.searchBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22text%22%3A%22url%3Ahttps%3A%2F%2Fclaude.ai%2Fchat%2Fd5x156e-ea93-xe7d-bxc5-dxx8cee74d9%22%7D%7D%7D 500 2ms

Health checks return 200 OK, but bookmark search operations consistently fail with 500 error.

Steps to Reproduce

  1. Start Karakeep container
  2. Monitor RAM usage over several days/weeks
  3. Observe continuous memory growth

Expected Behaviour

Memory usage should remain stable over time without requiring periodic restarts.

Screenshots or Additional Context

Image

Device Details

No response

Exact Karakeep Version

v0.30.0

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpri/highHigh priority issuestatus/approvedThis issue is ready to be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions