>>>>> On Wed, 20 Jul 2022 16:25:15 +0200, Justin Case said:
> 
> > On 20. Jul 2022, at 12:06, Martin Simmons <mar...@lispworks.com> wrote:
> > 
> > There are two levels of error here: firstly, the "Connection refused" occurs
> > when the client tries to connect to the Director; then that eventually
> > succeeds and the error message is sent back to the Director when it doesn't
> > expect it which leads to the "Malformed message" error.
> > 
> > Does the client machine have permanent access to the Director machine (via 
> > the
> > firewall)?  It looks to me like it might only have intermittent access, so
> > gets "Connection refused" for some time before it connects.
> 
> It has permanent access. However, the machine running the Dir and SD is busy
> with local FD jobs (as in “Dir, SD and FD on same host”) when also the jobs
> for remote FDs are initiated. The jobs I had so far for remote hosts just
> waited with a cogwheel showing in Baculum. The job for the FD with
> ConnectToDirector also shows the cogwheel, but it seems at the point in time
> when its turn has come, the connection messages are occuring.

It is not clear when the "Connection refused" messages actually occurred,
because they are queued until a connection exists and then sent to that
connection.  They probably occurred sometime before the connection existed.

"Connection refused" comes from the OS errno ECONNREFUSED, which suggests a
genuine networking problem at the point in time.  It usually means that the
server is not listening on the target port, or some firewall is blocking it.

Since you don't have a Schedule clause in the bacula-fd.conf, the bacula-fd
will try to connect to the Director when the bacula-fd starts.  It will try to
connect every 5 seconds until it succeeds.  Maybe it can't connect at that
point for some reason?

The problem is repeatable for me if I start the bacula-fd before starting the
bacula-dir.

__Martin


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to