Avi Norowitz writes:

> I am running BackupPC 2.1.2 on CentOS 4.2 for i386.
> 
> The file /data/conf/hosts contains the following line:
> 
> migration1b.jvds.com 0 admin
> 
> For some reason BackupPC cannot find this host listed in the hosts file. 
> I cannot see the host when logging into the BackupPC interface as admin, 
> and I receive the following error when using the BackupPC_dump command:
> 
> [EMAIL PROTECTED] ~]$ /usr/local/backuppc/bin/BackupPC_dump -v -f 
> migration1b.jvds.com
> Exiting because host migration1b.jvds.com does not exist in the hosts file
> [EMAIL PROTECTED] ~]$
> 
> If I prepend "strace" to the command I see that it is indeed reading 
> this line from /data/conf/hosts.
> 
> The same problem occurs when I add any host to the hosts file.
> 
> I would greatly appreciate if anyone can provide advice on fixing this
> problem.

I can't explain this.  Please add:

    use Data::Dumper;

near the top of BackupPC_dump and then add

    print Dumper $Hosts;

just after the $bpc->HostInfoRead() function call.
After that, if you can't see the problem you will need to
delve into the HostInfoRead() function in BackupPC/Lib.pm.

Craig


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to