after backuppc server upgrade from hardy to intrepid, windows backups all fail

Bug #283652 reported by Divan
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
backuppc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,

I upgraded our backup server running backuppc 8.04 to 8.10 using the recommended ubuntu method.

After upgrade all rsync, rsyncd backups still work however all smb backups of our windows pcs/server fail with the following error message:

"File /var/lib/backuppc/pc/zaj-karsenm/XferLOG.bad (Extracting only Errors)
 Contents of file /var/lib/backuppc/pc/zaj-karsenm/XferLOG.bad, modified 2008-10-15 11:03:46 (Extracting only Errors)
Running: /usr/bin/smbclient \\\\zaj-karsenm\\C\$ -U ZAJ-KARSENM\\administrator -E -N -d 1 -c tarmode\ full -TcN /var/lib/backuppc/pc/zaj-karsenm/timeStamp.level0 - /Kerridge /Documents\ and\ Settings/mukesh
incr backup started back to 2008-10-07 17:00:00 (backup #160) for share C$
Xfer PIDs are now 17926,17925
[ skipped 1 lines ]
Anonymous login successful
[ skipped 1 lines ]
tree connect failed: NT_STATUS_ACCESS_DENIED
Anonymous login successful
[ skipped 1 lines ]
tree connect failed: NT_STATUS_ACCESS_DENIED
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal
Got fatal error during xfer (tree connect failed: NT_STATUS_ACCESS_DENIED)
Backup aborted (tree connect failed: NT_STATUS_ACCESS_DENIED)"

It looks like the samba portion of 8.10 on backuppc is no longer passing the password correctly and instead attempts to login remotely.

If I manually run "usr/bin/smbclient \\\\zaj-karsenm\\C\$ -U ZAJ-KARSENM\\administrator" and put in the password as per the backuppc .pl file it logs in correctly.

Also this if I login via konqueror from this same server it logs in succesfully.

Any idea - this is obviously a rather serious bug.

Revision history for this message
Divan (divan-santana) wrote :

Ok - here is the fix/problem for this:

The new version has the new smbclient package.

backuppc(both versions shipped with 8.04 and 8.10) by default backs up smb pcs using /usr/bin/smbclient -N for INCR FULL and Restore commands.

The new smbclient package if you use the -N switch it does not pass the password through hence the backups fail.

Looks like that change from the old smbclient to the new one.

FIX:
Either smbclient package needs to be changed (that -N passes the password command still) or the default config.pl file shipped with the latest backuppc on intrepid needs to be modified and the -N of smbclient portion removed.

Its a simple fix, can some develop fix this so backuppc actually works in 8.10?

Revision history for this message
David (david-kahn) wrote :

This is certainly a bug in smbclient 3.2.3, that needs to be fixes ASAP, as having backups not working is a critical bug.

Revision history for this message
Divan (divan-santana) wrote :

Its confirmed as have tested this on multiple systems and more than once person has confirmed this bug.
There is a work around fix for it and I believe to release a fix should be rather simple.

Changed in backuppc:
status: New → Confirmed
Revision history for this message
BiGG D (darbysgoodies) wrote :

I also seem to be running into this issue... Several posts in this thread allude to a workarround, but I havent seen anything in here that seemingly will resolve.

Aside from downgrading to 8.04, Is there a work arround for this ?

Thanks,
-D

Revision history for this message
David (david-kahn) wrote :

I believe that the fix you need is to edit /etc/backuppc/config.pl. There are three strings:

    $Conf{SmbClientFullCmd}
    $Conf{SmbClientIncrCmd}, and
    $Conf{SmbClientRestoreCmd}

which control Samba backups and restore. In all three strings remove the "-N" flag.

My understanding that the flag is no longer needed, because the login prompt is automatically suppressed because backuppc passes the password through the PASSWD environment variable. I reported separately a bug (https://bugs.launchpad.net/bugs/297025) in the new version of smbclient that prevents this password from being passed if the -N flag is used.

Let me know if this doesn't work.

Revision history for this message
Simon Déziel (sdeziel) wrote :

A lot changed in BackupPC and Samba since the problem was originally reported. Hardy and Intrepid are long EOL.
Are you still affected by this bug in supported releases?

Changed in backuppc (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for backuppc (Ubuntu) because there has been no activity for 60 days.]

Changed in backuppc (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.