LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2020, 08:49 PM   #1
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 47

Rep: Reputation: Disabled
Backuppc installation and configuration - Got fatal error during xfer (Unable to read 4 bytes)


Good Day

Im trying to get backuppc running on raspbian with a raid so i can backup a couple of laptops on the home network.

Unfortunately having made the install and from the browser interface when i run a backup it pings sucessfully however soon fails with "Got fatal error during xfer (Unable to read 4 bytes)"

Im thinking i have not understood something and have a configuration wrong.

here is the process i went through to install.

Get raspbian going

Write img to sdisk

touch ssh on boot

Create Raid

Code:
Sudo apt-get install mdadm
Sudo blkid
sudo mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sda /dev/sdb
cat /proc/mdstat
sudo -i
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
exit
sudo mkfs.ext4 -v -m .1 -b 4096 -E stride=32,stripe-width=64 /dev/md0

sudo mount /dev/md0 /mnt
sudo blkid
copy the UUID
Code:
sudo cp /etc/fstab /etc/fstab.bak
sudo nano /etc/fstab
edit and add - UUID=[your_uuid] /mnt ext4 defaults 0 0

Install rsync-bpc

Code:
sudo apt-get install libacl1-dev
wget https://github.com/backuppc/rsync-bpc/releases/download/3.1.2.1/rsync-bpc-3.1.2.1.tar.gz
tar xvzf rsync-bpc-3.1.2.1.tar.gz
cd rsync-bpc-3.1.2.1
./configure
make
sudo make install
Install BackupPC-XS

Code:
 wget https://github.com/backuppc/backuppc-xs/releases/download/0.59/BackupPC-XS-0.59.tar.gz
tar xvzf BackupPC-XS-0.59.tar.gz
cd BackupPC-XS-0.59/
perl Makefile.PL
   make
   make test
   make install
Install backuppc

Code:
Sudo apt-get install backuppc

Set up SSH certs
Code:
sudo su - backuppc

ssh-keygen
ssh-copy-id julie@192.168.1.103
ssh julie@192.168.1.103
Wrangle Rsync on MAC book

Code:
/Library/LaunchDaemons/org.samba.rsync.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Disabled</key>
        <false/>
        <key>Label</key>
        <string>org.samba.rsync</string>
        <key>Program</key>
        <string>/usr/bin/rsync</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/bin/rsync</string>
                <string>--daemon</string>
                <string>--config=/etc/rsync/rsyncd.conf</string>
        </array>
        <key>inetdCompatibility</key>
        <dict>
                <key>Wait</key>
                <false/>
        </dict>
                <key>Sockets</key>
                <dict>
                        <key>Listeners</key>
                        <dict>
                                <key>SockServiceName</key>
                                <string>rsync</string>
                                <key>SockType</key>
                                <string>stream</string>
                        </dict>
                </dict>
</dict>
</plist>
Code:
/etc/rsync/rsyncd.conf as specified in the previous XML configuration file:
pid file = /var/run/rsyncd.pid
*
motd=/etc/rsync/rsyncd.motd
uid = nobody
gid = nobody
use chroot = yes
max connections = 5
syslog facility = local5
*
[julie]
 path = /Users/julie
 comment = julies's Home
 uid = julie
 gid = admin
 list = yes
 read only = yes
 auth users = backuppc
 secrets file = /etc/rsync/rsyncd.secrets
 hosts allow = 192.168.1.0/24 1000:10:10::/64
Do you see a blinding error?

is it a permissions issue.

Thank in advance
 
Old 03-26-2020, 04:55 AM   #2
Plankt0n
LQ Newbie
 
Registered: Mar 2020
Distribution: RHEL/CentOS
Posts: 5

Rep: Reputation: Disabled
Can you try to SSH to the client you want to backup from the backuppc server? Does it ask you to verify the key? If it does and work fine, can you try to do the backup job again after that? I also had these issues and was told it could be related to the fingerprint message that you need to manually accept once. I however gave up on backuppc and ran with Bareos (bacula fork) instead.

Edit: oh and do the ssh from the backuppc user not root!

Last edited by Plankt0n; 03-26-2020 at 04:57 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Got fatal error during xfer (inet connect: Connection timed out): Backuppc ERROR sanjay87 Linux - Server 0 05-15-2012 01:38 AM
Installing BackupPC : The requested URL /backuppc was not found on this server jonaskellens Linux - Newbie 7 12-17-2009 02:24 AM
backuppc "Error: Unable to read config.pl or language strings!!" neilneil2000 Linux - Software 4 06-16-2008 05:07 PM
LXer: BackupPC Installation And Configuration LXer Syndicated Linux News 0 06-19-2006 10:33 AM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration