Can't bind to socket anymore

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Can't bind to socket anymore

Postby schwiz » Sat Sep 08, 2012 5:57 am

I haven't made any system changes I'm aware of lately, but pms doesn't want to work anymore suddenly. Getting this error message on start up.

Code: Select all
INFO  2012-09-07 23:53:37.530 [main] Using address /192.168.1.7 found on network interface: name:eth0 (eth0)
INFO  2012-09-07 23:53:37.530 [main] Created socket: /192.168.1.7:5001
A serious error occurred during PMS init
org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.1.7:5001
   at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) ~[pms.jar:na]
   at net.pms.network.HTTPServer.start(HTTPServer.java:118) ~[pms.jar:na]
   at net.pms.PMS.init(PMS.java:458) [pms.jar:na]
   at net.pms.PMS.createInstance(PMS.java:801) [pms.jar:na]
   at net.pms.PMS.main(PMS.java:873) [pms.jar:na]
Caused by: java.net.BindException: Address already in use
   at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_24]
   at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) ~[na:1.6.0_24]
   at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) ~[na:1.6.0_24]
   at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148) ~[pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100) ~[pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74) ~[pms.jar:na]
   at org.jboss.netty.channel.Channels.bind(Channels.java:468) ~[pms.jar:na]
   at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200) ~[pms.jar:na]
   at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348) ~[pms.jar:na]
   at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) ~[pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85) ~[pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142) ~[pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90) ~[pms.jar:na]
   at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282) ~[pms.jar:na]
   ... 4 common frames omitted
Last edited by chocolateboy on Sat Sep 08, 2012 6:10 am, edited 1 time in total.
Reason: reformatted: please read the FAQ: http://tinyurl.com/4294qo2
schwiz
 
Posts: 2
Joined: Tue Sep 04, 2012 12:03 am

Re: Can't bind to socket anymore

Postby chocolateboy » Sat Sep 08, 2012 6:12 am

chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 4 guests