BackupPC-users

Re: [BackupPC-users] BackupPC_tarExtract exited with fail status 256

2017-07-30 19:20:27
Subject: Re: [BackupPC-users] BackupPC_tarExtract exited with fail status 256
From: Craig Barratt via BackupPC-users <backuppc-users AT lists.sourceforge DOT net>
To: mstowe AT chicago.us.mensa DOT org, "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sun, 30 Jul 2017 16:19:38 -0700
I just pushed a change to git to make the SMB pipe non-blocking, which is the same change I made to Tar.pm in 4.1.3 to fix a stall issue with tar reported by Matt Bedynek.

Here's a diff that you could apply with patch: https://github.com/backuppc/backuppc/commit/b0ae4bca583b7882ce1c51f20391b681440a63c6.diff.

This might fix Dan's instance of the problem.

However, the log file that Tim sent shows that something else is going wrong with his setup - smbclient is still running (doing something), but BackupPC_tarExtract sees no further output.  Could Micheal's theory be correct - smbclient is repeatedly trying to read a dll?  Unfortunately, I'm not familiar with windows or SMB.

Tim - you could test standalone (without BackupPC involved) by running something like:

/usr/bin/smbclient '\\pelican\C$' -U backup -E -d 1 -c tarmode full -Tc – | tar tvf -

and waiting until either it completes, or it is stalled with no output from tar.  You could then re-run with higher debug levels on smbclient (increase the "-d 1" to "-d 3" or so).

Craig

On Thu, Jul 20, 2017 at 8:10 PM, Michael Stowe <mstowe AT chicago.us.mensa DOT org> wrote:

On 2017-07-20 20:13, Tim Evans wrote:

On 07/17/2017 12:21 AM, Craig Barratt wrote:

When the tar backup appears to be stalled, please do the following:

OK, full backup has been running since 11pm last night, and appears hung.

  * run ps auxww (options might vary based on which server OS you are
    running), and find the relevant backups processes: BackupPC_dump,
    BackupPC_tarExtract, and the corresponding ssh command that runs
the
    remote tar.

backuppc 19250 10.4 0.0 397252 15676 ? S Jul19 137:52 /usr/bin/smbclient \\pelican\C$ -U backup -E -d 1 -c tarmode full -Tc –

  • run “strace -p PID” as root, for each number PID listed by ps above. Please send me the output.

strace -p 19250 (smbclient) never stops output, accumulates rapidly; some of it is attached.

backuppc 19249 19246 8 Jul19 ? 01:51:40 /usr/bin/perl /usr/share/BackupPC/bin/BackupPC_tarExtract -h pelican -s C$ -f

strace -p 19249 (tar) generates no output at all:

# cat strace_tar.out read(0, <detached …>

Xferlog's last modification date is 9:02am (about 12 hours ago and about 10 hours since the backup began). Last couple of lines are:

same     644       0/0       11104

Windows/winsxs/x86_netfx-sbs_wminet_utils_dll_31bf3856ad364e35_6.1.7600.16385_none_007147dce7111012/sbs_wminet_utils.dll

same     755       0/0           0

Windows/winsxs/x86_netfx-sbs_wminet_utils_dll_31bf3856ad364e35_6.1.7601.18514_none_02a244dce

There is no line break here on the last line.

It looks like you're backing up files from Windows' side-by-side folder, which means that a running program or service could be problematic for CIFS/SMB, causing it to hang until the program releases all copies of the DLL — in practical terms, until the program or service is stopped.

Have you checked to make sure nothing is running?


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

ADSM.ORG Privacy and Data Security by KimLaw, PLLC