Haha, if you read the error messages, you will see the problem:

> (ssh-askpass:25663): Gtk-WARNING **: cannot open display: :0.0
> No protocol specified
>
> (ssh-askpass:25664): Gtk-WARNING **: cannot open display: :0.0
> No protocol specified
>
> (ssh-askpass:25665): Gtk-WARNING **: cannot open display: :0.0
> Tar exited with error 65280 () status
> tarCreate: Unable to write to output file (Connection reset by peer)
> restore failed: BackupPC_tarCreate failed
Ask yourself, why is ssh-askpass running if you already have 
passwordless logins working? Answer... you don't have passwordless login 
working.


On 9/10/2016 23:21, Alain Mouette wrote:
> Hi,
> I am new here and I am still experimenting with BackupPC, but I am worried
> too about this problem...
>
> This is a common scenario where a machine goes down, nobody can help?
Sure, but if you are responsible for managing multiple linux machines, 
including the backup/restore of those machines, then you really should 
have some idea on what you are doing, and how to diagnose simple problems.

Have you looked at the logs like /var/log/auth.info which probably has a 
record of the failed login?
No conspiracy, just many people get tired or trying to help people that 
can't read the documentation. While many OSS has really poor/old or no 
documentation, BackupPC is very well documented.

For all those watching on the side lines, test your backup *and* restore 
on a regular basis, and make sure you have documented your own 
environment. Get it working before you need it. When the crap hits the 
fan, there will be enough panic without also having to try and work out 
how your own backup system works.

Sorry, my rant is over ... must be having a bad night...

Regards,
Adam

>
> -----
> Alain Mouette
>
>
>
> A 7 de outubro de 2016 14:16:37 [email protected] escreveu:
>
>> One of my hosts died completely and needs replacing, but in the meantime I
>> had to restorer some of the files to the localhost where backuppc is
>> running.
>>
>> I used the GUI to set up the restore job, but it immediately failed with
>> the usual suspect: ssh problems. Since I'd had to solve that problem
>> before, making sure that the passwordless ssh login between host and
>> client worked.
>>
>> In this case, backuppc is trying to ssh to localhost.
>>
>> I went back to the command line and set up ssh so that it can now
>> passwordless-ssh to itself either as root or as backuppc. I tested both
>> cases with all combinations:
>>
>> sudo -u backuppc ssh [email protected] whoami
>> sudo -u backuppc ssh backuppc@localhost whoami
>> sudo -u backuppc ssh backuppc@gondor whoami
>>
>> and they all work nicely.
>>
>> However this seems to have made backuppc's problems worse, and now I get
>> the error appearing not just once as before, but 3 times as copied from
>> the log file below:
>>
>> Contents of file
>> /media/adam/WDPassport2T/backuppc/pc/localhost/RestoreLOG.8.z, modified
>> 2016-10-07 16:34:22
>>
>> Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x -p
>> --numeric-owner --same-owner -v -f - -C
>> Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h fangorn -n 72 -s
>> /cygdrive/d/Documents -t -r / -p /home/adam/fangorn/ /
>> Xfer PIDs are now 25659,25660
>> No protocol specified
>>
>> (ssh-askpass:25663): Gtk-WARNING **: cannot open display: :0.0
>> No protocol specified
>>
>> (ssh-askpass:25664): Gtk-WARNING **: cannot open display: :0.0
>> No protocol specified
>>
>> (ssh-askpass:25665): Gtk-WARNING **: cannot open display: :0.0
>> Tar exited with error 65280 () status
>> tarCreate: Unable to write to output file (Connection reset by peer)
>> restore failed: BackupPC_tarCreate failed
>>
>> So has anyone seen this before? Is there some backuppc-foo that I need to
>> do, or is ssh just not set up properly still?
>>
>> Regards
>> Adam
>>
>>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to