BackupPC-users

Re: [BackupPC-users] problems on Red Hat Enterprise Linux 6.0

2012-04-09 21:24:32
Subject: Re: [BackupPC-users] problems on Red Hat Enterprise Linux 6.0
From: Shang-Lin Chen <schen AT gps.caltech DOT edu>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 09 Apr 2012 18:22:46 -0700
On 04/09/2012 01:20 PM, Pedro M. S. Oliveira wrote:

Check out selinux, use audit2allow to enable ssh root access.

selinux is disabled on this host, and the user on the backup server is logging into the backuppc account on the host and running sudo, so I don't think it needs ssh access to root.

On the other side it appears that you have a dirty shell you may try rsync -e. Another guess is that you are trying to backup a device, socket or other special file and still another one, check the backuppctopdir (wherever its mounted)


I tried adding "-e ssh" to the rsync command before the argument list, and I'm getting the same results.

As a test, I also tried only backing up a single directory containing one file, instead of the entire system. That backup also hung until I killed it, with the Xferlog showing the tcgetattr error, so I don't think there are any special files causing problems.

The backup directory on the BackupPC server should be fine, since the backups from all the other hosts are fine.

Still working on this...

Shang-Lin

Cheers,
Pedro Oliveira
www.linux-geex.com

On Apr 9, 2012 7:18 PM, "Shang-Lin Chen" <schen AT gps.caltech DOT edu> wrote:
I recently upgraded a host from Red Hat Enterprise Linux 4 to Red Hat
Enterprise Linux 6. Since then, BackupPC backups have not been working.

I'm using rsync over ssh. I commented out 'Defaults requiretty' from
visudo on the upgraded host and added '-tt' flags to the ssh command to
get rid of error messages about lack of a tty. Now, when I start a full
backup, the backup begins to run, but 20 hours later, it's still running
until it exits with the message: "Aborting backup up after signal ALRM."
This looks like a timeout. Full backups of this host used to take less
than four hours.

When I look in the last bad XferLog, I see the following:

full backup started for directory / (baseline backup #433)
Running: /usr/bin/ssh -tt -q -x -l backuppc myhostname sudo /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --one-file-system --ignore-times . /
Xfer PIDs are now 15493
Got remote protocol 1701274484
Fatal error (bad version): tcgetattr: Invalid argument

Sent exclude: /proc
Sent exclude: /tmp
Sent exclude: /wavearchive*
Remote[66]: nvalid argument

followed by a very long list of symbols and characters that probably indicate files being backed up, such as:

�I�O�    . �VcOmA  mnt �  K�A
lost+found@ْ_O�A  netC�`O�A  media �  K  dev  yk�O  boot �x`OmA .autorelabel<�`O��  srv �  K�A  opt ;iO         .autofsck<�`O��  etc0 j O�A  backup1 +[jO�A  usr ��iO�A  sys �`O  home �  K  cgroup O�=L  sbin0:>tOmA  miscC�`O�A  var M�`O  selinux �o`O  root �� OhA  www     rcO�A  bin :>tOmA  lib08>tO  opt/sun ;iO�A:  /javadb оiO8  /register.htmlC4(��J��8  demo ξiO�A:  ocs ϾiO:  javadoc ѾiO8  LICENSE^,%��J���
index.html� �  RELEASE-NOTES.html,V�  NOTICE% �  3RDPARTY�+8  bin ;iO�A:  lib ξiO8  demo/README.txtZ 1��J��8    templates ξiO�A�        databases �  programs 8  templates/server.policy� 3��J��:  databases/toursdb.jar�� 4��J8% ξiO�A�% /log 8& service.propertiesu 4��J��8( g0 ξiO�A8& log/logmirror.ctrl03��J���- .ctrl0�- 1.dat �& seg0/c90.dat`�, 311.dat �, 150.dat �, 371.dat �, 1f1.dat �, 31.dat@�, 161.dat �, 251.dat@�, 1b1.dat@�, 2c1.dat �, 101.dat �, 3b1.dat �, a1.dat`�, 111.dat �, 461.dat �, 20.datp�- 41.dat �, 51.dat@�, 4c0.dat��, 230.dat@ �, 1d1.dat �, 4d1.dat��, 361.dat �- 40.dat :, b1.dat 4��J:, 331.dat 3��J�, 260.dat �, 3a1.dat �, 41.dat@�, 200.dat �- d0.dat �, 420.dat0�, 130.dat �, 211.dat �, 10.dat �, 3c0.dat �- 00.dat �, 1a1.dat :, f0.dat 4��J:, 180.dat�3��J�, 221.dat �, 411.dat �, 510.dat �, 121.dat :, c0.dat 4��J:, 281.dat 3��J�, 450.dat0�, 501.dat �, 2a1.dat �, 4f0.dat �, 1c0.dat �, 290.dat �, 480.dat  �, 81.dat �, 1e0.dat �, 400.dat �, 191.dat@�, 2e1.dat �, 3e1.dat �, 4a1.datp�, 141.dat �, 380.dat �, 271.dat �, 391.dat �- 51.dat �, 491.datp�- e1.dat�:, e1.dat 4��J:, 321.dat 3��J�, 2f0.dat �, 441.dat �, 71.dat �, 4b1.dat��, 3d1.dat �, 431.dat :, d1.dat 4��J:, 171.dat 3��J�, 2b1.dat �, 60.dat �, 3f1.dat �, 471.dat 8 programs/vtis ξiO�A� simplemobile 8        demo.html" 3��J���
csfull.cssV58  localcal ξiO�A8  derbylogo128_bluebg.png� 3��J��8  toursdb ξiO�A�  nserverdemo �  scores 8  navbar.html� 3��J���  readme.html� 8  workingwithderby ξiO�A�  simple 8  vtis/README� 2��J��8" java ξiO�A�" data �" sql �" java/org �* /apache �1
/derbyDemo �; /vtis �@ /core �A snapshot �A example 8A core/VTIHelper.java8 2��J���F FlatFileVTI.javaM �F XmlVTI.java�.�F VTITemplate.javaC|�FQueryRow.java� �K VTIHelper.java 5�F XMLRow.javau �F StringColumnVTI.javaa@�A#snapshot/SubscriptionSignature.javaN �K napshotQuery.java| �K ubscription.java�T�A example/VTIs.java� �I DerbyJiraReportVTI.java� �I WorldDBSnapshot.java� �I ApacheServerLogVTI.javat �I SubversionLogVTI.java� �I LineListVTI.java" �I PropertyFileVTI.java� �" data/DerbyJiraReport.xml � �' svn_log.txt�t

Could somebody help figure out what's going on here?

Thanks,
Shang-Lin

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2


_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


-- 
Shang-Lin Chen
Southern California Earthquake Data Center (SCEDC)
System administrator/Programmer
http://www.data.scec.org
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/