Scan fails at the end: Sqlite error @ /build/src/database/database.c:240 : (1) no such table: parse_job
Device Information (please complete the following information):
- OS:
TrueNAS (Linux truenas 6.6.44-production+truenas #1 SMP PREEMPT_DYNAMIC Fri Nov 8 18:37:36 UTC 2024 x86_64 GNU/Linux) - Deployment:
Docker - SIST2 Version:
v3.4.2
Command with arguments
Not interacting with command line. Using sist2-admin
Describe the bug sist2 crashes at the end of a scan.
Steps To Reproduce Initiate a scan on a large filesystem.
Expected behavior The scan should complete and sent to ES.
Actual Behavior The scan crashes with the following errors
2025-03-15 03:24:59 [FATAL database.c] Sqlite error @ /build/src/database/database.c:240 : (1) no such table: parse_job
2025-03-15 03:24:59 [FATAL tpool.c] Child process crashed (User defined signal 1).
The process was working on /host/Public/ChunkBackup/data_disk.tar.xz
Please consider creating a bug report at https://github.com/simon987/sist2/issues !
sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.
Note: /host/Public/ChunkBackup/data_disk.tar.xz is a 1.18TB archive. However I feel like that's not what caused the problem.
Screenshots
Additional context Here's all log entries with level FATAL.
{"thread": "T0", "datetime": "2025-03-14 21:34:48", "level": "FATAL", "filepath": "tpool.c", "message": "Child process crashed (Segmentation fault).\n The process was working on /host/Public/REDACTED.rar\n Please consider creating a bug report at https://github.com/simon987/sist2/issues !\n sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.\n"}
{"thread": "T0", "datetime": "2025-03-15 00:05:25", "level": "FATAL", "filepath": "tpool.c", "message": "Child process crashed (Segmentation fault).\n The process was working on /host/Public/REDACTED.zip\n Please consider creating a bug report at https://github.com/simon987/sist2/issues !\n sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.\n"}
{"thread": "T0", "datetime": "2025-03-15 02:03:26", "level": "FATAL", "filepath": "tpool.c", "message": "Child process crashed (Segmentation fault).\n The process was working on /host/Public/ChunkBackup/system.tar.xz\n Please consider creating a bug report at https://github.com/simon987/sist2/issues !\n sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.\n"}
{"thread": "T0", "datetime": "2025-03-15 03:24:59", "level": "FATAL", "filepath": "tpool.c", "message": "Child process crashed (Segmentation fault).\n The process was working on /host/Public/ChunkBackup/data_disk.tar.xz\n Please consider creating a bug report at https://github.com/simon987/sist2/issues !\n sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.\n"}
{"thread": "T1", "datetime": "2025-03-15 03:24:59", "level": "FATAL", "filepath": "database.c", "message": "Sqlite error @ /build/src/database/database.c:240 : (1) no such table: parse_job"}
{"thread": "T0", "datetime": "2025-03-15 03:24:59", "level": "FATAL", "filepath": "tpool.c", "message": "Child process crashed (User defined signal 1).\n The process was working on /host/Public/ChunkBackup/data_disk.tar.xz\n Please consider creating a bug report at https://github.com/simon987/sist2/issues !\n sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.\n"}
There were no OOM errors in dmesg log.
Thanks for the report, it looks like if the last worker thread crashes, the thread pool will be destroyed as the child process is being re-created
Coming back from the latest version, we still have this error
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x55cec8d32e28)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x55cec8d31ef8)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0x55cec8d166b8)
2025-11-16 01:49:31 [INFO tpool.c] Worker threads finished
2025-11-16 01:49:31 [INFO tpool.c] Destroying thread pool
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x55cec8d14de8)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x55cec8d32918)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0x7f8ce8002e98)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x7f8ce8033978)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0x55cec8d15138)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x55cec8d1c3a8)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0x7f8ce40029c8)
2025-11-16 01:49:31 [DEBUG database.c] Opening database /dev/shm/sist2-ipc-17.sqlite (1)
2025-11-16 01:49:31 [DEBUG database.c] Closing database /dev/shm/sist2-ipc-17.sqlite (0x7f8ce40334d8)
2025-11-16 01:49:31 [DEBUG database.c] Opening database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0)
2025-11-16 01:49:31 [FATAL database.c] Sqlite error @ /build/src/database/database.c:240 : (1) no such table: parse_job
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [FATAL tpool.c] Child process crashed (User defined signal 1).
The process was working on /host/Public/ChunkBackup/system.tar.xz#/<REDACTED>/miniconda3/pkgs/pillow-9.2.0-py39ha53f419_0/info/test/tests/images/hopper_unknown_pixel_mode.tif
Please consider creating a bug report at https://github.com/simon987/sist2/issues !
sist2 is an open source project and relies on the collaboration of its users to diagnose and fix bugs.
2025-11-16 01:49:31 [DEBUG database.c] Opening database /sist2-admin/scan-Public-2025-11-15 20:05:44.059601.sist2 (0)
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
2025-11-16 01:49:31 [DEBUG tpool.c] Child process terminated with status code 0
If it helps, I found out that switching "archive mode" from recourse/shallow to either list/skip avoids this issue in my case.
Fixed in v4.0.x.