I have an auto-scan set to run at 1800 every day. Yesterday I noticed that the scan hadn't taken place for about a week. I stopped and restarted the server. I uninstalled and reinstalled 6.16. I uninstalled and installed 6.15. I rebooted Windows. No matter what I have tried the scan does not complete. It halts somewhere between 125 and 160 files.
The only thing I see in the About Subsonic Log is this:
- Code: Select all
[2/20/20 3:09:31 PM GMT-05:00] INFO MediaScannerService Starting to scan media library.
[2/20/20 3:09:46 PM GMT-05:00] ERROR MediaScannerService Failed to scan media library.
[2/20/20 3:09:46 PM GMT-05:00] INFO PlaylistService Starting playlist import.
Digging a little deeper, the more detailed log shows this, which is way over my head in terms of trying to figure out the issue:
- Code: Select all
[2020-02-20 15:09:31,442] INFO MediaScannerService - Starting to scan media library.
[2020-02-20 15:09:46,707] ERROR MediaScannerService - Failed to scan media library.
org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback; SQL [select id, path, name, artist, song_count, duration_seconds, cover_art_path, year, genre, play_count, last_played, comment, created, last_scanned, present, folder_id from album where name=?]; S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, name, artist, song_count, duration_seconds, cover_art_path, year, genre, play_count, last_played, comment, created, last_scanned, present, folder_id from album where name=?]; nested exception is java.sql.SQLException: S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, name, artist, song_count, duration_seconds, cover_art_path, year, genre, play_count, last_played, comment, created, last_scanned, present, folder_id from album where name=?]
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:106)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:607)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:641)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:670)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:678)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:710)
at net.sourceforge.subsonic.dao.AbstractDao.query(AbstractDao.java:84)
at net.sourceforge.subsonic.dao.AlbumDao.getAlbumForFile(AlbumDao.java:52)
at net.sourceforge.subsonic.service.MediaScannerService.updateAlbum(MediaScannerService.java:264)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:227)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:220)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:223)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:223)
at net.sourceforge.subsonic.service.MediaScannerService.doScanLibrary(MediaScannerService.java:161)
at net.sourceforge.subsonic.service.MediaScannerService.access$000(MediaScannerService.java:31)
at net.sourceforge.subsonic.service.MediaScannerService$2.run(MediaScannerService.java:130)
Caused by: java.sql.SQLException: S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, name, artist, song_count, duration_seconds, cover_art_path, year, genre, play_count, last_played, comment, created, last_scanned, present, folder_id from album where name=?]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.executeQuery(Unknown Source)
at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:591)
... 14 more
Thanks to anyone who can offer some insight as to what's going on. And for suggestions for fixing the issue.
