Greetings -
This is to follow-up the problem I wrote about last week with the subject
Connection failed, nt status bad network name. I am not receiving list
emails for some reason so I can't respond with my solution and keep the
message thread.
The initial symptoms of the problem I was having was showing that backuppc
was showing ping failures to the network host name, and a message of
NT_STATUS_BAD_NETWORK_NAME. This led me to believe that I had a bad name
resolution setup on my network. That was not the case, and the message that
backuppc provides stating that ping to host have failed, is clearly a lie,
and as a result is very misleading when trying to diagnose the true problem.
In my research I saw references to invoking backuppc from the command line
to get more verbose error. So I tried that, and saw that pings were
actually succeeding, even though the web interface was continuing to show
the ping failure error rate climbing.
bash-4.1$ /usr/share/BackupPC/bin/BackupPC_dump -f -v jab-opti755
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 jab-opti755
cmdSystemOrEval: finished: got output PING jab-opti755.mei.lan
(192.168.112.125) 56(84) bytes of data.
64 bytes from jab-opti755.mei.lan (192.168.112.125): icmp_seq=1 ttl=128
time=0.125 ms
--- jab-opti755.mei.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.125/0.125/0.125/0.000 ms
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 jab-opti755
cmdSystemOrEval: finished: got output PING jab-opti755.mei.lan
(192.168.112.125) 56(84) bytes of data.
64 bytes from jab-opti755.mei.lan (192.168.112.125): icmp_seq=1 ttl=128
time=0.252 ms
--- jab-opti755.mei.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.252/0.252/0.252/0.000 ms
CheckHostAlive: returning 0.252
Running: /usr/bin/smbclient jab-opti755\\f -U jeffb -E -N -d 1 -c
tarmode\ full -Tc -
full backup started for share f
started full dump, share=f
Xfer PIDs are now 12258,12257
xferPids 12258,12257
cmdExecOrEval: about to exec /usr/bin/smbclient jab-opti755\\f -U
jeffb -E -N -d 1 -c tarmode\ full -Tc -
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows Vista (TM) Ultimate 6002 Service Pack 2]
Server=[Windows Vista (TM) Ultimate 6.0]
tree connect failed: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows Vista (TM) Ultimate 6002 Service Pack 2]
Server=[Windows Vista (TM) Ultimate 6.0]
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 (No files dumped for share f)
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 jab-opti755
cmdSystemOrEval: finished: got output PING jab-opti755.mei.lan
(192.168.112.125) 56(84) bytes of data.
64 bytes from jab-opti755.mei.lan (192.168.112.125): icmp_seq=1 ttl=128
time=0.268 ms
--- jab-opti755.mei.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.268/0.268/0.268/0.000 ms
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 jab-opti755
cmdSystemOrEval: finished: got output PING jab-opti755.mei.lan
(192.168.112.125) 56(84) bytes of data.
64 bytes from jab-opti755.mei.lan (192.168.112.125): icmp_seq=1 ttl=128
time=0.209 ms
--- jab-opti755.mei.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.209/0.209/0.209/0.000 ms
CheckHostAlive: returning 0.209
Backup aborted (No files dumped for share f)
Not saving this as a partial backup since it has fewer files than the prior
one (got 0 and 0 files versus 0)
dump failed: No files dumped for share f
From the backuppc user, I tried the following and was allowed access. Hmm,
why can't backuppc get access to run the backup?
bash-4.1$ smbclient -L jab-opti755 -W workgroup -U jeffb
Enter jeffb's password:
Domain=[JAB-OPTI755] OS=[Windows Vista (TM) Ultimate 6002 Service Pack 2]
Server=[Windows Vista (TM) Ultimate 6.0]
Sharename Type Comment
- ---
ADMIN$ Disk Remote Admin
C$ Disk Default share
D$ Disk Default share
F Disk
F$ Disk Default share
IPC$ IPC Remote IPC
Domain=[JAB-OPTI755] OS=[Windows Vista (TM) Ultimate 6002 Service Pack 2]
Server=[Windows Vista (TM) Ultimate 6.0]
Server Comment
- ---
Workgroup Master
- ---
In the end I made one change to the host configuration file, and one change
to the server configuration file. The host change that I made was the dhcp
flag. I unchecked the box (dhcp=0). This change eliminated the bad network
name error, but did not resolve the issue. Instead it just showed a new
network error NT_STATUS_ACCESS_DENIED. This indicated to me that somewhere
there was a permissions problem.
Searching through Google results on this showed a lot of discussion about