SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Can anyone explain this error when running rdiff-backup from
Author Message
Post Can anyone explain this error when running rdiff-backup from 
I realise this isn't really an rdiff-backup problem but I'm rather
stumped by this problem.

I have an rdiff-backup that runs as a cron job, "crontab -l" shows:-

25 02 * * * /usr/local/bin/rdiff-backup /home/isbd chris < at > cheddar.halon.org.uk::backups/isbd


When run from the command line this works fine:-

chris$ /usr/local/bin/rdiff-backup /home/isbd
chris < at > cheddar.halon.org.uk::backups/isbd
/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Warning: Local version 1.2.8 does not match remote version 1.2.5.


But when run as a cron job (from my crontab) I get the following errors
(mailed to me):-

/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

ssh -C chris < at > cheddar.halon.org.uk rdiff-backup --server

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system. See the man page for more
information on this. This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (1.2.Cool.



While I'm about it will moving to Version 1.3.3 get rid of all those
warning messages?

--
Chris Green

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Can anyone explain this error when running rdiff-backup from 
mån 2010-11-22 klockan 13:41 +0000 skrev Chris G:
I have an rdiff-backup that runs as a cron job, "crontab -l" shows:-

25 02 * * * /usr/local/bin/rdiff-backup /home/isbd chris < at > cheddar.halon.org.uk::backups/isbd


When run from the command line this works fine:-

chris$ /usr/local/bin/rdiff-backup /home/isbd
chris < at > cheddar.halon.org.uk::backups/isbd
/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Warning: Local version 1.2.8 does not match remote version 1.2.5.


But when run as a cron job (from my crontab) I get the following errors
(mailed to me):-

/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Fatal Error: Truncated header string (problem probably originated remotely)
...

When you are logged in interactively, how do you auth against
chris < at > cheddar.halon.org.uk? A ssh-key perhaps? If so, is the ssh-key
protected by a passphrase?

// Andreas

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Can anyone explain this error when running rdiff-backup from 
On Mon, Nov 22, 2010 at 02:58:14PM +0100, Andreas Olsson wrote:
mn 2010-11-22 klockan 13:41 +0000 skrev Chris G:
I have an rdiff-backup that runs as a cron job, "crontab -l" shows:-

25 02 * * * /usr/local/bin/rdiff-backup /home/isbd chris < at > cheddar.halon.org.uk::backups/isbd


When run from the command line this works fine:-

chris$ /usr/local/bin/rdiff-backup /home/isbd
chris < at > cheddar.halon.org.uk::backups/isbd
/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Warning: Local version 1.2.8 does not match remote version 1.2.5.


But when run as a cron job (from my crontab) I get the following errors
(mailed to me):-

/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Fatal Error: Truncated header string (problem probably originated remotely)
...

When you are logged in interactively, how do you auth against
chris < at > cheddar.halon.org.uk? A ssh-key perhaps? If so, is the ssh-key
protected by a passphrase?

Of course! Thanks. I used to have passwordless login which used to use
an ssh-key without a passphrase but a while ago I changed to using a
passphrase (the same as my login so I don't have to enter the
passphrase) so of course the cron job doesn't work any more.

Are there any ways to work around this problem so that the cron job can
work but I can still have a passphrase protected ssh-key?

--
Chris Green

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Can anyone explain this error when running rdiff-backup from 
On Monday, November 22, 2010, 15:10:26, Chris G wrote:

Are there any ways to work around this problem so that the cron job can
work but I can still have a passphrase protected ssh-key?

Not really - and even if there was a way, it would be no more secure
than having an unprotected SSH key in the first place.

--
< Jernej Simoni ><><><><>< http://eternallybored.org/ >

Opportunity always knocks at the least appropriate moment.
-- Law of Adult Opportunity


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Can anyone explain this error when running rdiff-backup from 
On Mon, Nov 22, 2010 at 03:17:15PM +0100, Jernej Simončič wrote:
On Monday, November 22, 2010, 15:10:26, Chris G wrote:

Are there any ways to work around this problem so that the cron job can
work but I can still have a passphrase protected ssh-key?

Not really - and even if there was a way, it would be no more secure
than having an unprotected SSH key in the first place.

Pity, OK, thanks.

--
Chris Green

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Can anyone explain this error when running rdiff-backup from 
mån 2010-11-22 klockan 13:41 +0000 skrev Chris G:
chris$ /usr/local/bin/rdiff-backup /home/isbd
chris < at > cheddar.halon.org.uk::backups/isbd
/usr/local/lib/python2.6/dist-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
Warning: Local version 1.2.8 does not match remote version 1.2.5.

...

While I'm about it will moving to Version 1.3.3 get rid of all those
warning messages?

Regarding the Deprecation Warning, see http://savannah.nongnu.org/bugs/?26064

A quick look at the 1.3.3 source suggests that the issue still remains.

Regarding the Warning about Version differences, you should be able to
hide that by modifying the level of verbosity. Based on
http://www.nongnu.org/rdiff-backup/FAQ.html#verbosity you might want to
go with -v1, once you are confidant in the backup working properly.

// Andreas

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB