Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2013 15:17:13 +0200
From:      "Zyumbilev, Peter" <peter@aboutsupport.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   jails bind ip
Message-ID:  <5103D759.5060008@aboutsupport.com>

next in thread | raw e-mail | index | archive | help
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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5103D759.5060008>