Please make sure that the domain variable is set in the configuration files 
read by both client and server; alternatively use 'skipidentify' and 
'skipverify' to decouple DNS from the authentication.

skipidentify
http://www.cfengine.org/manuals/cf3-reference.html#skipidentify-in-agent

skipverify
http://www.cfengine.org/manuals/cf3-reference.html#skipverify-in-server

Cheers,
--Nakarin

On Apr 28, 2010, at 10:14 AM, fo...@cfengine.com wrote:

> Forum: Cfengine Help
> Subject: server_copy_remote IPV6 error
> Author: rivercross
> Link to topic: https://cfengine.com/forum/read.php?3,17014,17014#msg-17014
> 
> I use cfengine-3.0.4 on redhat5.4_x86 version,and try to use "cf-serverd" to 
> distribute files to client. 
> 
> File Server: 192.168.1.10
> 
>   promises.cf
> 
> body server control 
> 
> {
> allowconnects         => { "127.0.0.1" ,"192.168.1.10", "192.168.1.11","::1" 
> };
> allowallconnects      => { "127.0.0.1" ,"192.168.1.10", "192.168.1.11" "::1" 
> };
> trustkeysfrom         => { "127.0.0.1" ,"192.168.1.10", "192.168.1.11" "::1" 
> };
> 
> # Make updates and runs happen in one
> 
> cfruncommand          => "$(sys.workdir)/bin/cf-agent -f failsafe.cf && 
> $(sys.workdir)/bin/cf-agent";
> allowusers            => { "root" };
> }
> 
> 
> sites.cf
> 
> bundle server access_rules()
> {
> access:
> 
>  "/home/mark/LapTop"
> 
>    admit   => { "127.0.0.1","192.168.1.10", "192.168.1.11" };
> 
>  "/home/mark/.cfagent/bin/cf-agent"
> 
>    admit   => { "127.0.0.1","192.168.1.10", "192.168.1.11" };
> 
> roles:
> 
>  ".*"  authorize => { "mark" };
> }
> 
> 
> client:192.168.1.11
> 
> unit_server_copy_remote.cf
> 
> 
> 
> body common control
>   {
>   any::
> 
>      bundlesequence  => { 
>                         "testbundle"
>                         };
>   }
> 
> 
> ############################################
> 
> bundle agent testbundle
> 
> {
> files:
> 
>  "/home/mark/tmp/testcopy" 
> 
>    perms => system,
>    copy_from => mycopy("/home/mark/LapTop/words/RoadAhead","192.168.1.10"),
>    depth_search => recurse("inf");
> 
> }
> 
> ############################################
> 
> body perms system
> 
> {
> mode  => "0444";
> }
> 
> #########################################################
> 
> body depth_search recurse(d)
> 
> {
> depth => "$(d)";
> }
> 
> #########################################################
> 
> body copy_from mycopy(from,server)
> 
> {
> source      => "$(from)";
> #portnumber => "6789";
> servers     => { "$(server)" };
> copy_backup => "true";                   #/false/timestamp
> stealth     => "true";                   #/on/false/off
> preserve    => "true";
> linkcopy_patterns => { ".*fish.*" };
> copylink_patterns => { "non-local.*"};
> xdev        => "true";                   # /on/false/off
> compare     => "mtime";                  # 
> ctime/mtime/checksum/sum/byte/binary/any
> link_type    => "absolute";              # /symbolic/relative/hard etc
> type_check   => "true";
> force_update => "false";
> force_ipv4   => "true";
> copy_size        => irange("0","50000");
> trustkey    => "true";
> encrypt     => "true";
> verify      => "true";
> purge       => "false";
> findertype  => "MacOSX";
> }
> 
> 
> 
> First I use "cf-serverd -v" on File server.
> Then I use "../bin/cf-agent -f  unit_server_copy_remote.cf" ,and it returns 
> like this:
> "Couldn't look up address  v6 for localhost.localdomain failed
> Unable to establish connection with 192.168.1.10
> No suitable server respomed to hail"
> 
> How can i fix it ? thanks.
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to