On Tue, Jan 21, 2014 at 3:25 PM, Joe Rhodes <li...@joerhodes.com> wrote:

> Sorry, turns out there was an error in my previous suggestion and
> "caffeinate" was not actually started on the client.  Here's an updated
>  (and tested) line that does keep a 10.8 or later mac awake for 3600
> seconds:
>
> Client Run Before Job = "bash -c \"/usr/bin/caffeinate -i -t 3600 &>
> /dev/null < /dev/null &\""
>
>
With Bacula 5.2.13 running on CentOS6.4 the command doesn't go in on OS X
10.9.1 client.

On the OS X system I see it running:
sdfiler:~ root# ps -ef |grep caffeinate
    0 48955     1   0 10:11AM ??         0:00.01 /usr/bin/caffeinate -i -t
21600

... but the backup stops waiting for the command to complete before
continuing. If I kill the caffeinate process the backup continues instantly.

If I don't kill the caffeinate process the connection stays idle for 15min.
and the OS X closes it.

Here is the output:
05-Feb 10:11 tzbackup-dir JobId 3965: No prior Full backup Job record found.
05-Feb 10:11 tzbackup-dir JobId 3965: No prior or suitable Full backup
found in catalog. Doing FULL backup.
05-Feb 10:11 tzbackup-dir JobId 3965: shell command: run BeforeJob
"/usr/local/sbin/baculaFirewall open 192.168.10.40"
05-Feb 10:11 tzbackup-dir JobId 3965: Start Backup JobId 3965,
Job=sdfiler.2014-02-05_10.11.09_24
05-Feb 10:11 tzbackup-dir JobId 3965: Using Device "FileStorage" to write.
05-Feb 10:11 sdfiler-fd JobId 3965: shell command: run ClientRunBeforeJob
"bash -c "/usr/bin/caffeinate -i -t 21600 & > /dev/null < /dev/null &""
05-Feb 10:26 tzbackup-dir JobId 3965: Fatal error: Socket error on
ClientRunBeforeJob command: ERR=Connection reset by peer
05-Feb 10:26 tzbackup-dir JobId 3965: Fatal error: Client "sdfiler-fd"
RunScript failed.
05-Feb 10:26 tzbackup-dir JobId 3965: Fatal error: Network error with FD
during Backup: ERR=Connection reset by peer
05-Feb 10:26 tzbackup-dir JobId 3965: Fatal error: No Job status returned
from FD.
05-Feb 10:26 tzbackup-dir JobId 3965: Error: Bacula tzbackup-dir 5.2.13
(19Jan13):
  Build OS:               x86_64-unknown-linux-gnu redhat
  JobId:                  3965
  Job:                    sdfiler.2014-02-05_10.11.09_24
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "sdfiler-fd" 5.2.13 (19Jan13)
i386-apple-darwin13.0.0,osx,13.0.0
  FileSet:                "sdfiler-files" 2014-02-05 09:57:47
  Pool:                   "FullFilePool" (From Job FullPool override)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         05-Feb-2014 10:10:46
  Start time:             05-Feb-2014 10:11:11
  End time:               05-Feb-2014 10:26:14
  Elapsed time:           15 mins 3 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:               no
  Volume name(s):
  Volume Session Id:      688
  Volume Session Time:    1389056422
  Last Volume Bytes:      78,232,168,558 (78.23 GB)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  Error
  SD termination status:  OK
  Termination:            *** Backup Error ***

Thanks,

-- Peter
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to