Page 1 of 1

Can't connect since 5.1

PostPosted: Thu Feb 26, 2015 10:07 pm
by jonpca
Hi

I can no longer connect to my subsonic server remotely from another pc (inside or outside my LAN) or android advice. I believe this started when I upgraded to 5.1 a few days ago. I noticed the following issues in my log

[2/26/15 9:07:03 PM GMT] WARN SettingsService Failed to validate license.
[2/26/15 9:07:09 PM GMT] WARN NetworkService Failed to register web address.
[2/26/15 9:28:15 PM GMT] ERROR MediaScannerService Failed to scan media library.

And on the network page this message;

xxxxxxxx.subsonic.org is registered, but could not connect to it. (ConnectTimeoutException)

The first steps I took was to restarted my PC and router. I am running Subsonic on WHS v1. So I upgraded to 5.2 but still can't connect and I get the following error on the home page....

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.

Exception org.springframework.jdbc.BadSqlGrammarException
Message PreparedStatementCallback; bad SQL grammar [select music_folder.id,music_folder.path,music_folder.name,music_folder.enabled,music_folder.changed from music_folder, music_folder_user where music_folder.id = music_folder_user.music_folder_id and music_folder_user.username = ?]; nested exception is java.sql.SQLException: Table not found in statement [select music_folder.id,music_folder.path,music_folder.name,music_folder.enabled,music_folder.changed from music_folder, music_folder_user where music_folder.id = music_folder_user.music_folder_id and music_folder_user.username = ?]
Java version Oracle Corporation 1.7.0_67
Operating system Windows 2003 5.2
Server jetty-6.1.x
Memory Used 79 of 96 MB
Stack trace org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select music_folder.id,music_folder.path,

When accessing from Android I am using DSub 4.9.2

Subsonic Version: 5.2 (build 4411) – February 24, 2015
Server Version: Server jetty-6.1.x, java 1.7.0_67, Windows 2003 (76.7 MB / 96.7 MB)
Hardware version: WHS v1

Log lines (after upgrading to 5.2)

[2/26/15 9:30:46 PM GMT] INFO DaoHelper Checking database schema.
[2/26/15 9:30:52 PM GMT] INFO Schema47 Database table 'media_file' not found. Creating it.
[2/26/15 9:30:52 PM GMT] ERROR DaoHelper Failed to initialize database.
[2/26/15 9:30:53 PM GMT] INFO VersionService Resolved local Subsonic version to: 5.2
[2/26/15 9:30:54 PM GMT] INFO PlayerDao Deleted 1 player(s) that haven't been used after Sun Dec 28 21:30:54 GMT 2014
[2/26/15 9:30:55 PM GMT] INFO MediaScannerService Automatic media library scanning scheduled to run every 1 day(s), starting at Fri Feb 27 03:00:00 GMT 2015
[2/26/15 9:30:55 PM GMT] INFO UPnPService Starting UPnP service...
[2/26/15 9:30:57 PM GMT] ERROR PodcastService Failed to initialize PodcastService: 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=?]; out of memory; nested exception is java.sql.SQLException: out of memory
[2/26/15 9:30:57 PM GMT] INFO UPnPService Disabling UPnP/DLNA media server
[2/26/15 9:30:57 PM GMT] INFO UPnPService Starting UPnP service - Done!
[2/26/15 9:31:05 PM GMT] INFO NetworkService Successfully forwarding port 8080.
[2/26/15 9:34:14 PM GMT] INFO PlayerDao Created player 52.
[2/26/15 9:34:14 PM GMT] INFO VersionService Resolved latest Subsonic final version to: 5.2
[2/26/15 9:34:14 PM GMT] INFO VersionService Resolved latest Subsonic beta version to: 5.2.beta1

And I'm still getting this message on the network settings page: Status: xxxxxxxx.subsonic.org is registered, but could not connect to it. (ConnectTimeoutException)

Can anyone help please?

Thanks

Re: Can't connect since 5.1

PostPosted: Sat Feb 28, 2015 8:01 pm
by jonpca
I went back to 5.0 and it's all working again. Perhaps I'll try a later version of 5.2, or maybe there is something about whs v1 that it doesn't play nicely with anymore.

Re: Can't connect since 5.1

PostPosted: Wed Mar 04, 2015 1:43 am
by anwade
Is there a fix here? I recently changed out the router in my home... but Port Fwding appears to be working fine. Now it just can't connect to the subsonic.org server address?

ANY HELP?

Re: Can't connect since 5.1

PostPosted: Wed Mar 04, 2015 5:12 am
by ferrellcat
Same here. I cannot connect from outside my router with anything 5.1 or later. 5.0 works just fine.

Re: Can't connect since 5.1

PostPosted: Wed Mar 04, 2015 6:12 am
by blueturtles
Have you checked to make sure the firewall on the computer where subsonic is installed has exceptions enabled? I had to manually do it for my Windows server? It is just a thought....

Re: Can't connect since 5.1

PostPosted: Wed Mar 04, 2015 10:18 pm
by jonpca
ferrellcat wrote:Same here. I cannot connect from outside my router with anything 5.1 or later. 5.0 works just fine.


Hi. What is the operating system of your PC running subsonic? I'm on Windows Home Server v1, which I'm guessing is pretty scarce these days. So I was wondering if that was something to do with it. I also saw someone using windows server 2008 posted something on the 5.2 announcement thread saying this release had disabled port forwarding which could be connected.

