-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't delete database entries anymore #903
Comments
Let's not forget our manners, OK? You -- or the code you are using -- seem to be using the API incorrectly, and are trying to send a SQL command that changes the database to the query endpoint ( |
Of course, I am sorry. I just browsed the documentation again, and it seems like I was sending DELETE queries to db/query which did work. Still, can you please change that misleading error message? readonly makes sense if you know the background, but if you see this error at first, I thought rqlite did not had permissions or I was running out of storage. |
Sending requests that change the database to the query endpoint will break rqlite -- because those changes will not go through Raft consensus (in most cases). It's critical that changes to the database go to the
The 6.0 series uses a read-only connection for the I will also make the docs a bit clearer about all this. |
Error message improved in PR #907. |
What version are you running?
6.6.0
What did you do?
Deleting an existing entry in the database
What did you expect to happen?
That it would actually get deleted
What happened instead?
The database is refusing to delete the entry.
"Error: attempt to write a readonly database"
Which makes no fucking sense on a standalone instance
I tested it with 5.10.1, an older version, works as expected.
The text was updated successfully, but these errors were encountered: