Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Apr 2015 18:22:27 -0600
From:      James Gritton <jamie@freebsd.org>
To:        freebsd-jail@freebsd.org
Cc:        javocado <javocado@gmail.com>
Subject:   Re: Fwd: What to do about RPC errors in an old 8.3 jail
Message-ID:  <c9076fd13aed72b3ef56db8f22a59e87@gritton.org>
In-Reply-To: <CAP1HOmRiOhr7JrTaBZTPmzNLRny8a7f7g9mid-XwX09Tbz8A5A@mail.gmail.com>
References:  <CAP1HOmRAkE8E6b%2BDgJUggeV0oJ-e7N4mA8GazZ4jGTSnVF3usA@mail.gmail.com> <CAP1HOmRiOhr7JrTaBZTPmzNLRny8a7f7g9mid-XwX09Tbz8A5A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2015-04-02 16:39, javocado wrote:
> We have an older jail running on 8.3-RELEASE, and when we attempt to 
> run a
> certain linux binary, it successfully runs, but bombs out with RPC 
> errors:
> 
> 
> [03.03.2015 21:03:56] < 49156> cli| Thread started. Thread id: 49156,
> parent id: 16384, role: VRPC server thread
> [03.03.2015 21:03:56] < 49156> net| Veeam RPC server started.
> [03.03.2015 21:03:56] < 49156> net| Selected vRPC port: '2500'.
> [03.03.2015 21:03:56] < 49156> net| Listening vRPC port '2500'.
> [03.03.2015 21:03:56] < 16384> cli|   Client works in standalone
> mode.[03.03.2015 21:03:57] < 49156> net| ERR |Veeam RPC server broken.
> [03.03.2015 21:03:57] < 49156> net| >>  |WIN: Unable to update socket
> keep-alive settings. Error code: [92].
> [03.03.2015 21:03:57] < 49156> net| >>  |An exception was thrown from
> thread [49156].
> [03.03.2015 21:03:57] < 49156> cli| Thread finished. Role: 'VRPC server
> thread'.
> 
> 
> As you can see, an RPC server is started, and is immediately broken 
> with
> the error:
> [03.03.2015 21:03:57] < 49156> net| ERR |Veeam RPC server broken.
> 
> We think this is an RPC problem and wonder if it is possible to solve 
> it,
> perhaps with entries in the jails /etc/rc.conf ?  Currently we have no 
> rpc
> or lockd/statd entries in the jails rc.conf.
> 
> When you see rpc errors in a jail, what does it mean, and how can it be
> fixed ?
> 
> Thank you.

The error code 92 may be the key.  errno(2) tells me it's EPROTO ("A 
device or socket encountered an unrecoverable protocol error.").  It's 
possible that updating the socket keepalive settings requires some of 
the socket permissions that jails don't always have.

FreeBSD 8 ... so I suppose that's old-style jails.  It might do to set 
one of these sysctls:
security.jail.param.allow.raw_sockets=1
security.jail.socket_unixiproute_only=0
Or maybe you're actually using jail parameters?  I think those went in 8 
(but I'm not sure).  If so, and if you're actually using a jail.conf, 
try "allow.socket_af" and/or "allow.raw_sockets".

One of those might help.  Or neither.  But it's at least worth a try.

- Jamie



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