Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
rsyncd is listed there as you expected, but it had no status when I saw it. I told it to start, and it produced some garbage about "service started then stopped" and goes on about some services like logging having that as standard. In any case, the path to executable field says "C:\cygwin\bin\cygrunsrv.exe", which seems very wrong for rsync? More brilliance, the service claims to stop within 2 seconds of running it, which should not be the case for either cygrunsrv or rsync. Thanks yet again, Jim On 12/14/06, Jason Hughes <[EMAIL PROTECTED]> wrote: > From what I can tell, all that does is insert and remove registry > entries from the services list in Windows. cygrunsrv has a separate > command for stopping and starting services, and I'm not sure (without > testing it) if removing will actually stop the service as well. > cygrunsrv -I rsyncd -d > The definitive way to tell if a service is running is to open > Settings/ControlPanel/AdministrativeTools/Services and scroll down until > you see 'rsyncd' and a status next to it. Right click on it to manually > start/stop the service. This definitely works. > > Re: File::RsyncP, I think that is the most recent version. > > Hope this helps, > JH > > Jim McNamara wrote: > > I used: > > > > cygrunsrv --remove rsyncd > > > > and then checked with: > > cygrunsrv --list > > > > which only showed sshd running. I still get the chroot error, and it > > seems that rsync not running should produce an error long before > > anything about chroot. Since cygwin shell seems to be crap (no > > /etc/init.d/rsyncd) and ps aux shows nothing more than bash running, > > how can I be certain rsyncd is stopped? > > > > I had updated the server to File-RsyncP-0.68 when I started this last > > week. I think that is current enough? > > > > Thanks again, > > Jim > > > > > > On 12/14/06, Jason Hughes <[EMAIL PROTECTED]> wrote: > >> You may need to stop/restart the rsyncd service to make it read the > >> rsyncd.conf file on windows. > >> > >> I wanted to mention that there was some bug that I ran into (you're not > >> seeing it yet) when the backuppc was using protocol version 26 and > >> windows running rsyncd. You might want to update the server's > >> File::RsyncP in cpan. > >> > >> JH > >> > >> > >> Jim McNamara wrote: > >> > And the new error makes even less sense to me, > >> > > >> > Contents of file /var/lib/backuppc/pc/mas90-server/XferLOG.bad.z, > >> > modified 2006-12-14 22:12:40 > >> > > >> > Connected to mas90-server:873, remote version 29 > >> > Negotiated protocol version 26 > >> > Error connecting to module UPC at mas90-server:873: chroot failed > >> > Got fatal error during xfer (chroot failed) > >> > Backup aborted (chroot failed) > >> > > >> > > >> > > >> > I don't have chroot enabled anymore, it is completely absent from the > >> > rsyncd.conf on the winbox. > >> > > >> > > >> > > >> > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
From what I can tell, all that does is insert and remove registry entries from the services list in Windows. cygrunsrv has a separate command for stopping and starting services, and I'm not sure (without testing it) if removing will actually stop the service as well. The definitive way to tell if a service is running is to open Settings/ControlPanel/AdministrativeTools/Services and scroll down until you see 'rsyncd' and a status next to it. Right click on it to manually start/stop the service. This definitely works. Re: File::RsyncP, I think that is the most recent version. Hope this helps, JH Jim McNamara wrote: > I used: > > cygrunsrv --remove rsyncd > > and then checked with: > cygrunsrv --list > > which only showed sshd running. I still get the chroot error, and it > seems that rsync not running should produce an error long before > anything about chroot. Since cygwin shell seems to be crap (no > /etc/init.d/rsyncd) and ps aux shows nothing more than bash running, > how can I be certain rsyncd is stopped? > > I had updated the server to File-RsyncP-0.68 when I started this last > week. I think that is current enough? > > Thanks again, > Jim > > > On 12/14/06, Jason Hughes <[EMAIL PROTECTED]> wrote: >> You may need to stop/restart the rsyncd service to make it read the >> rsyncd.conf file on windows. >> >> I wanted to mention that there was some bug that I ran into (you're not >> seeing it yet) when the backuppc was using protocol version 26 and >> windows running rsyncd. You might want to update the server's >> File::RsyncP in cpan. >> >> JH >> >> >> Jim McNamara wrote: >> > And the new error makes even less sense to me, >> > >> > Contents of file /var/lib/backuppc/pc/mas90-server/XferLOG.bad.z, >> > modified 2006-12-14 22:12:40 >> > >> > Connected to mas90-server:873, remote version 29 >> > Negotiated protocol version 26 >> > Error connecting to module UPC at mas90-server:873: chroot failed >> > Got fatal error during xfer (chroot failed) >> > Backup aborted (chroot failed) >> > >> > >> > >> > I don't have chroot enabled anymore, it is completely absent from the >> > rsyncd.conf on the winbox. >> > >> > >> > >> > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
I used: cygrunsrv --remove rsyncd and then checked with: cygrunsrv --list which only showed sshd running. I still get the chroot error, and it seems that rsync not running should produce an error long before anything about chroot. Since cygwin shell seems to be crap (no /etc/init.d/rsyncd) and ps aux shows nothing more than bash running, how can I be certain rsyncd is stopped? I had updated the server to File-RsyncP-0.68 when I started this last week. I think that is current enough? Thanks again, Jim On 12/14/06, Jason Hughes <[EMAIL PROTECTED]> wrote: > You may need to stop/restart the rsyncd service to make it read the > rsyncd.conf file on windows. > > I wanted to mention that there was some bug that I ran into (you're not > seeing it yet) when the backuppc was using protocol version 26 and > windows running rsyncd. You might want to update the server's > File::RsyncP in cpan. > > JH > > > Jim McNamara wrote: > > And the new error makes even less sense to me, > > > > Contents of file /var/lib/backuppc/pc/mas90-server/XferLOG.bad.z, > > modified 2006-12-14 22:12:40 > > > > Connected to mas90-server:873, remote version 29 > > Negotiated protocol version 26 > > Error connecting to module UPC at mas90-server:873: chroot failed > > Got fatal error during xfer (chroot failed) > > Backup aborted (chroot failed) > > > > > > > > I don't have chroot enabled anymore, it is completely absent from the > > rsyncd.conf on the winbox. > > > > > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
You may need to stop/restart the rsyncd service to make it read the rsyncd.conf file on windows. I wanted to mention that there was some bug that I ran into (you're not seeing it yet) when the backuppc was using protocol version 26 and windows running rsyncd. You might want to update the server's File::RsyncP in cpan. JH Jim McNamara wrote: > And the new error makes even less sense to me, > > Contents of file /var/lib/backuppc/pc/mas90-server/XferLOG.bad.z, > modified 2006-12-14 22:12:40 > > Connected to mas90-server:873, remote version 29 > Negotiated protocol version 26 > Error connecting to module UPC at mas90-server:873: chroot failed > Got fatal error during xfer (chroot failed) > Backup aborted (chroot failed) > > > > I don't have chroot enabled anymore, it is completely absent from the > rsyncd.conf on the winbox. > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
It was a mixture of both! Stealing the configs from a pure linux rsync backuppc, I had: $Conf{RsyncShareName} = '/UPC'; Which I now changed to $Conf{RsyncShareName} = 'UPC'; And the new error makes even less sense to me, Contents of file /var/lib/backuppc/pc/mas90-server/XferLOG.bad.z, modified 2006-12-14 22:12:40 Connected to mas90-server:873, remote version 29 Negotiated protocol version 26 Error connecting to module UPC at mas90-server:873: chroot failed Got fatal error during xfer (chroot failed) Backup aborted (chroot failed) I don't have chroot enabled anymore, it is completely absent from the rsyncd.conf on the winbox. Thanks, Jim On 12/14/06, Randy Barlow <[EMAIL PROTECTED]> wrote: > On Thursday 14 December 2006 21:50, Jim McNamara wrote: > > [UPC] > > /cygdrive/f/UPC > > hosts allow = 192.168.2.1 > > strict modes = false > > > Connected to mas90-server:873, remote version 29 > > Negotiated protocol version 26 > > Error connecting to module /UPC/ at mas90-server:873: Unknown module > > '/UPC/' Got fatal error during xfer (Unknown module '/UPC/') > > Backup aborted (Unknown module '/UPC/') > > > It seems to me that module /UPC/ is pretty well defined, but obviously > > this is new territory to me. Do I need to define it differently > > somehow? > > In your per PC config for this machine (or in your general config if not using > per PC config), do you have > > $Conf{RsyncShareName} = '/UPC/'; > > or do you have > > $Conf{RsyncShareName} = 'UPC'; > > ? For rsyncd it should be the latter, not the former! > > R > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/backuppc-users > http://backuppc.sourceforge.net/ > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
On Thursday 14 December 2006 21:50, Jim McNamara wrote: > [UPC] > /cygdrive/f/UPC > hosts allow = 192.168.2.1 > strict modes = false > Connected to mas90-server:873, remote version 29 > Negotiated protocol version 26 > Error connecting to module /UPC/ at mas90-server:873: Unknown module > '/UPC/' Got fatal error during xfer (Unknown module '/UPC/') > Backup aborted (Unknown module '/UPC/') > It seems to me that module /UPC/ is pretty well defined, but obviously > this is new territory to me. Do I need to define it differently > somehow? In your per PC config for this machine (or in your general config if not using per PC config), do you have $Conf{RsyncShareName} = '/UPC/'; or do you have $Conf{RsyncShareName} = 'UPC'; ? For rsyncd it should be the latter, not the former! R - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
I tried rsyncd, and still encounter problems. Fortunately they are different problems, so hopefully there is a known solution. Here is the current rsyncd.conf on the windows box: [UPC] /cygdrive/f/UPC hosts allow = 192.168.2.1 strict modes = false [apps] /cygdrive/g/apps hosts allow = 192.168.2.1 strict modes = false I tried adding the chroot option, and also closed the path with another slash (/cygdrive/f/UPS/) and still fail. The error that backuppc reports is: Connected to mas90-server:873, remote version 29 Negotiated protocol version 26 Error connecting to module /UPC/ at mas90-server:873: Unknown module '/UPC/' Got fatal error during xfer (Unknown module '/UPC/') Backup aborted (Unknown module '/UPC/') I did find that the win box and debian box had different versions of rsync, which I saw could often be a problem. As the win box runs 2.6.6, I compiled 2.6.6 in /usr/local on debian. I notice the backuppc config.pl file asks for the location of rsync on the client, which shouldn't apply with rsyncd as the client isn't connected to in a ssh tunnel. My config.pl file for this machine now has: # # Path to rsync executable on the client # $Conf{RsyncClientPath} = '/usr/local/bin/rsync'; as that is the matching 2.6.6 version of rsync for the win box. It seems to me that module /UPC/ is pretty well defined, but obviously this is new territory to me. Do I need to define it differently somehow? Thanks for your time, Jim On 12/12/06, Jim McNamara <[EMAIL PROTECTED]> wrote: > I got the impression that this problem may have been fixed in a newer > version of backuppc, would upgrading help? > > I'll try reconfiguring backuppc to do rsyncd instead of rsync if not. > > Thanks, > Jim > > On 12/12/06, Carl Wilhelm Soderstrom <[EMAIL PROTECTED]> wrote: > > On 12/11 09:43 , Jim McNamara wrote: > > > I am in the process of switching a backup from using smbclient to > > > rsync, as it is taking greater than 72 hours to perform a backup. The > > > backuppc is running debian stable, backuppc v 2.1.1, and the client > > > machine is windows server 2003 with cygwin on it. I have preshared the > > > ssh key from the server to the client, and it is able to ssh in > > > without any questions: > > > > I don't know if it's still true, but it used to be that cygwin ssh+rsync > > didn't work. Some bug in there somewhere. > > > > try using cygwin rsyncd instead. > > > > -- > > Carl Soderstrom > > Systems Administrator > > Real-Time Enterprises > > www.real-time.com > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > BackupPC-users mailing list > > BackupPC-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/backuppc-users > > http://backuppc.sourceforge.net/ > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
I got the impression that this problem may have been fixed in a newer version of backuppc, would upgrading help? I'll try reconfiguring backuppc to do rsyncd instead of rsync if not. Thanks, Jim On 12/12/06, Carl Wilhelm Soderstrom <[EMAIL PROTECTED]> wrote: > On 12/11 09:43 , Jim McNamara wrote: > > I am in the process of switching a backup from using smbclient to > > rsync, as it is taking greater than 72 hours to perform a backup. The > > backuppc is running debian stable, backuppc v 2.1.1, and the client > > machine is windows server 2003 with cygwin on it. I have preshared the > > ssh key from the server to the client, and it is able to ssh in > > without any questions: > > I don't know if it's still true, but it used to be that cygwin ssh+rsync > didn't work. Some bug in there somewhere. > > try using cygwin rsyncd instead. > > -- > Carl Soderstrom > Systems Administrator > Real-Time Enterprises > www.real-time.com > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/backuppc-users > http://backuppc.sourceforge.net/ > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] rsync error ssh_askpass w/ cygwin
On 12/11 09:43 , Jim McNamara wrote: > I am in the process of switching a backup from using smbclient to > rsync, as it is taking greater than 72 hours to perform a backup. The > backuppc is running debian stable, backuppc v 2.1.1, and the client > machine is windows server 2003 with cygwin on it. I have preshared the > ssh key from the server to the client, and it is able to ssh in > without any questions: I don't know if it's still true, but it used to be that cygwin ssh+rsync didn't work. Some bug in there somewhere. try using cygwin rsyncd instead. -- Carl Soderstrom Systems Administrator Real-Time Enterprises www.real-time.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
[BackupPC-users] rsync error ssh_askpass w/ cygwin
Hello all! I found some mails in the archive that relates to this problem, but what seemed to be the solution didn't work for me. I'd like to show what's happening, and hope to get some input on what the problem is. Here is the info I found in the archives: http://sourceforge.net/mailarchive/message.php?msg_id=11630857 - Sam Przyswa writes: > I had a BackupPC 2.1.0 version running fine on a machine, I installed a > new machine with the 2.1.1 version, copy all my setup machine > ./pc//config.pl files create the .ssh/authorized_keys, then when I > try to backup machine with the "rsync" i got now the error: > > Fatal error (bad version): ssh_askpass: exec(/usr/bin/ssh-askpass): No > such file or directory > > The "rsyncd" work fine on the same machine. > > I never got that before !? > > Thanks in advance for your help. Obviously this is a problem with the ssh setup. When BackupPC_dump tries to run ssh, instead of the getting the rsync version number instead it gets this string: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Perhaps you have to manually run ssh as the backuppc user to accept the remote system"s identity. Craig --- Craig's answer seemed true enough, simply that one of the pair of machines involved in the ssh session didn't have the fingerprint of the other machine stored. I am in the process of switching a backup from using smbclient to rsync, as it is taking greater than 72 hours to perform a backup. The backuppc is running debian stable, backuppc v 2.1.1, and the client machine is windows server 2003 with cygwin on it. I have preshared the ssh key from the server to the client, and it is able to ssh in without any questions: mailbox:~$ whoami backuppc mailbox:~$ ssh -l Administrator 192.168.3.1 Last login: Thu Dec 7 22:28:10 2006 from 192.168.2.1 [EMAIL PROTECTED] ~ $ Obviously that goes through cleanly, and I can reverse the process too: [EMAIL PROTECTED] ~ $ ssh -l backuppc 192.168.2.1 Password: Linux mailbox 2.6.12.4-take1 #1 Tue Oct 18 14:34:24 EDT 2005 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. Last login: Thu Dec 7 22:28:42 2006 from mas90-server [EMAIL PROTECTED]:~$ Going from client to server does ask for a password, but that shouldn't be a problem, as ssh is never used in that direction. Here is the problem when I try to run a rsync backup: Running: /usr/bin/ssh -q -x -l Administrator mas90-server /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group --devices --links --times --block-size=2048 --recursive --include=/cygdrive --include=/cygdrive/f --include=/cygdrive/f/UPC --include=/cygdrive/g --include=/cygdrive/g/apps --exclude=/\\\* --exclude=/cygdrive/\\\* --exclude=/cygdrive/f/\\\* --exclude=/cygdrive/g/\\\* . / Xfer PIDs are now 11104 Rsync command pid is 11104 Got remote protocol 1600680819 Fatal error (bad version): ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Checksum seed is 1886090081 Got checksumSeed 0x706b7361 Can't write 151 bytes to socket Sent include: /cygdrive Sent include: /cygdrive/f Sent include: /cygdrive/f/UPC Sent include: /cygdrive/g Sent include: /cygdrive/g/apps Sent exclude: /* Sent exclude: /cygdrive/* Sent exclude: /cygdrive/f/* Sent exclude: /cygdrive/g/* fileListReceive() failed Done: 0 files, 0 bytes Got fatal error during xfer (fileListReceive failed) Backup aborted by user signal So after my longwinded buildup (sorry), it seems to me that the ssh requirements are met, yet for some reason I still get rsync complaining about ssh-askpass, which it doesn't seem like it should need. Please let me know if you need any additional info! Thanks also for a great piece of software! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/