Cmon failed start with error: (ERROR) Failed to get hostid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmon |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to start cmon it gaves me this error:
Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
Nov 18 12:38:00 : (INFO) Created table 'mysql_repl_link'
Nov 18 12:38:00 : (INFO) Created table 'hosts'
Nov 18 12:38:00 : (INFO) Created table 'processes'
Nov 18 12:38:00 : (INFO) Created table 'host_process_map'
Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
ok
[1]- Terminated tail -f /var/log/cmon.log
-bash-3.2# Nov 18 12:38:01 : (INFO) Done
Nov 18 12:38:01 : (INFO) Registering managed cluster with cluster id=1
Nov 18 12:38:02 : (INFO) Managed cluster is already registered - cluster id=1
Nov 18 12:38:02 : (ERROR) Failed to get hostid
Nov 18 12:38:02 : (ERROR) Critical error (mysql error code -1) occured - shutting down
How can we fix it? Thanks.
Hi,
Thanks for the report.
What does:
hostname
and
hostname -i
print out?
BR
johan
On 2011-11-22 22.57, Xposed wrote:
> ** Description changed:
>
> When I try to start cmon it gaves me this error:
>
> Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
> Nov 18 12:38:00 : (INFO) Created table 'mysql_repl_link'
> Nov 18 12:38:00 : (INFO) Created table 'hosts'
> Nov 18 12:38:00 : (INFO) Created table 'processes'
> Nov 18 12:38:00 : (INFO) Created table 'host_process_map'
> Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
> - ok
> + ok
> [1]- Terminated tail -f /var/log/cmon.log
> -bash-3.2# Nov 18 12:38:01 : (INFO) Done
> Nov 18 12:38:01 : (INFO) Registering managed cluster with cluster id=1
>
> Nov 18 12:38:02 : (INFO) Managed cluster is already registered -
> cluster id=1
>
> Nov 18 12:38:02 : (ERROR) Failed to get hostid
> Nov 18 12:38:02 : (ERROR) Critical error (mysql error code -1) occured - shutting down
>
> -
> How can we fix it? Thanks.
>