Skip to content

Key-value database became readonly after backup restore. #3770

Open
@LeeShan87

Description

@LeeShan87

I'm upgrading a very old (1.1.1) eKuiper to the newest (v2.2.0). In our test environment I've noticed a weird bug when the backup system restored the backups. The sqliteKV.db became readonly and the eKuiper service doesn't try to reconnect when this happens.

This produce more bugs. But I need time to collect them.

I've attached an http file which can help you reproduce the issue. (just remove the md suffix)
requests.http.md

An example request:

###
DELETE {{api}}/streams/{{streamId}} HTTP/1.1

# Response
# HTTP/1.1 400 Bad Request
# Content-Type: text/plain; charset=utf-8
# X-Content-Type-Options: nosniff
# Date: Wed, 09 Jul 2025 12:16:11 GMT
# Content-Length: 92
# Connection: close

# {
#   "error": 3000,
#   "message": "delete stream error: attempt to write a readonly database (1032)"
# }

Environment:

  • eKuiper version (e.g. 1.3.0): v2.2.0

What happened and what you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions