View Issue Details

IDProjectCategoryView StatusLast Update
0000715bareos-coredirectorpublic2017-06-08 13:05
Reporterhostedpower Assigned To 
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionno change required 
PlatformLinuxOSDebianOS Version8
Product Version16.2.4rc 
Summary0000715: Client Initiated Connection ERR=Connection reset by peer
DescriptionOnce in a while I see the connection reset by peer.

Strange thing is that on the Windows client it says: Status OK.

home Version: 16.2.4 (01 July 2016) VSS Linux Cross-compile Win64
Daemon started 17-Oct-16 17:54. Jobs: run=8 running=0.
Microsoft Windows 8 Enterprise Edition (build 9200), 64-bit
 Heap: heap=0 smbytes=34,626 max_bytes=119,797,349 bufs=103 max_bufs=479
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=1 bwlimit=0kB/s

Terminated Jobs:
 JobId Level Files Bytes Status Finished Name
======================================================================
    65 Full 427,222 94.17 G OK 18-Oct-16 03:02 backup-home.client
    84 Full 427,783 94.17 G OK 18-Oct-16 12:09 backup-home.client
   105 Incr 14,802 2.497 G OK 19-Oct-16 02:52 backup-home.client
   126 Incr 5,713 257.6 M OK 20-Oct-16 02:39 backup-home.client
   147 Incr 5,277 683.0 M OK 21-Oct-16 02:47 backup-home.client
   189 Incr 23,415 1.258 G OK 23-Oct-16 02:44 backup-home.client
   209 Incr 2,323 215.1 M OK 24-Oct-16 02:38 backup-home.client
   230 Incr 4,345 1.016 G OK 25-Oct-16 02:46 backup-home.client
====

