Re: [BackupPC-users] PingCmd no longer having effect
On 4/5/24 17:40, Les Mikesell wrote: You can use $Conf{ClientNameAlias} to point multiple hosts to the same IP (or a resolvable name). Yes, this works so long as I override the RsyncSshArgs in the host config to include the correct port. Thanks___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] PingCmd no longer having effect
Thank you! You're completely right. When it says 2024-04-05 15:28:10 Can't find host myhost.com via NS and netbios 2024-04-05 15:28:10 can't ping (client = myhost.com); exiting It seems like the first line is the real failure, and the ping is never attempted. Apologies for the list to cutting the log entry too short in my original post. I guess this is my fault due to my setup. I have several systems at a single dynamic ip. I have backupPC set up like so: host1.myhost.com host2.myhost.com host3.myhost.com ... The backuppc user's ssh config file has each of those hosts configured with different ports: Host host1.myhost.com Hostname myhost.com Port 1 User root Host host2.myhost.com Hostname myhost.com Port 2 User root Host host3.myhost.com Hostname myhost.com Port 3 User root ... This way the backuppc user can ssh host3.myhost.com and be logged in to the proper system automatically. I guess now my goal is to find out how to make backuppc bypass the dns check, or to check myhost.com instead of hostx.myhost.com. Though perhaps I'm way off base and there's a better way of configuring all of this. Ian On 4/5/24 16:14, Robert Trevellyan wrote: Unless I'm missing something, this seems to be important: 2024-04-05 15:28:10 Can't find host myhost.com <http://myhost.com/> via NS and netbios Have you tried adding an entry to your hosts file just to get past this and allow further troubleshooting? Robert Trevellyan On Fri, Apr 5, 2024 at 3:45 PM Ian via BackupPC-users wrote: On 4/5/24 15:25, to...@tuxteam.de wrote: > On Fri, Apr 05, 2024 at 02:27:55PM -0400, Ian via BackupPC-users wrote: >> Hi, >> >> I've been using BackupPC for many years now, and have used /usr/bin/true as >> the ping command [...] > Are you sure it's supposed to be /usr/bin/true and not just /bin/true? > > Cheers Pretty sure, 'which true' returns '/usr/bin/true'. Though, on my system true also exists at /bin/true, so I tried that as well just now. Same result. I've also tried placing scripts in the PingCmd field and they do not appear to execute. Thanks, Ian ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project:https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] PingCmd no longer having effect
On 4/5/24 15:25, to...@tuxteam.de wrote: On Fri, Apr 05, 2024 at 02:27:55PM -0400, Ian via BackupPC-users wrote: Hi, I've been using BackupPC for many years now, and have used /usr/bin/true as the ping command [...] Are you sure it's supposed to be /usr/bin/true and not just /bin/true? Cheers Pretty sure, 'which true' returns '/usr/bin/true'. Though, on my system true also exists at /bin/true, so I tried that as well just now. Same result. I've also tried placing scripts in the PingCmd field and they do not appear to execute. Thanks, Ian ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] PingCmd no longer having effect
On 4/5/24 14:52, Mike Hughes wrote: $Conf{PingCmd} = '/bin/echo $host'; Thanks for the idea, unfortunately same result. 2024-04-05 15:28:10 Can't find host myhost.com via NS and netbios 2024-04-05 15:28:10 can't ping (client = myhost.com); exiting I also tried this $Conf{PingCmd} = '/var/lib/backuppc/test.sh'; Where test.sh is +x and contains #!/usr/bin/bash echo `/usr/bin/date` >> /var/lib/backuppc/testlog.txt After restarting backuppc (and the whole server for good measure, since this problem is starting to feel weird), I tried backing up that host. No output in the text file. However using sudo to execute the file as backuppc user works as expected. Ian ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
[BackupPC-users] PingCmd no longer having effect
Hi, I've been using BackupPC for many years now, and have used /usr/bin/true as the ping command for hosts that can't respond to ping. However after a reboot on January 31st, my server stopped obeying pingcmd and stopped backing up those hosts due to lack of ping response. I am using BackupPC 4.4.0-5ubuntu2 amd64 on Ubuntu 22.04. So far I have tried: Overriding $Conf{PingCmd}, $Conf{PingPath}, and $Conf{Ping6Path} in the global config from webui and config file. Setting $Conf{PingCmd} in the client config to either /usr/bin/true or ping -c1 127.0.0.1 using webui and config file. None of the above seem to make any difference at all anymore. No matter what I set, I restart the service and get the same error: 2024-04-05 13:58:38 can't ping (client = myclient.com); exiting However I can confirm other changes to the client config files do have an effect. For example setting a ClientNameAlias in the client config works. I also tried deleting the client config file and allowing the webui to create it, and doing an apt-get --reinstall install backuppc. Same effect. I'm wondering if anyone has noticed anything similar, or has advice on how to debug. Thanks, Ian___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/