#1  
Old 30th November 2007, 19:19
n74jw n74jw is offline
Junior Member
 
Join Date: Oct 2006
Location: Philly, PA USA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to n74jw
Default BackupPC/SSH Error

Hello - I followed Falko's tutorial on how to set up backuppc on Debian (I used Ubuntu) and everything went great except for the first backup of my Ubuntu desktop. I think there is an SSH error somewhere, but I do not know SSH all that well. The tunnel creation process went fine, with the last part not asking me for a password and displaying 'root'.

Here is the XFer Log

full backup started for directory /
Running: /usr/bin/ssh -q -x -l root judas /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /
Xfer PIDs are now 6158
Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)


Where did I go wrong?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 1st December 2007, 13:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Did you take a look at the logs on the client?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th December 2007, 11:25
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hi,
sam problem here: I followed the how to religiously and it's working for my client, except that I'd like to back up the localhost as well and then I get the:
...
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)

the only difference with regards to the tutorial is that I've changed the TopDir variable to my external usb disk (/media/disk/backup) instead of creating a new partition on my server, and of course I've excluded that folder from the backup ones.

I did check the permissions on both the config files and the destination directory and they are both owned by backuppc who's also the user for localhost.

I don't know what I'm missing here....

thanks in advance,

brunus
Reply With Quote
  #4  
Old 28th October 2008, 21:09
rozilla rozilla is offline
Junior Member
 
Join Date: Oct 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have this same problem. One thing I've noticed is on the server as user backuppc when I run

Code:
ssh -l root clientIP whomai
the reply is

Code:
root
However, when I go by hostname

Code:
ssh -l root clientHostName
It prompts the root for a password. Any ideas?
Reply With Quote
  #5  
Old 28th October 2008, 21:41
rozilla rozilla is offline
Junior Member
 
Join Date: Oct 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind. I found the problem. There was a change of IPs for server and client a month ago, and a "rechange" a few days ago. Added the IP to /etc/hosts and recreated the public/private key exchanges, and all is fine now.

For those who are always prompted for a password, try this

Code:
ssh -l root clientIP whoami

and


ssh -l root clientHostName whoami
clientIP: e.g 198.162.2.100
clientHostname: e.g. mediaserver

One of the two should return

Code:
root
while the other returns

Code:
The authenticity of host 'files (198.162.2.123)' can't be established.
RSA key fingerprint is 67:3f:82:e4:1c:6a:71:b8:46:f3:8f:a0:28:c6:f2:25.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'mediaserver' (RSA) to the list of known hosts.

root
After that, run your backup and it should work just mine.
Reply With Quote
  #6  
Old 14th March 2012, 18:44
iosix iosix is offline
Junior Member
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Backup aborted (Unable to read 4 bytes)

Asegurate que el host que tiene instalado el servicio BackupPC tenga un nombre distinto a localhost. Cambia esto en el archivo /etc/hosts
Ejemplo:
# Do not remove the following line, or various programs
# that require network functionality will fail.
IPYOUHOST backuppc (nombre del host)
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

-------------------------------------------------------------------------------
Luego recien crea las firmas digitales y copias las firmas a los host remotos a backapear.

Last edited by iosix; 14th March 2012 at 18:46.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
Fresh Install on Debian cksrealm Installation/Configuration 12 22nd February 2006 16:14
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 19:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.