jails bind ip
Ivailo Tanusheff
i.tanusheff at procreditbank.bg
Mon Jan 28 07:27:27 UTC 2013
Hi,
First of all usage of 127.0.0.1 as second address is nothing but wrong, as
this is the loopback address :)
For the second part of the question - I suppose it has nothing to do with
the BSD and the jail subsystem.
I am not sure why you have eth1 tbh, you should only have eth0, maybe
because of this binding to 127.0.0.1, which fails as you already have this
address on lo0.
But from your logs:
INFO 2013-01-26 16:03:03.085 Created socket: /127.0.0.1:5001
[main] ERROR 2013-01-26 16:03:03.186 A serious error occurred during PMS
init org.jboss.netty.channel.ChannelException: Failed to bind to:
/127.0.0.1:5001
Obviously you have error in your config, as you are not binding to
address, but on local socket at the root of the system. So my guess is you
must eighter change your software configuration or you should giva access
to root folder to the user running the application.
Regards,
Ivailo Tanusheff
"Zyumbilev, Peter" <peter at aboutsupport.com>
Sent by: owner-freebsd-questions at freebsd.org
26.01.2013 15:18
To
"freebsd-questions at freebsd.org" <freebsd-questions at freebsd.org>
cc
Subject
jails bind ip
Hi,
I have successfully run multiple jails on freebsd 9.1
Two of the jails are FreeBSD and I have no problems with them.
However I havesome strange problem with Debian 6.0 Jail.
This is my config
jail_debian_rootdir="/jail/debian"
jail_debian_hostname="debian.bivol.net"
jail_debian_ip="192.168.30.12,127.0.0.1"
jail_debian_interface="bge0"
jail_debian_devfs_enable="YES"
jail_debian_devfs_ruleset="devfsrules_jail"
jail_debian_flags="-n debian"
#jail_debian_mount_enable="YES" # mount YES|NO
jail_debian_fstab="/jail/conf/fstab.debian" # File with
Filesystems to mount
I tried with and without 127.0.0.1.
This is how ifconfig looks from inside debian:
root at debian:/# ifconfig
eth0 Link encap:Ethernet HWaddr e8:39:35:25:d2:ef
inet addr:192.168.30.12 Bcast:192.168.30.12
Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:425676061 errors:0 dropped:0 overruns:0 frame:0
TX packets:483122783 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:478459387769 (445.6 GiB) TX bytes:190485214007
(177.4 GiB)
eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MULTICAST MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo0 Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16384 Metric:1
RX packets:1273268 errors:0 dropped:0 overruns:0 frame:0
TX packets:1273274 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:103125473 (98.3 MiB) TX bytes:103125585 (98.3 MiB)
usbus0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usbus1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usbus2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usbus3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usbus4 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usbus5 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
However, applications have problem binding. Two applications that fail
are plexmedia server and psmedia server.
1. PS3 media server throws crazy errors like that it canncot bind - no
matter which IP I choose:
[main] INFO 2013-01-26 16:03:02.833 Loading configuration file:
Panasonic.conf
[main] DEBUG 2013-01-26 16:03:02.833 Base path set to
file:///etc/ps3mediaserver/renderers/Panasonic.conf
[main] INFO 2013-01-26 16:03:02.855 Loading configuration file: PS3.conf
[main] DEBUG 2013-01-26 16:03:02.855 Base path set to
file:///etc/ps3mediaserver/renderers/PS3.conf
[main] INFO 2013-01-26 16:03:02.861 Loading configuration file:
AirPlayer.conf
[main] DEBUG 2013-01-26 16:03:02.862 Base path set to
file:///etc/ps3mediaserver/renderers/AirPlayer.conf
[main] INFO 2013-01-26 16:03:02.864 Checking MPlayer font cache. It can
take a minute or so.
[main] DEBUG 2013-01-26 16:03:02.865 launching:
/usr/lib/ps3mediaserver/linux/mplayer
[main] INFO 2013-01-26 16:03:03.008 Done!
[main] INFO 2013-01-26 16:03:03.016 Searching for plugins in
/usr/lib/ps3mediaserver/plugins
[main] INFO 2013-01-26 16:03:03.029 No plugins found
[main] INFO 2013-01-26 16:03:03.060 Registering transcoding engine:
FFmpeg Audio
[main] INFO 2013-01-26 16:03:03.078 Registering transcoding engine:
MEncoder
[main] INFO 2013-01-26 16:03:03.079 Registering transcoding engine:
MPlayer Audio
[main] INFO 2013-01-26 16:03:03.079 Registering transcoding engine:
MEncoder Web
[main] INFO 2013-01-26 16:03:03.080 Registering transcoding engine:
MPlayer Video Dump
[main] INFO 2013-01-26 16:03:03.080 Registering transcoding engine:
MPlayer Web
[main] INFO 2013-01-26 16:03:03.082 Registering transcoding engine:
tsMuxeR
[main] INFO 2013-01-26 16:03:03.083 Registering transcoding engine:
Audio High Fidelity
[main] INFO 2013-01-26 16:03:03.083 Registering transcoding engine: VLC
Audio Streaming
[main] INFO 2013-01-26 16:03:03.083 Registering transcoding engine: VLC
Video Streaming
[main] INFO 2013-01-26 16:03:03.084 Registering transcoding engine:
dcraw Thumbnailer
[main] INFO 2013-01-26 16:03:03.084 Using forced address 127.0.0.1
[main] INFO 2013-01-26 16:03:03.085 Created socket: /127.0.0.1:5001
[main] ERROR 2013-01-26 16:03:03.186 A serious error occurred during PMS
init
org.jboss.netty.channel.ChannelException: Failed to bind to:
/127.0.0.1:5001
at
org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
~[pms.jar:na]
at net.pms.network.HTTPServer.start(HTTPServer.java:122)
~[pms.jar:na]
at net.pms.PMS.init(PMS.java:468) [pms.jar:na]
at net.pms.PMS.createInstance(PMS.java:811) [pms.jar:na]
at net.pms.PMS.main(PMS.java:883) [pms.jar:na]
Caused by: java.io.IOException: Function not implemented
at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
~[na:1.6.0_26]
at
sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:69)
~[na:1.6.0_26]
at
sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
~[na:1.6.0_26]
at
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
~[na:1.6.0_26]
at java.nio.channels.Selector.open(Selector.java:209)
~[na:1.6.0_26]
at
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.<init>(NioServerSocketPipelineSink.java:218)
~[pms.jar:na]
at
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:156)
~[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]
2. Plex stars but cannot bind admin panel.
PS3 is multicass FYI.
Any hints what Ic an check more ?
Peter
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
Disclaimer: The information contained in this message is intended solely
for the use of the individual or entity to whom it is addressed and to
others authorised to receive it. It may contain confidential or legally
privileged information. It you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution, or taking any
action based on the contents of this message is strictly prohibited and
may be unlawful. If you have received this communication in error, please
notify us immediately by responding to this e-mail and then delete it from
your system. ProCredit Bank is neither liable for the proper and complete
transmission for the information contained in this message nor for any
delay in its receipt.
More information about the freebsd-questions
mailing list