Page 1 of 1

Revisit: 503 errors [Resolved]

PostPosted: Fri Apr 27, 2012 6:10 pm
by MyD0j0
Hi all and thanks for the forums! I see where there are a lot of posts about this 503 error when trying to access subsonic and haven't had any luck with the suggestions for fixing, so I thought I would ask it again! In following some of the other forum suggestions, I have deleted /var/subsonic/db directory and restarted so to rebuild; I have even ap-get remove and then deleted all the reminaing files and re-installed. I have had it runnning in the past and used it with my android until the trial ended; it took me a while to do the donation to get the license, so I'm not sure when it stopped working.

I'm running subsonic on an Ubuntu 11.10 headless server connected to my local network with wired lan to my belkin N600 wireless router; I am forwarding port 4040 to the ip of my server in the router. I've attached copies of subsonic.log and subsonic_sh.log; I see a warn (no upnp router found [note that I'm port forwarding as stated above]) and also several lines saying along the lines of "[Full GC 8053K->7174K(20636K), 0.1162790 secs]"

Java version:
Code: Select all
root@CentralD0j0:~# java -version
java version "1.6.0_23"

root@CentralD0j0:~# uname -a
Linux CentralD0j0 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686 i686 i386 GNU/Linux


(edited for kernel version)

Anyone with experience in interpreting the logs that can help me figure out why this isn't running?

Thanks so much!

Re: Revisit: 503 errors

PostPosted: Fri Apr 27, 2012 6:35 pm
by bushman4
I didn't re-read your whole thread, but in the subsonic_sh.log is this line:

Code: Select all
5478 [main] WARN org.mortbay.log - failed SelectChannelConnector@0.0.0.0:4040


Which tells me you already have a service running on port 4040...

Glenn

Re: Fixed: Revisit: 503 errors

PostPosted: Fri Apr 27, 2012 7:19 pm
by MyD0j0
Thanks bushman4! It appears java was running on tcp6 port 4040 (though I'm not using tcp v6...something to look into I suppose). Changed the port and port forwarding and I'm back up and running!

Re: Revisit: 503 errors [Resolved]

PostPosted: Fri May 04, 2012 1:31 am
by MyD0j0
Well, that was short lived. Now I'm seeing the same error using port 5050.
here is the output of 'service subsonic restart' and 'netstat -lp -t'

Code: Select all
root@CentralD0j0:~# service subsonic restart
* Restarting Subsonic Daemon subsonic                                                                                         Started Subsonic [PID 5221, /var/subsonic/subsonic_sh.log]
                                                                                                                        [ OK ]
root@CentralD0j0:~# netstat -lp -t
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:nfs                   *:*                     LISTEN      -               
tcp        0      0 *:53032                 *:*                     LISTEN      -               
tcp        0      0 localhost:mysql         *:*                     LISTEN      1085/mysqld     
tcp        0      0 *:sunrpc                *:*                     LISTEN      850/rpcbind     
tcp        0      0 *:webmin                *:*                     LISTEN      1334/perl       
tcp        0      0 *:www                   *:*                     LISTEN      1091/apache2   
tcp        0      0 *:54706                 *:*                     LISTEN      1262/rpc.mountd
tcp        0      0 *:33814                 *:*                     LISTEN      1262/rpc.mountd
tcp        0      0 *:ssh                   *:*                     LISTEN      947/sshd       
tcp        0      0 *:40953                 *:*                     LISTEN      954/rpc.statd   
tcp        0      0 *:49152                 *:*                     LISTEN      1310/ushare     
tcp        0      0 *:40640                 *:*                     LISTEN      1262/rpc.mountd
tcp6       0      0 [::]:nfs                [::]:*                  LISTEN      -               
tcp6       0      0 [::]:9412               [::]:*                  LISTEN      1358/java       
tcp6       0      0 [::]:54823              [::]:*                  LISTEN      -               
tcp6       0      0 [::]:4040               [::]:*                  LISTEN      1358/java       
tcp6       0      0 [::]:38538              [::]:*                  LISTEN      1262/rpc.mountd
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN      850/rpcbind     
tcp6       0      0 [::]:60081              [::]:*                  LISTEN      1358/java       
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      947/sshd       
tcp6       0      0 [::]:42392              [::]:*                  LISTEN      1262/rpc.mountd
tcp6       0      0 [::]:40892              [::]:*                  LISTEN      954/rpc.statd   
tcp6       0      0 [::]:51038              [::]:*                  LISTEN      1262/rpc.mountd

Re: Revisit: 503 errors [Resolved]

PostPosted: Fri May 04, 2012 2:45 pm
by BKKKPewsey
Me eyes aint wot they used to be :shock: but I cannot see any port #5050 shown in that log :?

Re: Revisit: 503 errors [Resolved]

PostPosted: Fri May 04, 2012 3:04 pm
by bushman4
Nor do I... I would suspect that Subsonic is not shutting down completely and releasing the port.

Does a reboot make it work again?

Just a suggested testing step, not a solution...

Glenn

Re: Revisit: 503 errors [Resolved]

PostPosted: Fri May 04, 2012 3:59 pm
by GJ51
Just a thought:

I seem to recall that many times this is related to a file with an .lck extension in the db folder that doesn't get undone properly. Deleting it has fixed the issue in the past.

Re: Revisit: 503 errors [Resolved]

PostPosted: Mon May 07, 2012 2:43 am
by MyD0j0
Sorry I haven't responded sooner, guys, I really do appreciate the help.

We've had some rough storms around here in the central midwest and I lost power on the box. Somehow several sub-directories on my raid disk were deleted (mounted nfs issue?) and I've been working with extundelete to get my data back (I know, backup...but the box was only a couple months old and I hadn't been able to aford a viable backup disk for the nearly 1Tb of data I had yet; a ups is now also on my list of things to get).

Anyway, I'm not ignoring you--I just haven't been able to try your suggestions yet! ):