This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Description
Describe the bug
Starting thumbnail generation
Unhandled exception: FOREIGN KEY constraint failed (SQLite3::Exception)
from Mango/lib/sqlite3/src/sqlite3/connection.cr:89:11 in 'close'
from Mango/lib/db/src/db/pool.cr:52:21 in 'close'
from Mango/lib/db/src/db.cr:126:7 in '->'
from usr/share/crystal/src/primitives.cr:255:3 in 'start_and_block'
from Mango/src/mango.cr:47:1 in '->'
from usr/share/crystal/src/primitives.cr:255:3 in 'start_parse'
from Mango/src/mango.cr:137:1 in '__crystal_main'
from usr/share/crystal/src/crystal/main.cr:110:5 in 'main'
from src/env/__libc_start_main.c:94:2 in 'libc_start_main_stage2'
To Reproduce
Steps to reproduce the behavior:
- Thumbnail generation, either auto or via admin
Expected behavior
No crash when mango generate thumbnail
Environment :
- OS: Debian via WSL
- Mango Version : 0.24.0
Additional context
The funny thing is that I have three mango running and it seems only this one got that bug on thumbnail generation. Except the manga themselves, the three have pretty much the same setup (just on different port and folders).
Recreating the container didn't change a thing, I'm not sure if the problem is with the database being corrupted (I tried deleting it and recreating the containers and having a new db but the bug still persist) or some images having a problem.