I'm gutted - I have been using and loving subsonic for years, at least 4, and this is the first time I've had any problems.

Actually going back to 5.0 has left me we other problems now. Random doesn't work properly and search doesn't work at all

[3/4/15 9:50:33 PM GMT] INFO DaoHelper Checking database schema.
[3/4/15 9:51:15 PM GMT] INFO Schema47 Database table 'media_file' not found. Creating it.
[3/4/15 9:51:15 PM GMT] ERROR DaoHelper Failed to initialize database.
[3/4/15 9:51:19 PM GMT] INFO VersionService Resolved local Subsonic version to: 5.0
[3/4/15 9:51:25 PM GMT] INFO PlayerDao Deleted 2 player(s) that haven't been used after Sat Jan 03 21:51:25 GMT 2015
[3/4/15 9:51:29 PM GMT] INFO MediaScannerService Automatic media library scanning scheduled to run every 1 day(s), starting at Thu Mar 05 03:00:00 GMT 2015
[3/4/15 9:51:32 PM GMT] INFO UPnPService Starting UPnP service...
[3/4/15 9:51:35 PM GMT] ERROR PodcastService Failed to initialize PodcastService: 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=?]; out of memory; nested exception is java.sql.SQLException: out of memory
[3/4/15 9:51:39 PM GMT] INFO UPnPService Enabling UPnP/DLNA media server
[3/4/15 9:51:39 PM GMT] INFO UPnPService Starting UPnP service - Done!
[3/4/15 9:51:44 PM GMT] INFO NetworkService Successfully forwarding port 8080.
[3/4/15 9:57:08 PM GMT] INFO VersionService Resolved latest Subsonic final version to: 5.2.1
[3/4/15 9:57:08 PM GMT] INFO VersionService Resolved latest Subsonic beta version to: 5.2.beta1
[3/4/15 9:57:11 PM GMT] INFO PlayerDao Created player 52.
[3/4/15 10:02:41 PM GMT] WARN RESTFilter Error in REST API: EofException
[3/4/15 10:02:41 PM GMT] ERROR JAXBWriter Failed to marshal JAXB
[3/4/15 10:02:41 PM GMT] ERROR RESTFilter Failed to write error response.

Re: Can't connect since 5.1

PostPosted: Thu Mar 05, 2015 3:15 pm
by blueturtles
I'm using a whs v1 box with no trouble except for manually adjusting the firewall setting.

Re: Can't connect since 5.1

PostPosted: Sat Mar 07, 2015 7:35 am
by jonpca
thanks blueturtles, interesting to hear that you are on whs v1 too and have 5.2 working. I do have exceptions enabled and there are three subsonic related entries, all ticked. So must me something else. What Java version are you using, I have version 7 update 67? Thanks

Re: Can't connect since 5.1

PostPosted: Sat Mar 07, 2015 3:27 pm
by blueturtles
@ jonpca - since it seems like the firewall is set up properly, I would guess the problem lies within the router. I would check the port forwarding area just to be sure that is correct. Can you remote desktop control into your whs machine and use test your ports via canyouseemenow.org?

I will check which version of java I'm using later.

Good luck.

Re: Can't connect since 5.1

PostPosted: Tue Mar 10, 2015 9:59 pm
by jonpca
Hi. Thanks. My ports are fine on 5.0, but not on 5.1 or 5.2. Someone else posted in the 5.1 or 5.2 announcement that the new version broke port forwarding for them too. 5.2 introduced other problems for me too, most bits of the GUI don't load. So I am currently using 5.0 again - port forwarding is OK, but now Random and Search don't work - they used to on 5.0 - I suspect there is now a database problem. I get an error when I try to do a database clean up. So I've tried removing my media folders and re-adding them, but it's not making any difference. I think the next thing to do is a uninstall/reinstall! Thanks for your help. Cheers. Jon

blueturtles wrote:@ jonpca - since it seems like the firewall is set up properly, I would guess the problem lies within the router. I would check the port forwarding area just to be sure that is correct. Can you remote desktop control into your whs machine and use test your ports via canyouseemenow.org?

I will check which version of java I'm using later.

Good luck.

Re: Can't connect since 5.1

PostPosted: Tue Mar 10, 2015 11:22 pm
by blueturtles
Here is the java I'm using with whsv1: Version 7 update 71 build 1.7.0_71-b14. Hope that helps. Cheers, Jon

Re: Can't connect since 5.1

PostPosted: Wed Mar 11, 2015 2:43 pm
by jonpca
Hi. I took a drastic step and renamed my .db folder. Then added my folders and scanned. Random and Search seem OK now. Of course I've lost my Users, so need to recreate those. But I'm almost back to where I started before I upgraded to 5.1. I think I'll stick with 5.0 for now! Thanks again.

Re: Can't connect since 5.1

PostPosted: Sat Mar 21, 2015 6:35 pm
by rtechie
From what I can tell, *.subsonic.org addresses have stopped working. You have use dyndns, or no-ip or another DNS redirect service.

Re: Can't connect since 5.1

PostPosted: Sat Mar 21, 2015 8:10 pm
by blueturtles
@jonpca & @rtechie, I use no-ip dns service at the router level. Maybe that makes the difference with WHSv1. Hope that helps.