> Thats weird. Can you try restarting the services?
> service cfengine3 restart
I can't log on to the mission center of a newly installed CFEngine (Enterprise version 3.7.3 on Amazon Linux 2016.3). All the
documentation says that the credentials are supposed to be 'admin/admin', but I always get
"This username-password combination is wrong. Please try again."
However, I only get that answer after a very long time, about a minute.
Make sure that your hub are able to resolve its own hostname both ways. Try this:$ getent hosts $(hostname -f)$ getent hosts $(hostname -i)$ ping -c 1 $(hostname)
What does the hostname command return, Pablo?
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
It returns "cfengine"
Now I tried to set it to the FQDN, with
hostname cfengine.example.com
Then restarted the cfengine service
Now the output of the hostname returns the FQDN and cfengine is logging me in. But this change is not persistent, it will revert when I reboot the server, and also I am afraid of possible side-effects on the system. It seems there is no consensus about whether the hostname should be the FQDN or the short name [1].
So perhaps the safest approach would be to explicitly configure cfengine's PHP application to use the FQDN, as cfengine is already using that choice at inatall time to create the SSL cert.
Perhaps the current approach works fine in RHEL? This seems a change from 3.7.2 to 3.7.3 though.
What are your thoughts about this?
[1] http://serverfault.com/questions/331936/setting-the-hostname-fqdn-or-short-name
I did some digging.
Can you please try the following:
```
if (CLI === false)
{
$protocol = key_exists('HTTPS', $_SERVER) ? 'https://' : 'http://';
- $config['rest_server'] = $protocol . gethostname() . '/api';
+ // We need a fully qualifed host name (FQDN), not just a hostname,
therefore
+ // this long chain of gethost* functions.
+ $config['rest_server'] = $protocol .
gethostbyaddr(gethostbyname(gethostname())) . '/api';
}
```
Make the changes in
/var/cfengine/share/GUI/application/config/appsettings.php then run the
policy (cf-agent -KI) You should see a repair on appsettings.php in
/var/cfengine/httpd/htdocs/application/config/appsettings.php
Then try to log in.
I see there is a new version of the enterprise edition, both for the hub and for the agents.I would like to upgrade again; I can't find a detailed changelog so I don't know your patch is already upstream; Have you pushed it or should I file a bug report?