Re: [BackupPC-users] Unable to read 4 bytes
Il 08/11/2014 17:20, Holger Parplies ha scritto: Hi, Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] What follows is what I use to setup a key exchange, I don't believe that's completely true ;-). AAARRGGHH!! Sorry, my bad. This is what happens when you write from memory without actually cuttingpasting. OF COURSE you have to distribute your PUBLIC key and keep your private key PRIVATE! Shame on me. obviously there are zillions ways to do the same. backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key Actually, you need the *public* key on the client (.ssh/id_dsa.pub), not the private key. More than that, you *should not have* the private key on the client machine. Conceptionally, possession of the private key is considered as proof for being the legitimate BackupPC server. The client machine isn't the legitimate BackupPC server, so it shouldn't be able to prove it is :-). Additionally, I would advise against temporarily storing the key - even the public key - in /tmp. You are later going to do (and this only makes sense if it actually was the public key you transferred) ... [...] root@mailgate:~/.ssh# cat /tmp/backuppc\@server.key authorized_keys So, while the public key is not sensitive information (you could theoretically post it on this list, though there is no point in actually doing that), anyone who might have been able to *modify* it in the mean time (e.g. symlink attack) would be tricking you into putting *his* key into root's authorized_keys, thereby gaining root access to the machine. Strictly speaking, we should also make sure root's authorized_keys file is not writable for group and others. Usually, root's umask and/or the pre-existance of the file will take care of this, but it *is* something that would prevent public key authentication from working. At this point You should be able to do: backuppc@server:~$ ssh root@mailgate /bin/true backuppc@server:~$ (this is my preferred example, because it also tests that no extraneous output is generated). Regards, Holger -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
Samba server is a different box than Backuppc. So, I can ping the backuppc server from the server I need backed up and visa versa. File and Print sharing is enabled on the Windows server needing to be backed up. What's confusing me is I can look at the configuration of an existing Windows server and don't see ANY of the details many of the articles I'm looking at are telling me. For instance: No backuppc user is created. Volume Shadow Copy service isn't running No LMHOSTS file in the Windows directory Yet, this server backs up on a daily basis. The BackupPC server is currently backing up 6 Linux boxes, and 6 Windows boxes. The Samba server is functioning as is. The trouble I'm having is determining what fraction of the steps I need to simply add 1 Windows Server to the existing configuration. All BackupPC configurations on the new server are identical to existing serrvers. Just get the no ping (no ping response) when starting a backup. Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Monday, November 10, 2014 5:22 PM To: General list for user discussion, questions and support Cc: Holger Parplies Subject: Re: [BackupPC-users] Unable to read 4 bytes On Mon, Nov 10, 2014 at 3:58 PM, tschmid4 tschm...@utk.edumailto:tschm...@utk.edu wrote: I'll take a look in the morning. Correct: IP static. Windows Firewall tried off with no change. Added the host IP to the hosts.allow **Haven't found anything indicating I tweak the SAMBA server? You aren't actually using the samba _server_. You are using the windows file share service and the linux samba client, smbclient (or smbtar which is basically the same). There is really only one quirk that connects them and it is rare for it to cause a problem - and that is that smbclient does read the smb.conf config file that you might have configured with some custom values if you have a samba server running on the same machine as backuppc. -- Les Mikesell lesmikes...@gmail.commailto:lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.netmailto:BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
On Tue, Nov 11, 2014 at 9:04 AM, tschmid4 tschm...@utk.edu wrote: So, I can ping the backuppc server from the server I need backed up and visa versa. [...] Just get the no ping (no ping response) when starting a backup. Take one step at a time here: What is different about the ping that succeeds manually from the backuppc server to the target and the one that fails when backuppc does it? -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
Backuppc looks by name? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Tuesday, November 11, 2014 10:27 AM To: General list for user discussion, questions and support Cc: Holger Parplies Subject: Re: [BackupPC-users] Unable to read 4 bytes (No Ping) On Tue, Nov 11, 2014 at 9:04 AM, tschmid4 tschm...@utk.edu wrote: So, I can ping the backuppc server from the server I need backed up and visa versa. [...] Just get the no ping (no ping response) when starting a backup. Take one step at a time here: What is different about the ping that succeeds manually from the backuppc server to the target and the one that fails when backuppc does it? -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
On Tue, Nov 11, 2014 at 9:38 AM, tschmid4 tschm...@utk.edu wrote: Backuppc looks by name? You don't have to guess at this - it uses whatever you configured. Did you type the same thing on the command line to test it? If that is the difference, then you need to decide if you want a work-around by putting the IP in ClientNameAlias or /etc/hosts or to make your DNS work so the name also works from other systems. -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
I can ping server host name and IP from client. I can ping client host name and IP from server. I don't see any server specific entries in any of the .conf files on the server. I don't understand what's different about this machine that it would need it's configuration added to a file with no other server info in it. Basically, if the Linux (backuppc) server has a .conf or .pl file with the list of servers being backed up, this server is in the file. The Windows box has the Computer Browser service started, Firewall is off, ... Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Tuesday, November 11, 2014 11:03 AM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes (No Ping) On Tue, Nov 11, 2014 at 9:38 AM, tschmid4 tschm...@utk.edu wrote: Backuppc looks by name? You don't have to guess at this - it uses whatever you configured. Did you type the same thing on the command line to test it? If that is the difference, then you need to decide if you want a work-around by putting the IP in ClientNameAlias or /etc/hosts or to make your DNS work so the name also works from other systems. -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes (No Ping)
On Tue, Nov 11, 2014 at 10:50 AM, tschmid4 tschm...@utk.edu wrote: I can ping client host name and IP from server. That answers half of the question of what is different. Now why does the ping command issued by backuppc fail? Note that the command itself is configurable, there could be a typo in the host name, the host name could be overridden by a ClientAliasName setting, etc. -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi there, On Tue, 11 Nov 2014, Les Mikesell wrote: We are also assuming that your virtualbox network is bridged ... The VirtualBox default is NAT, the OP's Windows box may be on 10.0.0.0/8. -- 73, Ged. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Correct. The Virtual box has Network and Internet access. Terry -Original Message- From: G.W. Haywood [mailto:bac...@jubileegroup.co.uk] Sent: Tuesday, November 11, 2014 12:48 PM To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Unable to read 4 bytes Hi there, On Tue, 11 Nov 2014, Les Mikesell wrote: We are also assuming that your virtualbox network is bridged ... The VirtualBox default is NAT, the OP's Windows box may be on 10.0.0.0/8. -- 73, Ged. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi, Les Mikesell wrote on 2014-11-10 15:08:49 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Mon, Nov 10, 2014 at 2:41 PM, Holger Parplies wb...@parplies.de wrote: actually, host not found is a failure to resolve the host name (by DNS and netbios). Which might - or might not - still have something to do with a firewall blocking the netbios response. yes, sorry. I was thinking about DNS and missed the netbios case. I added that after checking the code to make sure the message actually means what it says and failed to realize the implication. Regards, Holger -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Thank you guys so much. I think I can figure this out. I discussed with a veteran sys admin and he is coming to the same conclusions about the keys and the process being offered to me here. I have one Windows server remaining to add via Samba. At least I'm not getting the 'unable to read 4 bytes' error with this one. Terry -Original Message- From: Holger Parplies [mailto:wb...@parplies.de] Sent: Saturday, November 08, 2014 1:43 PM To: Les Mikesell Cc: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes Hi, Les Mikesell wrote on 2014-11-08 10:34:12 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Sat, Nov 8, 2014 at 10:20 AM, Holger Parplies wb...@parplies.de wrote: Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key And probably even more to the point is that most systems have an 'ssh-copy-id' script that will do it for you and get it right. The RedHat/Centos versions even fix the SElinux contexts for you. yes, but, as you can see, the transfer was done with a different remote user. Presumably, root cannot login with password authentication. Of course, root will need to be able to login with public key authentication for backups to work. Regards, Holger -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
SUPER! My Linux boxes are backing up. All you guys are awesome. Now, at the risk of making a mistake and causing a problem with a perfectly good configuration, I have one small problem remaining that I THINK needs to have a wee bit of SAMBA configuration. I've added a new Windows (Virtual Box) server running on RHEL 7 platform. That is giving me a no ping (host not found) Message in the Backuppc Configuration Editor. Xfer: SMB I've compared it to an existing Windows box on the network and it's setup identical as far as I can tell. Also have looked at some configuration suggestions from the mail list. Other than adding a registry key, which I'm not willing, but able, to do, I can't find an overall consensus on A simple Windows/via SAMBA/ via BACKUPPC/ configuration. Also haven't found any specific SAMBA Details to try. FYI, All servers were previously setup and working by a prior admin, this single server is one I've added to the Schedule. Terry -Original Message- From: Holger Parplies [mailto:wb...@parplies.de] Sent: Saturday, November 08, 2014 1:43 PM To: Les Mikesell Cc: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes Hi, Les Mikesell wrote on 2014-11-08 10:34:12 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Sat, Nov 8, 2014 at 10:20 AM, Holger Parplies wb...@parplies.de wrote: Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key And probably even more to the point is that most systems have an 'ssh-copy-id' script that will do it for you and get it right. The RedHat/Centos versions even fix the SElinux contexts for you. yes, but, as you can see, the transfer was done with a different remote user. Presumably, root cannot login with password authentication. Of course, root will need to be able to login with public key authentication for backups to work. Regards, Holger -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Mon, Nov 10, 2014 at 12:06 PM, tschmid4 tschm...@utk.edu wrote: I've added a new Windows (Virtual Box) server running on RHEL 7 platform. That is giving me a no ping (host not found) Message in the Backuppc Configuration Editor. Xfer: SMB I've compared it to an existing Windows box on the network and it's setup identical as far as I can tell. That might be as simple as having the Windows host firewall on. If you want to leave it that way and you are able to map the share(s) you are trying to back up from smbclient or other windows hosts, you can set PingCmd to something like /bin/true to keep it from failing. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi, Les Mikesell wrote on 2014-11-10 12:13:43 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Mon, Nov 10, 2014 at 12:06 PM, tschmid4 tschm...@utk.edu wrote: I've added a new Windows (Virtual Box) server running on RHEL 7 platform. That is giving me a no ping (host not found) Message in the Backuppc Configuration Editor. Xfer: SMB I've compared it to an existing Windows box on the network and it's setup identical as far as I can tell. That might be as simple as having the Windows host firewall on. If you want to leave it that way and you are able to map the share(s) you are trying to back up from smbclient or other windows hosts, you can set PingCmd to something like /bin/true to keep it from failing. actually, host not found is a failure to resolve the host name (by DNS and netbios). While setting PingCmd to /bin/true (or {sub {0}} if you prefer saving a fork and don't mind cryptic code ;-) *will* resolve the issue (if not the host name), it also makes backups fail instead of not being attempted when the host is actually down. That might not be a problem - I believe BackupPC handles retries in the same way - but it will mess up things like your blackout schedule. The list of possible solutions is long, with the simplest being to add a line in /etc/hosts on the BackupPC server for the machine in question. If you have a DNS server on your network, you'd rather add it there, which may be slightly more complicated, but will give you network wide (consistent) resolution of the host name. Other than that, there's the Windoze way of getting the WINS server setup right (smb.conf on the BackupPC server) or, possibly, matching up the host name you use in BackupPC with what the host itself thinks it is called. Setting the domain/workgroup to match is also a good idea :). If your Windoze client is named windozebox (as far as BackupPC is concerned) and has the IP 1.2.3.4, your /etc/hosts line would be something like: 1.2.3.4 windozebox.yourdomain.com windozebox (both tabs and spaces should be accepted, use whatever other entries use). In any case, the /etc/hosts entry is the easiest way to try out what happens when name resolution is working (*). You might then run into the issue Les is referring to (ping denied by Windoze firewall). Hope that helps. Regards, Holger (*) 1.) Theoretically, it is possible to configure a Linux system in a way that /etc/hosts is *not* be used for name resolution, but it usually is not set up that way, and even if, I'm not sure all commands actually honour that configuration ;-). 2.) I'm assuming your Windoze box has a static IP. If it gets a random IP via DHCP, you can still *test* what would happen by creating an entry matching the *current* IP assignment (and deleting it again after testing!). For production use, you would then need to either have the Windoze host register its IP with the DNS server, use a combined DHCP/DNS server (like 'dnsmasq'), or use netbios for name resolution. That will likely involve using a WINS server, assuming your Windoze host is on a different network segment than the BackupPC server (I'm guessing that otherwise things would already work). -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Mon, Nov 10, 2014 at 2:41 PM, Holger Parplies wb...@parplies.de wrote: actually, host not found is a failure to resolve the host name (by DNS and netbios). Which might - or might not - still have something to do with a firewall blocking the netbios response. We are also assuming that your virtualbox network is bridged so the target can be reached by the backuppc server. The list of possible solutions is long, with the simplest being to add a line in /etc/hosts on the BackupPC server for the machine in question. If you have a DNS server on your network, you'd rather add it there, which may be slightly more complicated, but will give you network wide (consistent) resolution of the host name. Another simple alternative to working DNS resolution is to set ClientNameAlias to the target IP address.for each host that needs it. -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
I'll take a look in the morning. Correct: IP static. Windows Firewall tried off with no change. Added the host IP to the hosts.allow **Haven't found anything indicating I tweak the SAMBA server? tks Terry -Original Message- From: Holger Parplies [mailto:wb...@parplies.de] Sent: Monday, November 10, 2014 3:42 PM To: General list for user discussion, questions and support Cc: tschmid4 Subject: Re: [BackupPC-users] Unable to read 4 bytes Hi, Les Mikesell wrote on 2014-11-10 12:13:43 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Mon, Nov 10, 2014 at 12:06 PM, tschmid4 tschm...@utk.edu wrote: I've added a new Windows (Virtual Box) server running on RHEL 7 platform. That is giving me a no ping (host not found) Message in the Backuppc Configuration Editor. Xfer: SMB I've compared it to an existing Windows box on the network and it's setup identical as far as I can tell. That might be as simple as having the Windows host firewall on. If you want to leave it that way and you are able to map the share(s) you are trying to back up from smbclient or other windows hosts, you can set PingCmd to something like /bin/true to keep it from failing. actually, host not found is a failure to resolve the host name (by DNS and netbios). While setting PingCmd to /bin/true (or {sub {0}} if you prefer saving a fork and don't mind cryptic code ;-) *will* resolve the issue (if not the host name), it also makes backups fail instead of not being attempted when the host is actually down. That might not be a problem - I believe BackupPC handles retries in the same way - but it will mess up things like your blackout schedule. The list of possible solutions is long, with the simplest being to add a line in /etc/hosts on the BackupPC server for the machine in question. If you have a DNS server on your network, you'd rather add it there, which may be slightly more complicated, but will give you network wide (consistent) resolution of the host name. Other than that, there's the Windoze way of getting the WINS server setup right (smb.conf on the BackupPC server) or, possibly, matching up the host name you use in BackupPC with what the host itself thinks it is called. Setting the domain/workgroup to match is also a good idea :). If your Windoze client is named windozebox (as far as BackupPC is concerned) and has the IP 1.2.3.4, your /etc/hosts line would be something like: 1.2.3.4 windozebox.yourdomain.com windozebox (both tabs and spaces should be accepted, use whatever other entries use). In any case, the /etc/hosts entry is the easiest way to try out what happens when name resolution is working (*). You might then run into the issue Les is referring to (ping denied by Windoze firewall). Hope that helps. Regards, Holger (*) 1.) Theoretically, it is possible to configure a Linux system in a way that /etc/hosts is *not* be used for name resolution, but it usually is not set up that way, and even if, I'm not sure all commands actually honour that configuration ;-). 2.) I'm assuming your Windoze box has a static IP. If it gets a random IP via DHCP, you can still *test* what would happen by creating an entry matching the *current* IP assignment (and deleting it again after testing!). For production use, you would then need to either have the Windoze host register its IP with the DNS server, use a combined DHCP/DNS server (like 'dnsmasq'), or use netbios for name resolution. That will likely involve using a WINS server, assuming your Windoze host is on a different network segment than the BackupPC server (I'm guessing that otherwise things would already work). -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Mon, Nov 10, 2014 at 3:58 PM, tschmid4 tschm...@utk.edu wrote: I'll take a look in the morning. Correct: IP static. Windows Firewall tried off with no change. Added the host IP to the hosts.allow **Haven't found anything indicating I tweak the SAMBA server? You aren't actually using the samba _server_. You are using the windows file share service and the linux samba client, smbclient (or smbtar which is basically the same). There is really only one quirk that connects them and it is rare for it to cause a problem - and that is that smbclient does read the smb.conf config file that you might have configured with some custom values if you have a samba server running on the same machine as backuppc. -- Les Mikesell lesmikes...@gmail.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi, Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] What follows is what I use to setup a key exchange, I don't believe that's completely true ;-). obviously there are zillions ways to do the same. backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key Actually, you need the *public* key on the client (.ssh/id_dsa.pub), not the private key. More than that, you *should not have* the private key on the client machine. Conceptionally, possession of the private key is considered as proof for being the legitimate BackupPC server. The client machine isn't the legitimate BackupPC server, so it shouldn't be able to prove it is :-). Additionally, I would advise against temporarily storing the key - even the public key - in /tmp. You are later going to do (and this only makes sense if it actually was the public key you transferred) ... [...] root@mailgate:~/.ssh# cat /tmp/backuppc\@server.key authorized_keys So, while the public key is not sensitive information (you could theoretically post it on this list, though there is no point in actually doing that), anyone who might have been able to *modify* it in the mean time (e.g. symlink attack) would be tricking you into putting *his* key into root's authorized_keys, thereby gaining root access to the machine. Strictly speaking, we should also make sure root's authorized_keys file is not writable for group and others. Usually, root's umask and/or the pre-existance of the file will take care of this, but it *is* something that would prevent public key authentication from working. At this point You should be able to do: backuppc@server:~$ ssh root@mailgate /bin/true backuppc@server:~$ (this is my preferred example, because it also tests that no extraneous output is generated). Regards, Holger -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Sat, Nov 8, 2014 at 10:20 AM, Holger Parplies wb...@parplies.de wrote: Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] What follows is what I use to setup a key exchange, I don't believe that's completely true ;-). obviously there are zillions ways to do the same. backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key Actually, you need the *public* key on the client (.ssh/id_dsa.pub), not the private key. More than that, you *should not have* the private key on the client machine. Conceptionally, possession of the private key is considered as proof for being the legitimate BackupPC server. The client machine isn't the legitimate BackupPC server, so it shouldn't be able to prove it is :-). Additionally, I would advise against temporarily storing the key - even the public key - in /tmp. You are later going to do (and this only makes sense if it actually was the public key you transferred) ... And probably even more to the point is that most systems have an 'ssh-copy-id' script that will do it for you and get it right. The RedHat/Centos versions even fix the SElinux contexts for you. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi, Les Mikesell wrote on 2014-11-08 10:34:12 -0600 [Re: [BackupPC-users] Unable to read 4 bytes]: On Sat, Nov 8, 2014 at 10:20 AM, Holger Parplies wb...@parplies.de wrote: Mauro Condarelli wrote on 2014-11-07 22:45:53 +0100 [Re: [BackupPC-users] Unable to read 4 bytes]: [...] backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key And probably even more to the point is that most systems have an 'ssh-copy-id' script that will do it for you and get it right. The RedHat/Centos versions even fix the SElinux contexts for you. yes, but, as you can see, the transfer was done with a different remote user. Presumably, root cannot login with password authentication. Of course, root will need to be able to login with public key authentication for backups to work. Regards, Holger -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Fri, Nov 7, 2014 at 12:30 PM, tschmid4 tschm...@utk.edu wrote: I'm SSH'ing into each server and in turn SSH'ing into each server that is having a backup issue to determine if they can connect. Some can, some can't. 'Strict checking' is currently enabled and I am getting a . If I simply disabled 'strict checking' and determined that all systems could Resolve new keys amongst themselves, then enable 'strict checking' again, would this be an acceptable troubleshooting step to determine Why Linux boxes can't backup? The concept is a pull configuration, correct? The BUPC server requests the data from each server, But the keys have been renewed and need to be generated again. What I don't know is the process for basically starting over with the SSH keys. Your screen shot has a pretty good description of what you need to do. When you install ssh on a host it generates a host key fingerprint and on your first connection to that target it stores a copy in ~/.ssh/known_hosts after you respond to the prompt about it. Subsequent connections verify that the value is the same and fail if not. If know the OS has been reinstalled or the host key replaced for some other reason, you must remove that line (conveniently noted after the : in the error message) from the known_hosts file, and then manually connect to that host so you can answer the prompt about accepting the new value. This is separate from, and in addition to what you have to do with the user level public key that goes in the target authorized_hosts file. I didn't understand the context of that: Write failed: Broken pipe message in your previous post though. That could mean that you have the wrong owner/permissions on one of the files in question. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
The broken pipe could have been my haste to sudo -s after SSH into the box. If I go into known_hosts and # out the specific line of the server with the issue, so I can have the data for reference, is that the same as deleting the line or do I really have to remove the entire line from the known_hosts file? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Friday, November 07, 2014 1:56 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Fri, Nov 7, 2014 at 12:30 PM, tschmid4 tschm...@utk.edu wrote: I'm SSH'ing into each server and in turn SSH'ing into each server that is having a backup issue to determine if they can connect. Some can, some can't. 'Strict checking' is currently enabled and I am getting a . If I simply disabled 'strict checking' and determined that all systems could Resolve new keys amongst themselves, then enable 'strict checking' again, would this be an acceptable troubleshooting step to determine Why Linux boxes can't backup? The concept is a pull configuration, correct? The BUPC server requests the data from each server, But the keys have been renewed and need to be generated again. What I don't know is the process for basically starting over with the SSH keys. Your screen shot has a pretty good description of what you need to do. When you install ssh on a host it generates a host key fingerprint and on your first connection to that target it stores a copy in ~/.ssh/known_hosts after you respond to the prompt about it. Subsequent connections verify that the value is the same and fail if not. If know the OS has been reinstalled or the host key replaced for some other reason, you must remove that line (conveniently noted after the : in the error message) from the known_hosts file, and then manually connect to that host so you can answer the prompt about accepting the new value. This is separate from, and in addition to what you have to do with the user level public key that goes in the target authorized_hosts file. I didn't understand the context of that: Write failed: Broken pipe message in your previous post though. That could mean that you have the wrong owner/permissions on one of the files in question. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
You can just comment it out. Keeping it as reference is, most likely, useless though. If You reinstalled or, somehow, You regenerated the host keys in the server (actually that's the BackupPC *client*) the old ones are lost for good. I strongly urge You to make pretty sure (testing by hand) user backuppc on BackupPC server can ssh into each and all clients (as root) with no error and no need for typing passwords. After everything is working You can restrict access to a single caller and or to a single command (to enhance security). On 11/07/2014 08:12 PM, tschmid4 wrote: The broken pipe could have been my haste to sudo -s after SSH into the box. If I go into known_hosts and # out the specific line of the server with the issue, so I can have the data for reference, is that the same as deleting the line or do I really have to remove the entire line from the known_hosts file? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Friday, November 07, 2014 1:56 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Fri, Nov 7, 2014 at 12:30 PM, tschmid4 tschm...@utk.edu wrote: I'm SSH'ing into each server and in turn SSH'ing into each server that is having a backup issue to determine if they can connect. Some can, some can't. 'Strict checking' is currently enabled and I am getting a . If I simply disabled 'strict checking' and determined that all systems could Resolve new keys amongst themselves, then enable 'strict checking' again, would this be an acceptable troubleshooting step to determine Why Linux boxes can't backup? The concept is a pull configuration, correct? The BUPC server requests the data from each server, But the keys have been renewed and need to be generated again. What I don't know is the process for basically starting over with the SSH keys. Your screen shot has a pretty good description of what you need to do. When you install ssh on a host it generates a host key fingerprint and on your first connection to that target it stores a copy in ~/.ssh/known_hosts after you respond to the prompt about it. Subsequent connections verify that the value is the same and fail if not. If know the OS has been reinstalled or the host key replaced for some other reason, you must remove that line (conveniently noted after the : in the error message) from the known_hosts file, and then manually connect to that host so you can answer the prompt about accepting the new value. This is separate from, and in addition to what you have to do with the user level public key that goes in the target authorized_hosts file. I didn't understand the context of that: Write failed: Broken pipe message in your previous post though. That could mean that you have the wrong owner/permissions on one of the files in question. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Fri, Nov 7, 2014 at 1:12 PM, tschmid4 tschm...@utk.edu wrote: The broken pipe could have been my haste to sudo -s after SSH into the box. If I go into known_hosts and # out the specific line of the server with the issue, so I can have the data for reference, is that the same as deleting the line or do I really have to remove the entire line from the known_hosts file? I don't know if sshd has a concept for comments in the known_hosts file. It would probably work anyway by making it not an exact match. But I'd probably just copy the old file to a different name if I wanted access to the old contents. You should never need them as long as you manually connect and accept the new key, unless you are concerned with the security implications that a different/fake server might be trying to intercept your connection and has hijacked the name/ip address that you used to connect. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Not concerned at all. I'd rather start from scratch at this point if it's possible. I've made a list of which servers can connect to others and for the most part, they can connect with a few stray disconnects. To start with a clean slate, would I SSH into the backup server and SSH to each Linux machine I wanted to connect to ? Is there a process for deleting a specific line from each host file so the server will add the correct key info for each connection? I still can't quite wrap my head around the process because some of what the messages tell you are to 'Add the correct host key' well, which machine ? Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in ~/.ssh/known_hosts:1 I know if I ever get it working it will be light a light bulb going off, but it's mighty dark right now with the servers not backing up I appreciate the replies for everyone. It really keeps me going. Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Friday, November 07, 2014 2:32 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Fri, Nov 7, 2014 at 1:12 PM, tschmid4 tschm...@utk.edumailto:tschm...@utk.edu wrote: The broken pipe could have been my haste to sudo -s after SSH into the box. If I go into known_hosts and # out the specific line of the server with the issue, so I can have the data for reference, is that the same as deleting the line or do I really have to remove the entire line from the known_hosts file? I don't know if sshd has a concept for comments in the known_hosts file. It would probably work anyway by making it not an exact match. But I'd probably just copy the old file to a different name if I wanted access to the old contents. You should never need them as long as you manually connect and accept the new key, unless you are concerned with the security implications that a different/fake server might be trying to intercept your connection and has hijacked the name/ip address that you used to connect. -- Les Mikesell lesmikes...@gmail.commailto:lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.netmailto:BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Fri, Nov 7, 2014 at 1:58 PM, tschmid4 tschm...@utk.edu wrote: I'd rather start from scratch at this point if it's possible. I've made a list of which servers can connect to others and for the most part, they can connect with a few stray disconnects. To start with a clean slate, would I SSH into the backup server and SSH to each Linux machine I wanted to connect to ? Yes, being sure to su to the backuppc user on the backuppc server first. Doing something like 'ssh root@target id' is a quick test that both the host and user level keys are correct. Is there a process for deleting a specific line from each host file so the server will add the correct key info for each connection? It's a text file, so any text editor will work. I'd normally use vi where numberG will position you to the specified line number and dd will delete it. But some people don't like vi's command-oriented syntax. I still can't quite wrap my head around the process because some of what the messages tell you are to 'Add the correct host key' well, which machine ? Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in ~/.ssh/known_hosts:1 The :number is the line number containing the host name/IP (which you can easily see) and a mis-matching host key (which you can also see but might not otherwise know is wrong). You can also find this line by searching for the hostname or IP involved. I know if I ever get it working it will be light a light bulb going off, but it's mighty dark right now with the servers not backing up If there is a 'wrong' entry in known_hosts matching the name or ip that you used to connect, you get the error message. If there is no current match you get the prompt about accepting the new value. Either of these will break backuppc's connection since it can't answer the interactive prompt, so you have to connect once manually to get the known_hosts entry updated. If you get a password prompt it means you don't have the right user public key in the authorized_keys file instead (or it has the wrong owner/permissions) and you need to go back to the ssh-copy-id step. Also, note that none of this really has anything to do with backuppc. Ssh is generally useful for a lot of other things. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Ok, let's try to start from beginning and clarify some terminology, so we can understand each other. On 11/07/2014 08:58 PM, tschmid4 wrote: Not concerned at all. I'd rather start from scratch at this point if it's possible. I've made a list of which servers can connect to others and for the most part, they can connect with a few stray disconnects. To start with a clean slate, would I SSH into the backup server and SSH to each Linux machine I wanted to connect to ? YES. You need to became the user that owns BackupPC. If You haven't the BackupPC server in fron of you You can ssh into it. Normal way would be: user@workstation:~$ ssh backuppc@server Linux server 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 The files... ... backuppc@server:~$ where backuppc is the user that runs the server (NOT root) and server is the machine where BackupPC runs. Alternatively, if user backuppc cannot login (normal case) you can: user@workstation:~$ ssh root@fileserver Linux server ... ecc. ecc... root@fserver:~# su backuppc - sh: 0: can't access tty; job control turned off $ Is there a process for deleting a specific line from each host file so the server will add the correct key info for each connection? I advise to clear completely the key cache and poll each and all the clients (machines having files to send to server). $ mv .ssh/known_hosts .ssh/known_hosts.bad I still can't quite wrap my head around the process because some of what the messages tell you are to 'Add the correct host key' well, which machine ? /Add correct host key in /root/.ssh/known_hosts to get rid of this message./ /Offending key in ~/.ssh/known_hosts:1/ /This seems to confirm You are /trying to ssh to clients while being root. Even if You succeed that will have no effect. BackupPC has its own user (normally backuppc) and will try to ssh from *that* user, with *that* user credentials and privileges. I know if I ever get it working it will be light a light bulb going off, but it's mighty dark right now with the servers not backing up I appreciate the replies for everyone. It really keeps me going. Being backuppc you should have a matched couple of keys: backuppc@server:~# ls -l .ssh total 32 -rw-r--r-- 1 backuppc backuppc 1203 Oct 18 02:01 authorized_keys -rw--- 1 backuppc backuppc 1679 Oct 18 01:46 id_rsa -rw-r--r-- 1 backuppc backuppc406 Oct 18 01:46 id_rsa.pub -rw-r--r-- 1 backuppc backuppc 1332 Oct 16 12:44 known_hosts.bad If you don't have the two id_rsa/id_rsa.pub you need to create them. NOTE: the private key *must* be *without* passfrase, otherwise BackupPC will NOT be able to use it. Next start with the first client: workstation1. What follows is what I use to setup a key exchange, obviously there are zillions ways to do the same. backuppc@server:~$ scp .ssh/id_dsa mcon@mailgate:/tmp/backu...@server.key The authenticity of host 'mailgate (192.168.7.113)' can't be established. ECDSA key fingerprint is 45:f5:7d:82:75:82:8f:fa:8c:25:22:9a:25:4f:26:4b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'mailgate,192.168.7.113' (ECDSA) to the list of known hosts. mcon@mailgate's password: id_dsa100% 1675 1.6KB/s 00:00 backuppc@server:~$ ssh mcon@mailgate mcon@mailgate's password: Linux mailgate 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 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. Last login: Sun Oct 19 10:34:27 2014 from ds209.fritz.box mcon@mailgate:~$ su - Password: root@mailgate:~# cd .ssh root@mailgate:~/.ssh# cat /tmp/backuppc\@server.key authorized_keys root@mailgate:~/.ssh# logout Connection to mailgate closed. backuppc@server:~$ At this point You should be able to do: backuppc@server:~$ ssh root@mailgate Linux mailgate 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 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. Last login: Fri Nov 7 22:22:14 2014 from black.fritz.box root@mailgate:~# logout Connection to mailgate closed. backuppc@server:~$ Notice NO password was necessary and NO questions/confirmation either. *This* is how it *should* be. If You can't manually login with a simple ssh command BackupPC file transfer won't work. Repeat the above procedure and test for all clients. Please note (I know, I'm repeating myself, but it's really the important point): You should be able to login from server, being user backuppc into the client as user root. HiH Mauro
Re: [BackupPC-users] Unable to read 4 bytes
OS - 4 systems RHEL 7, Ubuntu 12 thru 14 Transfer Method - RSYNC SSH works on certain systems without PW and others require PW. My skill level with Backuppc, beginner Thank you for your help and mostly, patience. The Windows systems running on BUPC are still backing up without issue. Only the Linux systems fail with 'unable to read 4 bytes.' Terry From: Mauro Condarelli [mailto:mc5...@mclink.it] Sent: Tuesday, November 04, 2014 7:48 AM To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Unable to read 4 bytes Uhm... What You tell us is a little too terse. What is the OS of the client machine? Linux? What transfer method are You trying to use? rsync? If You login on the BackupPC server as the backupppc user are You able to manually ssh into Your client WITHOUT manually entering a password? If You give us a bit more info we will try to help. Regards Mauro Il 04/11/2014 14:33, tschmid4 ha scritto: Greetings, I've read, read, Googled, fiddled, and cannot figure this out. I tried to add a server to Backuppc and the only way it would show up on the list is by SSH into it from the Backuppc server. Now it's on the list but this server and the backup server are unable to backup with the subject error. I have run various keygen, ssh restart, etc. Anything standard about this message I've overlooked? - Ubuntu server Terry -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
After the last command, ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com I receive - No identities found. Thank you for your help. Terry -Original Message- From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se] Sent: Tuesday, November 04, 2014 8:56 AM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes -Original Message- From: tschmid4 [mailto:tschm...@utk.edu] Sent: den 4 november 2014 14:33 To: backuppc-users@lists.sourceforge.net Subject: [BackupPC-users] Unable to read 4 bytes Greetings, I've read, read, Googled, fiddled, and cannot figure this out. I tried to add a server to Backuppc and the only way it would show up on the list is by SSH into it from the Backuppc server. Now it's on the list but this server and the backup server are unable to backup with the subject error. I have run various keygen, ssh restart, etc. Anything standard about this message I've overlooked? - Ubuntu server Did you ssh-copy the keys in question from the BPC-server to the host to be backed up? I usually get that message when BPC can't connect to the backupee. From our internal FAQ: Q: How do I setup the RSA-key for passwordless rsync for BackupPC (BPC) clients? A: On mach012 or mach021, depending on if it's for instrument backup (m12) or user backup (m21): bash-3.2$ su -s /bin/bash - backuppc bash-3.2$ cd /bak bash-3.2$ ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com More info on http://wiki.centos.org/HowTos#head-bab8e87dc82e722540e2d39de8408750004a8c4a http://www.unixmen.com/linux-tutorials/unix-tutorials/71-install-backuppc-server-in-centosrhelfedora -- //Sorin -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Thu, Nov 6, 2014 at 11:56 AM, tschmid4 tschm...@utk.edu wrote: After the last command, ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com I receive - No identities found. You may have created a different type of keypair with your ssh-keygen for the backuppc users. What do you see in ~backuppc/.ssh? Normally you don't even need to specify the identity if you are using the defaults. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
It's rsa, instead of DSA. Is that the possible issue? ~/.ssh# has 3 files: Id_rsa id_rsa.pub known_hosts So instead of ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.commailto:r...@machine.tobe.backedup.com I would enter ssh-copy-id -i .ssh/id_rsa.pub r...@machine.tobe.backedup.commailto:r...@machine.tobe.backedup.com ? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Thursday, November 06, 2014 1:21 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Thu, Nov 6, 2014 at 11:56 AM, tschmid4 tschm...@utk.edumailto:tschm...@utk.edu wrote: After the last command, ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.commailto:r...@machine.tobe.backedup.com I receive - No identities found. You may have created a different type of keypair with your ssh-keygen for the backuppc users. What do you see in ~backuppc/.ssh? Normally you don't even need to specify the identity if you are using the defaults. -- Les Mikesell lesmikes...@gmail.commailto:lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.netmailto:BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
I did find this, In the known_hosts file, there is a section labeled: Too many arguments. Server-1 Server-2 Etc... That has the Linux servers unable to backup listed. Would it be proper to delete these entries from the known_hosts file? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Thursday, November 06, 2014 1:21 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Thu, Nov 6, 2014 at 11:56 AM, tschmid4 tschm...@utk.edu wrote: After the last command, ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com I receive - No identities found. You may have created a different type of keypair with your ssh-keygen for the backuppc users. What do you see in ~backuppc/.ssh? Normally you don't even need to specify the identity if you are using the defaults. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Thu, Nov 6, 2014 at 12:26 PM, tschmid4 tschm...@utk.edu wrote: It's rsa, instead of DSA. Is that the possible issue? ~/.ssh# has 3 files: Id_rsa id_rsa.pub known_hosts So instead of ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com I would enter ssh-copy-id -i .ssh/id_rsa.pub r...@machine.tobe.backedup.com ? Yes, or you should just be able to omit the -i option entirely, as long as the environment is set up (by using the '-' option with su) so it can find your $HOME directory. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Devils in the details. Now it returns 'ssh: Could not resolve host name .ssh/id_rsa.pub: Name or service not known I've altered the syntax as: Ssh-copy-id .ssh/id_rsa.pub root@server Have I missed the syntax somehow? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Thursday, November 06, 2014 1:37 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Thu, Nov 6, 2014 at 12:26 PM, tschmid4 tschm...@utk.edu wrote: It's rsa, instead of DSA. Is that the possible issue? ~/.ssh# has 3 files: Id_rsa id_rsa.pub known_hosts So instead of ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com I would enter ssh-copy-id -i .ssh/id_rsa.pub r...@machine.tobe.backedup.com ? Yes, or you should just be able to omit the -i option entirely, as long as the environment is set up (by using the '-' option with su) so it can find your $HOME directory. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Thu, Nov 6, 2014 at 12:45 PM, tschmid4 tschm...@utk.edu wrote: Devils in the details. Now it returns 'ssh: Could not resolve host name .ssh/id_rsa.pub: Name or service not known I've altered the syntax as: Ssh-copy-id .ssh/id_rsa.pub root@server Have I missed the syntax somehow? Yes the .ssh/id_rsa.pub is the argument to the -i (identity) option. If you omit one you have to omit both. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
These entries are irrelevant for my issue though, correct? I don't need to remove them? Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Thursday, November 06, 2014 1:58 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Thu, Nov 6, 2014 at 12:35 PM, tschmid4 tschm...@utk.edu wrote: I did find this, In the known_hosts file, there is a section labeled: Too many arguments. Server-1 Server-2 Etc... That has the Linux servers unable to backup listed. Would it be proper to delete these entries from the known_hosts file? If you remove a host entry from the known_hosts file you will be prompted for a confirmation the next time you connect to it. So you have to manually connect once and answer this prompt before backuppc will be able to connect. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Interesting. The command syntax worked, (Thanks Les) But it returned: Permanently added 'rsa.pub' (RSA) to the list of known hosts. Write failed: Broken pipe Terry -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Thursday, November 06, 2014 1:54 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] Unable to read 4 bytes On Thu, Nov 6, 2014 at 12:45 PM, tschmid4 tschm...@utk.edu wrote: Devils in the details. Now it returns 'ssh: Could not resolve host name .ssh/id_rsa.pub: Name or service not known I've altered the syntax as: Ssh-copy-id .ssh/id_rsa.pub root@server Have I missed the syntax somehow? Yes the .ssh/id_rsa.pub is the argument to the -i (identity) option. If you omit one you have to omit both. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
On Thu, Nov 6, 2014 at 1:00 PM, tschmid4 tschm...@utk.edu wrote: These entries are irrelevant for my issue though, correct? I don't need to remove them? You should have an entry with a host fingerprint for each host where you have already connected. I don't think extraneous stuff hurts - and if it does you should see some error message when you try to connect manually. -- Les Mikesell lesmikes...@gmail.com -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Uhm... What You tell us is a little too terse. What is the OS of the client machine? Linux? What transfer method are You trying to use? rsync? If You login on the BackupPC server as the backupppc user are You able to manually ssh into Your client WITHOUT manually entering a password? If You give us a bit more info we will try to help. Regards Mauro Il 04/11/2014 14:33, tschmid4 ha scritto: Greetings, I've read, read, Googled, fiddled, and cannot figure this out. I tried to add a server to Backuppc and the only way it would show up on the list is by SSH into it from the Backuppc server. Now it's on the list but this server and the backup server are unable to backup with the subject error. I have run various keygen, ssh restart, etc. Anything standard about this message I've overlooked? - Ubuntu server Terry -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
-Original Message- From: tschmid4 [mailto:tschm...@utk.edu] Sent: den 4 november 2014 14:33 To: backuppc-users@lists.sourceforge.net Subject: [BackupPC-users] Unable to read 4 bytes Greetings, I've read, read, Googled, fiddled, and cannot figure this out. I tried to add a server to Backuppc and the only way it would show up on the list is by SSH into it from the Backuppc server. Now it's on the list but this server and the backup server are unable to backup with the subject error. I have run various keygen, ssh restart, etc. Anything standard about this message I've overlooked? - Ubuntu server Did you ssh-copy the keys in question from the BPC-server to the host to be backed up? I usually get that message when BPC can't connect to the backupee. From our internal FAQ: Q: How do I setup the RSA-key for passwordless rsync for BackupPC (BPC) clients? A: On mach012 or mach021, depending on if it's for instrument backup (m12) or user backup (m21): bash-3.2$ su -s /bin/bash - backuppc bash-3.2$ cd /bak bash-3.2$ ssh-copy-id -i .ssh/id_dsa.pub r...@machine.tobe.backedup.com More info on http://wiki.centos.org/HowTos#head-bab8e87dc82e722540e2d39de8408750004a8c4a http://www.unixmen.com/linux-tutorials/unix-tutorials/71-install-backuppc-server-in-centosrhelfedora -- //Sorin -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes revisited
-Original Message- From: Adam Goryachev [mailto:mailingli...@websitemanagers.com.au] Sent: den 11 oktober 2014 13:21 To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Unable to read 4 bytes revisited Try this: $sshPath -q -x -l root -p 522 $host $rsyncPath $argList+ That did it. Thanks for the assist! -- //Sorin -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes revisited
-Original Message- From: Adam Goryachev [mailto:mailingli...@websitemanagers.com.au] Sent: den 11 oktober 2014 13:21 To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Unable to read 4 bytes revisited On 11/10/14 21:12, Sorin Srbu wrote: Hi all, I set up BackupPC at home to make more systematic backups of mine and wifeys homefolders on the samba-server and ran into the somewhat dreaded Unable to read 4 bytes-error. Problem is *maybe* that the host to be backed up is running sshd on port 522. Yep, but that is easily solved. What I've done so far is to create the passwordless login with my backuppc-user to the host, tested and this works. As the backuppc-user I can login to the host using ssh over port 522 without entering a password and becoming root. Rsync is used as the transfer method, BTW. In the BPC web-GUI, I've added port 522 to RsyncClientCMD, so that now it reads: $sshPath -q -x -l -p 522 root $host $rsyncPath $argList+ Was this correct to do? No, this is your mistake. You need to know what all those options mean. -l is the username to use when authenticating with the remote host, you have provided the username as -p, and then I don't know what 522 and root are going to be interpreted as, I guess 522 would be the hostname, and root would become the path to rsync... Try this: $sshPath -q -x -l root -p 522 $host $rsyncPath $argList+ I've tried to disable iptables on the host, with no change, still getting the 4 byte-error. What am I missing?? Is there something with rsync not connecting properly maybe? Also, next time please provide the log file as that will usually provide more information if the solution isn't so easy. Thanks for the hints. I'll try this when I get home. Seems I assumed to much with the arguments list... 8-/ -- //Sorin -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes revisited
On 11/10/14 21:12, Sorin Srbu wrote: Hi all, I set up BackupPC at home to make more systematic backups of mine and wifeys homefolders on the samba-server and ran into the somewhat dreaded “Unable to read 4 bytes”-error. Problem is **maybe** that the host to be backed up is running sshd on port 522. Yep, but that is easily solved. What I’ve done so far is to create the passwordless login with my backuppc-user to the host, tested and this works. As the backuppc-user I can login to the host using ssh over port 522 without entering a password and becoming root. Rsync is used as the transfer method, BTW. In the BPC web-GUI, I’ve added port 522 to RsyncClientCMD, so that now it reads: $sshPath -q -x -l -p 522 root $host $rsyncPath $argList+ Was this correct to do? No, this is your mistake. You need to know what all those options mean. -l is the username to use when authenticating with the remote host, you have provided the username as -p, and then I don't know what 522 and root are going to be interpreted as, I guess 522 would be the hostname, and root would become the path to rsync... Try this: $sshPath -q -x -l root -p 522 $host $rsyncPath $argList+ I’ve tried to disable iptables on the host, with no change, still getting the 4 byte-error. What am I missing?? Is there something with rsync not connecting properly maybe? Also, next time please provide the log file as that will usually provide more information if the solution isn't so easy. Regards, Adam -- Adam Goryachev Website Managers www.websitemanagers.com.au -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes - most useless errormessage ever?
On 1/25/10 1:36 AM, Sorin Srbu wrote: -Original Message- From: Timothy Murphy [mailto:gayle...@eircom.net] Sent: Monday, January 25, 2010 4:21 AM To: backuppc-users@lists.sourceforge.net Subject: [BackupPC-users] Unable to read 4 bytes - most useless error message ever? Is there anywhere a worse error message than Unable to read 4 bytes? If it sometimes changed, say Unable to read 13 bytes, that might at least convey some information. I had that error too a week ago while setting up BackupPC, and googled it. From there I found out that there was a problem with the rsa-key and/or something related to that. Common sense says (I'm guessing now 8-} ) that if something is difficult to understand or useless, then go google it anf find more information. Right? That is true. But the error message should definitely be more clear to cut out the Google middleman. Although I tend to agree with you, unable to read 4 bytes is rather cryptic. ;-) -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes - most useless errormessage ever?
-Original Message- From: Stuart Matthews [mailto:s...@eff.org] Sent: Tuesday, January 26, 2010 6:36 PM To: backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Unable to read 4 bytes - most useless errormessage ever? Common sense says (I'm guessing now 8-} ) that if something is difficult to understand or useless, then go google it anf find more information. Right? That is true. But the error message should definitely be more clear to cut out the Google middleman. I don't know how good you guys are, but I know *I* need to check stuff up anyway with google from time to time, despite manuals, howtos, references and such. 8-) -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes - most useless errormessage ever?
-Original Message- From: Timothy Murphy [mailto:gayle...@eircom.net] Sent: Monday, January 25, 2010 4:21 AM To: backuppc-users@lists.sourceforge.net Subject: [BackupPC-users] Unable to read 4 bytes - most useless error message ever? Is there anywhere a worse error message than Unable to read 4 bytes? If it sometimes changed, say Unable to read 13 bytes, that might at least convey some information. I had that error too a week ago while setting up BackupPC, and googled it. From there I found out that there was a problem with the rsa-key and/or something related to that. Common sense says (I'm guessing now 8-} ) that if something is difficult to understand or useless, then go google it anf find more information. Right? Although I tend to agree with you, unable to read 4 bytes is rather cryptic. ;-) -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes - most useless error message ever?
Timothy Murphy wrote at about 03:20:31 + on Monday, January 25, 2010: Is there anywhere a worse error message than Unable to read 4 bytes? If it sometimes changed, say Unable to read 13 bytes, that might at least convey some information. On a serious note, it may be a good idea to add a more detailed error message here and/or a link to the specific solution in the manual or FAQ since the relative obscurity of the error message makes this unfortunately an almost weekly FAQ here on the mailing list... -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Stephen Vaughan wrote: I would say its a file permissions error on the server in which your restoring to. OK, slap me over the head with a wet fish. I had "read in rsyncd.conf for one of the rsync modules at the remote server... Thanks for pointing me in the right direction. On Sun, Nov 1, 2009 at 9:06 PM, Micha Silver mi...@arava.co.il wrote: I am unable to restore to linux servers. Backups are running fine, and I rechecked that I can ssh as user backuppc from the backup server (Centos 5.4) directly to the clients (also Centos). Furthermore, I can run rsync as the backuppc user successfully upload files to the client. Here's what appears in the LOG: 2009-11-01 11:31:17 User admin requested restore to my (my) 2009-11-01 11:31:17 Started restore on my (pid=10317) 2009-11-01 11:31:19 Restore failed on my (Unable to read 4 bytes) 2009-11-01 11:31:19 my: File::RsyncP::FileList::encode: missing rdev on device file var/run/dbus/system_bus_socket What am I missing?? Thanks, Micha -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Best Regards, Stephen This mail was received via Mail-SeCure System. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july This mail was received via Mail-SeCure System. ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ This mail was received via Mail-SeCure System. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
BackupPC users: I posted the below message previously. No response yet :-( Any takers? Thanks in advance -- Micha Micha Silver wrote: I am unable to restore to linux servers. Backups are running fine, and I rechecked that I can ssh as user backuppc from the backup server (Centos 5.4) directly to the clients (also Centos). Furthermore, I can run rsync as the backuppc user successfully upload files to the client. Here's what appears in the LOG: 2009-11-01 11:31:17 User admin requested restore to my (my) 2009-11-01 11:31:17 Started restore on my (pid=10317) 2009-11-01 11:31:19 Restore failed on my (Unable to read 4 bytes) 2009-11-01 11:31:19 my: File::RsyncP::FileList::encode: missing rdev on device file var/run/dbus/system_bus_socket What am I missing?? Thanks, Micha -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
I would say its a file permissions error on the server in which your restoring to. On Sun, Nov 1, 2009 at 9:06 PM, Micha Silver mi...@arava.co.il wrote: I am unable to restore to linux servers. Backups are running fine, and I rechecked that I can ssh as user backuppc from the backup server (Centos 5.4) directly to the clients (also Centos). Furthermore, I can run rsync as the backuppc user successfully upload files to the client. Here's what appears in the LOG: 2009-11-01 11:31:17 User admin requested restore to my (my) 2009-11-01 11:31:17 Started restore on my (pid=10317) 2009-11-01 11:31:19 Restore failed on my (Unable to read 4 bytes) 2009-11-01 11:31:19 my: File::RsyncP::FileList::encode: missing rdev on device file var/run/dbus/system_bus_socket What am I missing?? Thanks, Micha -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Best Regards, Stephen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hmm this sound familiar to what I was encountering. Have you tried to SSH to the remote host with the backuppc (su - backuppc) user? Will From: Simone S. Santiago [mailto:sim...@magistrainfo.com.br] Sent: Tuesday, September 29, 2009 1:22 PM To: backuppc-users@lists.sourceforge.net Subject: [BackupPC-users] Unable to read 4 bytes Hi, I have the ssh keys working for rsync and so I know that is working correctly, however, I get the Last error is Unable to read 4 bytes. My config host: $Conf{BackupFilesOnly} = {}; $Conf{XferMethod} = 'rsync'; $Conf{NmbLookupCmd} = '$nmbLookupPath -A $host'; $Conf{NmbLookupFindHostCmd} = '$nmbLookupPath $host'; $Conf{PingCmd} = '$pingPath -c 1 $host'; $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $hostIP $rsyncPath $argList+'; $Conf{RsyncClientPath} = '/usr/bin/rsync'; $Conf{CompressLevel} = '9'; Have anyone ever seen this problem before? Best Regards, Simone -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Simone S. Santiago wrote: Hi, I have the ssh keys working for rsync and so I know that is working correctly, however, I get the Last error is Unable to read 4 bytes. My config host: $Conf{BackupFilesOnly} = {}; $Conf{XferMethod} = 'rsync'; $Conf{NmbLookupCmd} = '$nmbLookupPath -A $host'; $Conf{NmbLookupFindHostCmd} = '$nmbLookupPath $host'; $Conf{PingCmd} = '$pingPath -c 1 $host'; $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $hostIP $rsyncPath $argList+'; $Conf{RsyncClientPath} = '/usr/bin/rsync'; $Conf{CompressLevel} = '9'; Have anyone ever seen this problem before? It is reported on the mail list fairly often, but usually turns out to be that the ssh keys were set up and tested as the root user on the backuppc server instead of the backuppc user, connecting as root to the target. If you are sure you are running as the backuppc user, does ssh -l root target_host id complete without a password prompt? -- Les Mikesell lesmikes...@gmail.com -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to read 4 bytes
Hi Vyacheslav Any suggestions how to correct this? Find the actual command in the log file and try running it interactively. Keith - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/