Skip to content
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

[Bug]: prezet:index throws error for SQLSTATE 11 database disk image #78

Closed
skino2019 opened this issue Sep 27, 2024 · 2 comments · Fixed by #79
Closed

[Bug]: prezet:index throws error for SQLSTATE 11 database disk image #78

skino2019 opened this issue Sep 27, 2024 · 2 comments · Fixed by #79
Labels
bug Something isn't working

Comments

@skino2019
Copy link

What happened?

I cannot load the site now as im getting an SQLSTATE error:

SQLSTATE[HY000]: General error: 11 database disk image is malformed (Connection: prezet, SQL: select name from sqlite_master where type = 'table' and name not like 'sqlite_%' order by name)

How to reproduce the bug

Unfortunately i have no idea how to reproduce this, i was rebuilding the front end to use a different theme and everything was working. i got to a point where the app was working still and decided to leaver it for the night. this morning i tried again and its now giving me the error message:

SQLSTATE[HY000]: General error: 11 database disk image is malformed (Connection: prezet, SQL: select name from sqlite_master where type = 'table' and name not like 'sqlite_%' order by name)

Package Version

0.14.0

PHP Version

8.2

Laravel Version

11

Which operating systems does with happen with?

No response

Notes

Ive never used SQLite before and always used MySQL and postgres so appologies if this is something obvious.

@skino2019 skino2019 added the bug Something isn't working label Sep 27, 2024
@benbjurstrom
Copy link
Owner

I've been hitting this too lately, not exactly sure why but the fix is simple. Make sure you're on the latest version (0.14.0), delete your prezet.sqlite file, recreate it, and reindex.

rm prezet.sqlite && touch prezet.sqlite && php artisan prezet:index

@benbjurstrom benbjurstrom linked a pull request Sep 27, 2024 that will close this issue
@benbjurstrom
Copy link
Owner

Just pushed v0.15.0 which hopefully prevents it from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants