Linux-2.6.38-2-686, Link aggregation and subsonic

Need help? Post your questions here.

Moderator: moderators

Linux-2.6.38-2-686, Link aggregation and subsonic

Postby mapes » Sat May 07, 2011 12:36 am

Hey All

I had 4.0 .1 standalone up and working on a debian box running a 2.6.26 kernel. On this box eth1 and eth2 are bound in a link aggreagation which is called bond0. After upgrading the kernel to 2.6.38-2-686 4.0.1 stopped working. Or more importantly it kinda works. It opens a listener only on the 127.0.0.1. I'm not currently at the KVM as I'm ssh'd into the host I ran lynx to http://localhost:8080 and the webpage came up. I've tried upgrading to 4.4 Subsonic and no help there. I'll post full logs tomorrow when I'm home.

I see this might be of interest in the subsonic_sh.log

10657 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
10663 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
10685 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[127.0.1.1:9412](local),objID:[0:0:0, 0]]]]


I edited the subsonic.sh like this


SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=192.168.1.20
SUBSONIC_PORT=8080
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=100


I also see this Java exception in the subsonic.log file. I have no idea if its relevant

[2011-05-06 17:23:05,599] DEBUG NetworkService - Starting PortForwardingTask
[2011-05-06 17:23:05,599] DEBUG NetworkService - Starting URLRedirectionTask
[2011-05-06 17:23:05,630] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Fri May 06 17:28:05 PDT 2011
[2011-05-06 17:23:05,630] WARN NetworkService - Failed to find UPnP router using SBBI library.
java.lang.Exception: Could not find router
at net.sourceforge.subsonic.domain.SBBIRouter.findRouter(SBBIRouter.java:45)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.findRouter(NetworkService.java:175)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.execute(NetworkService.java:131)
at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:295)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Invalid argument
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:91)
at java.net.DatagramSocket.bind(DatagramSocket.java:372)
at net.sbbi.upnp.Discovery.sendSearchMessage(Discovery.java:238)
at net.sbbi.upnp.Discovery.discoverDevices(Discovery.java:187)
at net.sbbi.upnp.Discovery.discover(Discovery.java:154)
at net.sbbi.upnp.impls.InternetGatewayDevice.lookupDeviceDevices(InternetGatewayDevice.java:251)
at net.sbbi.upnp.impls.InternetGatewayDevice.getDevices(InternetGatewayDevice.java:203)
at net.sourceforge.subsonic.domain.SBBIRouter.findRouter(SBBIRouter.java:43)
... 12 more


ANy ideas?
mapes
 
Posts: 11
Joined: Wed Apr 29, 2009 4:44 pm

Postby martyscholes » Sat May 07, 2011 6:40 pm

I don't know if this helps, but here subsonic is on Opensolaris build 128a using link aggregation and everything "just works." The aggregation isn't quite right in that the aggregate (aggr0) itself is plumbed for the host (instead of a vnic) which means I cannot easily create more vnics for other applications, but it is straightforward for zones.

Crossbow makes things rather simple.

My current config follows.

Code: Select all
bash-4.0$ dladm show-link
LINK        CLASS     MTU    STATE    BRIDGE     OVER
bge0        phys      1500   up       --         --
bge1        phys      1500   up       --         --
vboxnet0    phys      1500   unknown  --         --
aggr0       aggr      1500   up       --         bge0 bge1
proxy0      vnic      1500   up       --         aggr0
martyscholes
 
Posts: 41
Joined: Fri May 06, 2011 3:36 pm

Postby mapes » Sat May 07, 2011 9:48 pm

Figured it out. The lastest Debian package for java must have changed some things. In the subsonic.sh file I put the following line in the subsonic.sh

-Djava.net.preferIPv4Stack=true

I just put it in the memory section
mapes
 
Posts: 11
Joined: Wed Apr 29, 2009 4:44 pm

Postby henning » Fri Jun 03, 2011 7:22 am

Hi
@ mapes where exactly did you put that line in subsonic.sh ?
I have the same problem and still wondering on how to fix.
Debian Server as well

Tks
Henning
User avatar
henning
 
Posts: 9
Joined: Fri Mar 11, 2011 2:15 pm

Re: Linux-2.6.38-2-686, Link aggregation and subsonic

Postby mapes » Sun Oct 02, 2011 8:25 pm

@henning

Sorry it's taken me so long to reply. As I just upgraded and ran into this again and I had to look up my fix... and saw your request for more info.

I included that line like this in the second line of this section. Hope this helps.


${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
-Djava.net.preferIPv4Stack=true \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Djava.awt.headless=true \
-verbose:gc \
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
mapes
 
Posts: 11
Joined: Wed Apr 29, 2009 4:44 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 9 guests