Crashed today

Need help? Post your questions here.

Moderator: moderators

Crashed today

Postby juansantoshaggett » Fri Dec 10, 2021 8:27 pm

Hi

Tried to get in and all I found was this. Help please
Error

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception org.springframework.dao.TransientDataAccessResourceException
Message PreparedStatementCallback; SQL [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]; S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]; nested exception is java.sql.SQLException: S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]
Java version Oracle Corporation 1.8.0_152
Operating system Windows 10 10.0
Server jetty-6.1.x
Memory Used 70 of 145 MB
Stack trace org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback; SQL [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]; S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]; nested exception is java.sql.SQLException: S1000 General error java.lang.NegativeArraySizeException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where path=?]
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.AbstractDao.queryOne(AbstractDao.java:150)
at net.sourceforge.subsonic.dao.MediaFileDao.getMediaFile(MediaFileDao.java:48)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:87)
at net.sourceforge.subsonic.service.MusicIndexService.createSortableArtists(MusicIndexService.java:157)
at net.sourceforge.subsonic.service.MusicIndexService.getIndexedArtists(MusicIndexService.java:42)
at net.sourceforge.subsonic.service.MusicIndexService.getMusicFolderContent(MusicIndexService.java:52)
at net.sourceforge.subsonic.controller.ArtistsController.handleRequestInternal(ArtistsController.java:112)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
juansantoshaggett
 
Posts: 1
Joined: Fri Dec 10, 2021 8:21 pm

Re: Crashed today

Postby SHANE523 » Tue Dec 21, 2021 3:03 pm

I am getting the exact same error.

Windows Server 2016
Java version 1.8.0_152
SHANE523
 
Posts: 6
Joined: Thu May 16, 2013 7:52 pm

Re: Crashed today

Postby J_T_W » Tue Dec 21, 2021 6:40 pm

Subsonic is basically abandonware; it isn't open-source and there is no development or active support by the owner.

DB corruption for Subsonic is not uncommon. If you have a backup(s) of your database, you might try restoring older versions to see if you have a version that is not corrupt. Otherwise, you many need to start from scratch.

You might also consider moving off to a newer implementation. Both below suggestions run on multiple platforms, I'm a Windows guy so some of my supplemental info isn't as useful to non-Windows users.

If you're looking for a very lateral move, consider Airsonic Advanced https://github.com/airsonic-advanced/airsonic-advanced - It is in active development with frequent snapshot updates https://github.com/airsonic-advanced/airsonic-advanced/releases . Same feature set as Subsonic (API, Sonos, etc.) with updated code. As it is open source, you also get all the features Subsonic Premium gives you, but for free. You do, however, need to come up with your own DDNS solution for external access. Minimal effort for installation (latest Java installed, then a command line shortcut to the war file - upgrades even easier with just a fast war file change).

If you're really more API focused, and looking just for a music streaming service, you might consider moving off the Subsonic family of servers altogether. Check out Navidrome https://www.navidrome.org/ . That product is primarily to supply the API with a completely new back-end, and refocuses to just support for audio (no video, podcast, internet radio, etc.). There is not yet built in support for Sonos, but you can find easy linking with something like Bonob https://github.com/simojenki/bonob. As with Airsonic Advanced, no subscription or fee to access the API. Navidrome does have a simplified web UI if desired.

Both products support running as a service with something like NSSM https://nssm.cc/ and IIS works great as a reverse proxy if you wish to run them as SSL.
J_T_W
 
Posts: 93
Joined: Fri May 03, 2013 2:13 pm

Re: Crashed today

Postby SHANE523 » Wed Dec 22, 2021 2:58 pm

Thank you.
I have Airsonic Advanced installed and it runs. The issue I am having is getting it to work as a service, I followed the instructions to the letter but for some reason it keeps getting paused.

I am looking on Reddit and will post something there but if you happen to check this and have a solution, that would be awesome!
SHANE523
 
Posts: 6
Joined: Thu May 16, 2013 7:52 pm

Re: Crashed today

Postby J_T_W » Wed Dec 22, 2021 3:46 pm

Are you running this on a Windows platform?

EDIT: I did comment on reddit: https://www.reddit.com/r/airsonic/comme ... ws_server/
J_T_W
 
Posts: 93
Joined: Fri May 03, 2013 2:13 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests