Problems with bareos-fd on Windows 11

62 views
Skip to first unread message

Ruth Ivimey-Cook

unread,
Mar 13, 2022, 7:13:15 PM3/13/22
to bareos-users
Folks

I'm having problems getting a Windows 10 Pro computer working as a
client. The machine has run bareos-fd successfully in the past but
hasn't been working for a little while. The install is the current
Windows 64 bit v21.

When doing "status client=X" I can see the director is sending SYN
packets to the correct machine. I can also see that the bareos-fd.exe is
also starting up ok because I modified the registry with '-d200 -v' as
in the docs.

The only error-like message related to being unable to open the state
file. However the bconsole status command fails to connect and
eventually times out.

I have tried disabling the Norton firewall, despite also having added
bareos-fd.exe to the allowed programs list but it doesn't make any
difference at all.

Has anyone any idea what's happening?


In case it's helpful this is the trace file:

=-=-=-=-=-=-=-=-=-

bareos-fd (100): lib/parse_conf.cc:210-0 config file =
C:\ProgramData\Bareos\bareos-fd.d/*/*.conf
bareos-fd (100): lib/lex.cc:316-0 glob
C:\ProgramData\Bareos\bareos-fd.d/*/*.conf: 4 files
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/client/myself.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/director/bareos-dir.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/director/bareos-mon.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/messages/Standard.conf
bareos-fd (100): lib/lex.cc:316-0 glob
C:\ProgramData\Bareos\bareos-fd.d/*/*.conf: 4 files
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/client/myself.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/director/bareos-dir.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/director/bareos-mon.conf
bareos-fd (100): lib/lex.cc:213-0 open config file:
C:\ProgramData\Bareos\bareos-fd.d/messages/Standard.conf
sherlock-fd (100): lib/bsys.cc:631-0 Could not open and read state file.
size=192: ERR=No such file or director
y (errno=2 | win_error=0x00000002) - iostream error
sherlock-fd (100): compat/compat.cc:2530-0 _unlink failed, trying
DeleteFileW
sherlock-fd (100): compat/compat.cc:2532-0 DeleteFileW failed
sherlock-fd (100): compat/compat.cc:2544-0 DeleteFileW failed, trying
RemoveDirectoryW
sherlock-fd (100): compat/compat.cc:2546-0 RemoveDirectoryW failed
sherlock-fd (150): filed/fd_plugins.cc:1630-0 plugin dir is NULL
sherlock-fd (10): filed/socket_server.cc:122-0 filed: listening on port 9102
sherlock-fd (10): filed/socket_server.cc:122-0 filed: listening on port 9102
sherlock-fd (100): lib/bnet_server_tcp.cc:152-0 Addresses
host[ipv4;0.0.0.0;9102] host[ipv6;::;9102]
sherlock-fd (100): lib/bsock.cc:84-0 Construct BareosSocket
sherlock-fd (100): lib/tls_openssl_private.cc:65-0 Construct
TlsOpenSslPrivate
sherlock-fd (100): lib/tls_openssl_private.cc:600-0 Set tcp
filedescriptor: <648>
sherlock-fd (100): lib/tls_openssl_private.cc:612-0 Set protocol:       <>
sherlock-fd (100): lib/tls_openssl_private.cc:546-0 Set ca_certfile:    <>
sherlock-fd (100): lib/tls_openssl_private.cc:552-0 Set ca_certdir:     <>
sherlock-fd (100): lib/tls_openssl_private.cc:558-0 Set crlfile_:       <>
sherlock-fd (100): lib/tls_openssl_private.cc:564-0 Set certfile_:      <>
sherlock-fd (100): lib/tls_openssl_private.cc:570-0 Set keyfile_:       <>
sherlock-fd (100): lib/tls_openssl_private.cc:588-0 Set dhfile_:        <>
sherlock-fd (100): lib/tls_openssl_private.cc:606-0 Set cipherlist:     <>
sherlock-fd (100): lib/tls_openssl_private.cc:594-0 Set Verify Peer: <false>
sherlock-fd (50): lib/tls_openssl.cc:79-0 Preparing TLS_PSK SERVER callback
sherlock-fd (100): lib/tls_openssl_private.cc:466-0 psk_server_cb.
identitiy: R_DIRECTOR sherlock-mon.
sherlock-fd (100): lib/tls_openssl_private.cc:487-0 psk_server_cb.
result: 32.
sherlock-fd (50): lib/bnet.cc:140-0 TLS server negotiation established.
sherlock-fd (110): filed/socket_server.cc:82-0 Conn: Hello Director
sherlock-mon calling

sherlock-fd (110): filed/socket_server.cc:87-0 Got a DIR connection at
13-Mar-2022 22:38:45
sherlock-fd (100): lib/jcr.cc:191-0 Construct JobControlRecord
sherlock-fd (120): filed/dir_cmd.cc:562-0 Calling Authenticate
sherlock-fd (200): lib/bsys.cc:181-0 pthread_cond_timedwait sec=0 usec=100
sherlock-fd (50): lib/cram_md5.cc:105-0 send: auth cram-md5
<13407.1647211125@R_CLIENT::sherlock-fd> ssl=1
sherlock-fd (100): lib/cram_md5.cc:166-0 cram-get received: auth
cram-md5 <12015.1647211125@> ssl=1
sherlock-fd (50): lib/cram_md5.cc:60-0 my_name: <R_CLIENT::sherlock-fd>
- challenge_name: <>
sherlock-fd (99): lib/cram_md5.cc:231-0 sending resp to challenge:
vn/+3iFiP4Aie3+2vk+XyC
sherlock-fd (200): lib/bsys.cc:181-0 pthread_cond_timedwait sec=0 usec=100
sherlock-fd (120): filed/dir_cmd.cc:563-0 OK Authenticate
sherlock-fd (100): filed/dir_cmd.cc:438-0 <dird: status
sherlock-fd (100): filed/dir_cmd.cc:449-0 Executing status command.
sherlock-fd (100): filed/dir_cmd.cc:438-0 <dird: status
sherlock-fd (100): filed/dir_cmd.cc:449-0 Executing status command.

=-=-=-=-=-=-=-=-=-

--
Software Manager & Engineer
Tel: 01223 414180
Blog: http://www.ivimey.org/blog
LinkedIn: http://uk.linkedin.com/in/ruthivimeycook/

Andreas Rogge

unread,
Mar 15, 2022, 2:08:19 AM3/15/22
to bareos...@googlegroups.com
Hi Ruth,

Am 14.03.22 um 00:13 schrieb Ruth Ivimey-Cook:
> The only error-like message related to being unable to open the state
> file. However the bconsole status command fails to connect and
> eventually times out.

Does it fail to connect? The debug-log of the FD looks like connect and
auth worked. Could you provide the complete output of the status command?

Do you by any chance have MTU issues?
I remember another really strange issue: I remember a customer having
MTU set to 9000 on the FD, but one of the Switches in between didn't
support it (or it wasn't configured to do so). As a result all small
packages (establish connection, authenticate, etc.) that fit into the
default 1500 Bytes were fine, but everything larger (like an FD's status
response) was lost.

Best Regards,
Andreas
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz
Reply all
Reply to author
Forward
0 new messages