(Please note it's Windows 10 instead of Windows 8)


Director log

2016-10-26 02:28:37 hostedpower-dir JobId 251: Using Device "hostedpower-incr" to write.
 
2016-10-26 02:28:37 hostedpower-dir JobId 251: Using Client Initiated Connection (home).
 
2016-10-26 02:28:37 hostedpower-dir JobId 251: Fatal error: FD gave bad response to JobId command: Connection reset by peer
 
2016-10-26 02:28:37 hostedpower-dir JobId 251: Fatal error: Network error with FD during Backup: ERR=Connection reset by peer
 
2016-10-26 02:28:37 hostedpower-dir JobId 251: Fatal error: No Job status returned from FD.
 
2016-10-26 02:28:37 hostedpower-dir JobId 251: Error: Bareos hostedpower-dir 16.2.4 (01Jul16):
 Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 8.0 (jessie)
 JobId: 251
 Job: backup-home.client.2016-10-26_02.15.00_52
 Backup Level: Incremental, since=2016-10-25 02:15:40
 Client: "home" 16.2.4 (01Jul16) Microsoft Windows 8 Enterprise Edition (build 9200), 64-bit,Cross-compile,Win64
 FileSet: "windows-C" 2016-10-17 17:55:54
 Pool: "hostedpower-incr" (From Job resource)
 Catalog: "MyCatalog" (From Client resource)
 Storage: "hostedpower-incr" (From Pool resource)
 Scheduled time: 26-Oct-2016 02:15:00
 Start time: 26-Oct-2016 02:15:06
 End time: 26-Oct-2016 02:28:37
 Elapsed time: 13 mins 31 secs
 Priority: 10
 FD Files Written: 0
 SD Files Written: 0
 FD Bytes Written: 0 (0 B)
 SD Bytes Written: 0 (0 B)
 Rate: 0.0 KB/s
 Software Compression: None
 VSS: no
 Encryption: no
 Accurate: yes
 Volume name(s):
 Volume Session Id: 117
 Volume Session Time: 1476986891
 Last Volume Bytes: 0 (0 B)
 Non-fatal FD errors: 1
 SD Errors: 0
 FD termination status: Error
 SD termination status: Waiting on FD
 FD Secure Erase Cmd:
 Termination: *** Backup Error ***

 
2016-10-26 02:28:07 hostedpower-dir JobId 251: Created new Volume "vol-incr-0299" in catalog.
 
2016-10-26 02:15:06 hostedpower-dir JobId 251: Start Backup JobId 251, Job=backup-home.client.2016-10-26_02.15.00_52




I already set heartbeat enabled in the director, wouldn't this be sufficient to avoid this?

I also tried setting it in the client config, but it says not supported on Windows. It takes one simple API call on Windows, so why you wouldn't support it is a mystery to me - https://msdn.microsoft.com/en-us/library/windows/desktop/ee470551%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Also strange that the backup client says successful, while director says not :(

Config on the director server:


Director { # define myself
  Name = hostedpower-dir
  QueryFile = "/usr/lib/bareos/scripts/query.sql"
  Maximum Concurrent Jobs = 10
  Password = "xxxxx" # Console password
  Messages = Daemon
  Auditing = yes

  # Enable the Heartbeat if you experience connection losses
  # (eg. because of your router or firewall configuration).
  # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd.
  #
  Heartbeat Interval = 2 minutes

  # remove comment in next line to load dynamic backends from specified directory
  # Backend Directory = /usr/lib/bareos/backends

  # remove comment from "Plugin Directory" to load plugins from specified directory.
  # if "Plugin Names" is defined, only the specified plugins will be loaded,
  # otherwise all director plugins (*-dir.so) from the "Plugin Directory".
  #
  # Plugin Directory = /usr/lib/bareos/plugins
  # Plugin Names = ""
}


Config on the client

Director {
  Name = hostedpower-dir
  Password = "xxxxx"
  Description = "Allow the configured Director to access this file daemon."

    Connection From Client To Director = yes
    Address = www.hosted-power.com
}



TagsNo tags attached.

Activities

joergs

joergs

2016-10-26 13:07

developer   ~0002408

> I already set heartbeat enabled in the director, wouldn't this be sufficient to avoid this?

no, you also have to set it on the client side.

> I also tried setting it in the client config, but it says not supported on Windows.

Where it says, it is not supported?
I added the support for Windows in Bareos together with this feature.
hostedpower

hostedpower

2016-10-26 13:10

reporter   ~0002409

Could you show me an example on how to set it correctly in my client config and where?

I tried it but the daemon no longer started and if I remember correctly I saw some error regarding the setting.

Either I set it on the wrong place or something goes wrong :|
joergs

joergs

2016-10-26 13:25

developer   ~0002410

Sorry, I've none at hand. But the documentation states, it must be in the client resource of the fd (same place as on Linux).
Please ask on the mailinglist. I know, there are customers using it.
hostedpower

hostedpower

2016-10-26 14:03

reporter   ~0002411

Ok I seems to work now (adding it). Let's wait a few days to see what happens :)


This is on the client machine:

Client {
  Name = home
  Maximum Concurrent Jobs = 20

  # remove comment from "Plugin Directory" to load plugins from specified directory.
  # if "Plugin Names" is defined, only the specified plugins will be loaded,
  # otherwise all storage plugins (*-fd.so) from the "Plugin Directory".
  #
  # Plugin Directory = C:/Program Files/Bareos/Plugins
  # Plugin Names = ""

  # if compatible is set to yes, we are compatible with bacula
  # if set to no, new bareos features are enabled which is the default
  # compatible = yes
  
  Heartbeat Interval = 120
}

I did not set anything in the client resources on the director side which is fine I assume ?
joergs

joergs

2016-10-29 08:59

developer   ~0002420

Yes, that should work.

Closing the ticket now, as this does not seam to be a bug.

Issue History

Date Modified Username Field Change
2016-10-26 09:11 hostedpower New Issue
2016-10-26 13:07 joergs Note Added: 0002408
2016-10-26 13:07 joergs Assigned To => joergs
2016-10-26 13:07 joergs Status new => feedback
2016-10-26 13:10 hostedpower Note Added: 0002409
2016-10-26 13:10 hostedpower Status feedback => assigned
2016-10-26 13:25 joergs Note Added: 0002410
2016-10-26 14:03 hostedpower Note Added: 0002411
2016-10-29 08:59 joergs Note Added: 0002420
2016-10-29 08:59 joergs Status assigned => resolved
2016-10-29 08:59 joergs Resolution open => no change required
2017-06-08 13:05 joergs Status resolved => closed
2017-06-08 13:05 joergs Assigned To joergs =>