beautypg.com

HP Linux Server Management Software User Manual

Page 43

background image

cfrun(0): .......... [ Hailing host1 ] ..........
cfrun(0): .......... [ Hailing host2 ] ..........
cfrun:host2: Couldn’t open a socket
cfrun:host2: socket: Connection refused

Check that the cfservd daemon on host2 is configured and running.

Use the command # /etc/init.d/cfservd start to start cfservd if it is not running.

6.

“Can’t stat” messages

When running using either cfrun or cfagent, you might get “can’t stat” errors. For
example,

host1: Can’t stat
/var/opt/dsau/cfengine_master/master_files/etc/test in copy

Check your master file repository and ensure that the file in question is available and has
the right permissions.

7.

“Couldn’t open a socket ” or “unable to establish connection:” errors

cfagent

and cfrun can display errors such as:

cfengine:: Couldn’t open a socket
cfengine:: Unable to establish connection with host1 (failover)
host2: Couldn’t open a socket

If the master server cfservd is running, this error could indicate that a there is a firewall
or port issue such that the client cannot reach port TCP 5308 on the master server. When
using cfrun, the master server must also be able to reach TCP port 5308 on the remote
client. Ensure that any firewall rules allow access to these ports.

8.

cfengine command line arguments are case-sensitive. For example, cfagent supports both
the -k and -K options which have different meanings:

-k

instructs cfagent to ignore the copy actionsequence

-K

instructs cfagent to ignore locks when running

9.

How do I make cfengine more verbose?

Most cfengine tools and daemons accept a verbose (-v) option and several debugging
(-d)

options. For example:

cfagent -d, -d1, -d2, or -d3
cfservd -v
cfrun -v

2.7 cfengine Troubleshooting

43