First, a thanks to Mark. I've been using sonospy happily for about 8 years.
However, I've just noticed that 6 months ago(!!), my daily update scans started failing, with no changes made to the .db files.
From the log file:
Database: /home/pi/LucyStorage/chickadee/sspy/sonospy/Classical2.db
Scanning: /home/pi/LucyStorage/clmusic
Scannumber: 2161
** EXITING on unhandled exception - See errors/ErrorDump-20231010-113731.txt
python ./gettags.py -d Classical2.db -v /home/pi/LucyStorage/clmusic
From said ErrorDump (edited):
<class 'sqlite3.OperationalError'>
Traceback (most recent call last):
File "./gettags.py", line 2939, in <module>
status = main()
File "./gettags.py", line 2934, in main
process_dir(path.decode(enc), options, database)
File "./gettags.py", line 509, in process_dir
db.commit()
OperationalError: database is locked
This is from today's attempt at a rescan after a clean reboot of my Pi, but it turns out its happening daily since this past February on both of my databases. /home/pi/Lucystorage/chickadee points to a directory mounted from my NAS, but the access permissions are correct, and sonospy is able to write its log files, so I doubt it's a simple permissions issue.
pycpoint operates normally using the (stale, unupdated) database. I no longer recall what if anything I may have been tinkering with elsewhere in my system.
Any idea where to start looking? I've added the verbose flag above to try and trace better, but it seems to choke before it does anything meaningful so the verbose log says nothing useful.
Thanks, Martin