[BackupPC-users] SMB shares backup issue with smbclient 4.2.10
Just thought I'd share this, in case someone else comes across the same issue. BackupPC-3.3.1-1.el7.x86_64 on CentOS 7.1 After a nightly yum update, which updated smbclient to 4.2.10, all SMB backups of my NetApp filers stopped working with the error below: 2016-04-20 15:00:04 full backup started for share backup1 2016-04-20 15:00:07 Got fatal error during xfer (session setup failed: NT code 0x80090302) 2016-04-20 15:00:16 Backup aborted (session setup failed: NT code 0x80090302) The fix was to change the smb backup command, adding --option=clientusespnego=no, like so: $smbClientPath --option=clientusespnego=no \\$host\$shareName $I_option -U $userName -E -d 1 -c tarmode\ full -Tc$X_option - $fileList Cheers, Otto -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ 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/
Re: [BackupPC-users] Issue with samba client 4.1.6 and newer
Thank you for your efforts David. I've implemented the patch and it works in my environment, backups complete ok and I can do sucessfull restores. :-) But as you say, the system thinks 0 files got backed up: 2016-01-19 09:48:39 full backup started for share Backups 2016-01-19 10:58:59 full backup 75 complete, 0 files, 0 bytes, 0 xferErrs (0 bad files, 0 bad shares, 0 other) On Fri, Jan 15, 2016 at 11:57 PM, David Cramblett wrote: > It's looks as though it may be more than RegEx issues. I looked the RegEx > lines over in Smb.pm and could see some changes were needed, but those > alone are not the only problem. It also looks like BackupPC expects a line > of output for each file that is transferred with smbtar. The new version of > smbclient is only dumping three lines: > > Domain=[HOST] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows > Server 2012 R2 Standard 6.3] > tar:322 tarmode is now full, system, hidden, noreset, verbose > tar:800 Total bytes received: 463398359 > > If you update your Smb.pm per this patch: > https://bugzilla.redhat.com/show_bug.cgi?id=1294761 You can get BackupPC > to read the new style lines properly. However, without the (missing) output > lines for each file being transfered, $t->{fileCnt} is never incremented, > and thus is 0 after the transfer. > > This results in: > > if ( $newStat->{fileCnt} == 0 ) { >$noFilesErr ||= "No files dumped for share $shareName"; > } > > I'm having a hard time finding an example of what the tarmode verbose > output used to look like, and also how to get (actual) verbose output from > the new smbclient. > > David > > > > > > > > On Mon, Jan 4, 2016 at 5:19 AM, Micha Silver wrote: > >> Thanks for verifying. I hope someone with good regex skills will work out >> a solution. It seems newer samba versions return results formatted slightly >> differently, so parsing fails. >> There is a config setting: $Conf{BackupZeroFilesIsFatal} = 1; (Under >> "Schedule"). >> I have changed this to '0' so that even tho' I get the warning, the >> "partial" backup is still saved. >> >> >> On 01/04/2016 11:14 AM, Otto Wincrantz wrote: >> >> Hi, >> >> For the record I am experiencing the same issue as you are seeing with a >> BP install on a CentOS 7.2 with smbclient 4.2.3. >> Backups are working for the 1st share listed in the job, but BackupPC >> reports them as failed with "backup failed (No files dumped for share >> backuppc$)" >> >> A resolution would be most welcome... >> >> Cheers, >> >> Otto >> >> >> On Mon, Dec 28, 2015 at 2:58 PM, Micha Silver wrote: >> >>> On 27/12/2015 20:26, pasci wrote: >>> >>> I tried to add the "verbose" option, and I'm still getting a failure: >>> >>> Missunderstanding - The verbose option is only ONE of TWO required changes. >>> The second one is to fix the regex of Smb.pm. Because my know how to create >>> a new filter is really bad, I can't publish the solution for this (I've >>> tried, but is still not working). Perhaps someone else has an idea/fixed >>> regex? >>> >>> >>> OK, I got it now. >>> So this problem parsing the output of smbclient affect both versions 3.x >>> and 4.x of BackupPC. >>> Quite a show stopper. >>> >>> >>> +-- >>> |This was sent by p.kuen...@pk-its.com via Backup Central. >>> |Forward SPAM to ab...@backupcentral.com. >>> +-- >>> >>> >>> >>> -- >>> ___ >>> BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net >>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users >>> Wiki:http://backuppc.wiki.sourceforge.net >>> Project: http://backuppc.sourceforge.net/ >>> >>> This mail was received via Mail-SeCure System. >>> >>> >>> >>> >>> >>> -- >>> Micha Silver >>> Arava Drainage Authority >>> cell: +972-523-665918 >>> >>> >>> -- >>> >>> ___ >>> BackupPC-users mailing list >>> BackupPC-users
Re: [BackupPC-users] Issue with samba client 4.1.6 and newer
Ok, thanks for the tip about the workaround! On Mon, Jan 4, 2016 at 2:19 PM, Micha Silver wrote: > Thanks for verifying. I hope someone with good regex skills will work out > a solution. It seems newer samba versions return results formatted slightly > differently, so parsing fails. > There is a config setting: $Conf{BackupZeroFilesIsFatal} = 1; (Under > "Schedule"). > I have changed this to '0' so that even tho' I get the warning, the > "partial" backup is still saved. > > On 01/04/2016 11:14 AM, Otto Wincrantz wrote: > > Hi, > > For the record I am experiencing the same issue as you are seeing with a > BP install on a CentOS 7.2 with smbclient 4.2.3. > Backups are working for the 1st share listed in the job, but BackupPC > reports them as failed with "backup failed (No files dumped for share > backuppc$)" > > A resolution would be most welcome... > > Cheers, > > Otto > > > On Mon, Dec 28, 2015 at 2:58 PM, Micha Silver wrote: > >> On 27/12/2015 20:26, pasci wrote: >> >> I tried to add the "verbose" option, and I'm still getting a failure: >> >> Missunderstanding - The verbose option is only ONE of TWO required changes. >> The second one is to fix the regex of Smb.pm. Because my know how to create >> a new filter is really bad, I can't publish the solution for this (I've >> tried, but is still not working). Perhaps someone else has an idea/fixed >> regex? >> >> >> OK, I got it now. >> So this problem parsing the output of smbclient affect both versions 3.x >> and 4.x of BackupPC. >> Quite a show stopper. >> >> >> +-- >> |This was sent by p.kuen...@pk-its.com via Backup Central. >> |Forward SPAM to ab...@backupcentral.com. >> +-- >> >> >> >> -- >> ___ >> BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net >> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users >> Wiki:http://backuppc.wiki.sourceforge.net >> Project: http://backuppc.sourceforge.net/ >> >> This mail was received via Mail-SeCure System. >> >> >> >> >> >> -- >> Micha Silver >> Arava Drainage Authority >> cell: +972-523-665918 >> >> >> -- >> >> ___ >> 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/ >> >> > > > -- > *Otto Wincrantz* > EMEA IT Manager > *O* +*46 31 7504815 <46%2031%207504815>* | *M* +46 733 525862 | *E* > * owinc...@tibco.com * | > *TIBCO Software* | Första Långgatan 26 41328 Gothenburg, Sweden | > <http://www.tibco.com/>www.tibco.com | > > > > The information transmitted in this electronic communication is intended > only for the person or entity to whom it is addressed and may contain > confidential and/or privileged material. Any review, retransmission, > dissemination or other use of or taking of any action in reliance upon this > information by persons or entities other than the intended recipient is > prohibited. > > This mail was received via Mail-SeCure System. > > > -- > > This mail was received via Mail-SeCure System. > > > > > > ___ > BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > > This mail was received via Mail-SeCure System. > > > > > > > -- > > ___ > 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/ > > -- *Otto Wincrantz* EMEA IT Manager *O* +*46 31 7504815* | *M* +46 733 525862
Re: [BackupPC-users] Issue with samba client 4.1.6 and newer
Hi, For the record I am experiencing the same issue as you are seeing with a BP install on a CentOS 7.2 with smbclient 4.2.3. Backups are working for the 1st share listed in the job, but BackupPC reports them as failed with "backup failed (No files dumped for share backuppc$)" A resolution would be most welcome... Cheers, Otto On Mon, Dec 28, 2015 at 2:58 PM, Micha Silver wrote: > On 27/12/2015 20:26, pasci wrote: > > I tried to add the "verbose" option, and I'm still getting a failure: > > Missunderstanding - The verbose option is only ONE of TWO required changes. > The second one is to fix the regex of Smb.pm. Because my know how to create a > new filter is really bad, I can't publish the solution for this (I've tried, > but is still not working). Perhaps someone else has an idea/fixed regex? > > > OK, I got it now. > So this problem parsing the output of smbclient affect both versions 3.x > and 4.x of BackupPC. > Quite a show stopper. > > > +-- > |This was sent by p.kuen...@pk-its.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +-- > > > > -- > ___ > BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > > This mail was received via Mail-SeCure System. > > > > > > -- > Micha Silver > Arava Drainage Authority > cell: +972-523-665918 > > > -- > > ___ > 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/ > > -- *Otto Wincrantz* EMEA IT Manager *O* +*46 31 7504815* | *M* +46 733 525862 | *E* *owinc...@tibco.com * | *TIBCO Software* | Första Långgatan 26 41328 Gothenburg, Sweden | www.tibco.com | The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- ___ 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/
[BackupPC-users] Upgrade to CentOS 7.2 broke SMB backups
Hi, Since upgrading to CentOS 7.2 via yum a few days ago, all my SMB backups are failing for no apparent reason, and with very little information. Rsync backups work fine though. BackupPC log shows: 2015-12-18 09:11:04 full backup started for share backuppc$ 2015-12-18 10:29:04 Got fatal error during xfer (No files dumped for share backuppc$) 2015-12-18 10:29:13 Backup aborted (No files dumped for share backuppc$) Traffic monitoring of the BackupPC host show there is continuous network traffic from the client to the host at the usual rate (about 30MB/s) for a backup, so some sort of data is flowing. Checking processes while the job is running shows the following relevant processes, which appears quite correct: 16585 ?S 0:00 /usr/bin/perl /usr/share/BackupPC/bin/BackupPC_dump -f sql01 16588 ?D 0:10 /usr/bin/perl /usr/share/BackupPC/bin/BackupPC_tarExtract sql01 Backups 3 16589 ?S 0:02 /usr/bin/smbclient \\sql01\Backups -U domain/backupacc -E -d 1 -c tarmode full -TcrX - /proc /sys /mnt /var/lib/yum/yumdb /var/cache/yum /run /tmp Any idea where to start investigating this? Otto Versions: [root@backuppc 1]# uname -a Linux backuppc.domain.com 3.10.0-327.3.1.el7.x86_64 #1 SMP Wed Dec 9 14:09:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root@backuppc 1]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@backuppc 1]# perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi (with 29 registered patches, see perl -V for more detail) [root@backuppc 1]# smbclient -V Version 4.2.3 [root@backuppc 1]# rpm -qa |grep BackupPC BackupPC-3.3.1-1.el7.x86_64 -- ___ 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/