#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2006
    Posts
    27
    Rep Power
    0

    Having issues with jails connecting? Check your resolv.conf


    Hey all:

    Upgraded to 6.2 to hopefully resolve an issue with ezjail not being able to play with more than one IP address, becuase of this issue, but apparently that wasn't it.

    Basically when I try to build ports from source, ping any address, or anything at all from within a jail that requires an internet connection, it acts as if the unit is off line. When pinging I receive:

    Ping: socket: Operation not permitted

    In sysinstall it says no interfaces available

    And for ports it says it cannot connect to download the files from any site like so:

    Code:
    # cd /usr/ports/databases/mysql51-server/ && make install clean
    ===>  Vulnerability check disabled, database not found
    
    You may use the following build options:
    
            WITH_CHARSET=charset    Define the primary built-in charset (latin1).
            WITH_XCHARSET=list      Define other built-in charsets (may be 'all').
            WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
            WITH_OPENSSL=yes        Enable secure connections.
            WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
            WITH_PROC_SCOPE_PTH=yes Use process scope threads
                                    (try it if you use libpthread).
            BUILD_OPTIMIZED=yes     Enable compiler optimizations
                                    (use it if you need speed).
            BUILD_STATIC=yes        Build a static version of mysqld.
                                    (use it if you need even more speed).
            WITH_NDB=yes            Enable support for NDB Cluster.
    
    => mysql-5.1.12-beta.tar.gz doesn't seem to exist in /var/ports/distfiles/.
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)/mirror/mysql.com/Downloads/MySQL-5.1/.
    fetch: (URL address blocked: See forum rules)/mirror/mysql.com/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
    => Attempting to fetch from (URL address blocked: See forum rules)/mysql.com/Downloads/MySQL-5.1/.
    fetch: (URL address blocked: See forum rules)/mysql.com/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Attempting to fetch from (URL address blocked: See forum rules)
    fetch: (URL address blocked: See forum rules): No address record
    => Couldn't fetch it - please try to retrieve this
    => port manually into /var/ports/distfiles/ and try again.
    *** Error code 1
    
    Stop in /basejail/usr/ports/databases/mysql51-server.

    My ifconfig when viewed shows this:

    Code:
    xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            options=9<RXCSUM,VLAN_MTU>
            inet 192.168.1.101 netmask 0xffffffff broadcast 192.168.1.101
            ether 00:50:04:a5:66:c3
            media: Ethernet autoselect (100baseTX <full-duplex>)
            status: active
    plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    and an alias has been configured for this IP address on the root server that ezjal is hosted on.

    An added twist is that connections can be made from the outside (ssh, ftp, http, you name it), I just cannot connect from inside.

    Anyone ran into this before?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2006
    Posts
    27
    Rep Power
    0
    An update for those are following along:

    Apparently my first jail has decided to get internet back. I have no idea how or why, but I'm not able to fetch ports again with it. However, my second jail is still ignorant of the world outside it's borders as before. Does the issue with jails only able to access one IP still apply to 6.2? Is there something that has to be added to rc.conf or a different way of creating aliases to have this work? Seems kind of silly to have only one jail available.

    Again, if anyone has any advice I'd be mroe than appriciative. This one has me stumped
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2006
    Posts
    27
    Rep Power
    0
    Wow. Is my face red.

    Determined what the problem was. While looking at my networking files between the working jail and the non-working one, I landed upon resolv.conf and found that the non-working jails' version was empty. So copied my config from the working jail and poof. It works.

    More proof that it's the little things that nail us. Man is my face red.

IMN logo majestic logo threadwatch logo seochat tools logo