Cakephp: Error: SQLSTATE[HY000]: General error: 5 database is locked

Created on 7 Oct 2015  路  4Comments  路  Source: cakephp/cakephp

I'm having this error sometimes with no aparent reason.

I think is related to debugkit because is the only part using sqlite to data storage in my project and all the info I've found on internet about this error is related to sqlite.

I don't know what steps are needed to reproduce this error because it happends random times when I make a reload of site.

PHP version 5.5.12
Cakephp version 3.0.13
Debugkit version 3.1.10

Most helpful comment

This is related to debug kit, and can happen if your debugkit database gets too big. Simplest solution is to delete the tmp/debug_kit.sqlite file.

All 4 comments

This is related to debug kit, and can happen if your debugkit database gets too big. Simplest solution is to delete the tmp/debug_kit.sqlite file.

Yes, you're right, indeed the database increased it's size to 1.9G. But anyway, why debugkit needs to store so huge amount of information and why It don't handle some data cleaning to avoid this issue?
I'm developing a small app with only 4 pages, so I can figure this could happen more frequently in a big project.

The latest master branch now only keeps the last 20 requests (rather than the last 2 weeks worth of requests as currently).

nice this sounds much better. Thank you for the reply :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cleptric picture cleptric  路  3Comments

GBeushausen picture GBeushausen  路  3Comments

caBBAlainB picture caBBAlainB  路  4Comments

berarma picture berarma  路  3Comments

nrother picture nrother  路  3Comments