# Adding a host - err state

**URL:** <https://forum.opennebula.io/t/adding-a-host-err-state/11381>\
**Category:** Product Support\
**Created:** [June 28, 2023, 8:54am UTC](https://forum.opennebula.io/t/adding-a-host-err-state/11381 "2023-06-28T08:54:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oifpi](https://avatars.discourse-cdn.com/v4/letter/o/ea666f/32.png) [@oifpi](https://forum.opennebula.io/u/oifpi)\
**Post date:** [June 28, 2023, 8:54am UTC](https://forum.opennebula.io/t/adding-a-host-err-state/11381/1 "2023-06-28T08:54:14Z")

</div>

Hello  
I’m having trouble adding a host - err state

Operating system: Ubuntu 22.04.  
I installed OpenNebula by - [OpenNebula Installation — OpenNebula 6.4.4 documentation](https://docs.opennebula.io/6.4/installation_and_configuration/frontend_installation/index.html)  
I added the host as in [KVM Node Installation — OpenNebula 6.6.2 documentation](https://docs.opennebula.io/6.6/open_cluster_deployment/kvm_node/kvm_node_installation.html) - two ways via Sunstone and CLI.

OpenNebula version:

```auto
$oned -v
OpenNebula 6.6.0 (b7b662b5)

```

```auto
$ onehost create node03 -i kvm -v kvm

$ onehost list
   ID NAME CLUSTER TVM ALLOCATED_CPU ALLOCATED_MEM STAT
   10 node03 default 0 - - err
    9 node02 default 0 - - err
    8 node01 default 0 - - err

```

Some information from the file /var/log/one/oned.log:

```auto
[Z0][ONE][I]: Log level:5
[0=ERROR,1=WARNING,2=INFO,3=DEBUG,4=DDEBUG,5=DDDEBUG]

[Z0][InM][DD]: HOST_STATE update from host: 9. Host information: ERROR
[Z0][ONE][E]: Error monitoring Host node02 (9):

[Z0][InM][DD]: HOST_STATE update from host: 10. Host information: ERROR
[Z0][ONE][E]: Error monitoring Host node03 (10):

```

On the page kvm\_node\_installation there is information:  
“If the Host turns to err state instead of on, check OpenNebula log /var/log/one/oned.log. The problem might be with connecting over SSH.”

There are no ssh-related errors in the oned.log file.

Some information from the /var/log/one/monitor.log file:

```auto
[Z0][HMM][D]: Monitoring host node02(9)
[Z0][MDP][I]: Command execution failed (exit code: 255): exec 2>/dev/null; rsync -Laz --delete '/var/lib/one/remotes'/ 'node02':'/var/tmp/one'/
[Z0][MDP][W]: Start monitor failed for host 9: Could not update remotes
[Z0][HMM][E]: Unable to monitor host id: 9
[Z0][HMM][D]: Updated Host 9, state ERROR

```

Some information when checking the status of Opennebula:  
`$ systemctl opennebula status`

```auto
 Active: active (running)
..
Process: 495335 ExecStartPre=sh gzip -9 /var/log/one/oned.log-* /var/log/one/monitor.log-* /var/log/one/vcenter_monitor.log-* & (code=exited, status=2)
..
systemd[1]: Starting OpenNebula Cloud Controller Daemon...
opennebula[495335]: sh: 0: cannot open gzip -9 /var/log/one/oned.log-* /var/log/one/monitor.log-* /var/log/one/vcenter_monitor.log-* &: No such file
systemd[1]: Started OpenNebula Cloud Controller Daemon.

```

Restarting the opennebula service and rebooting ubuntu don’t help.

I don’t know what could be the problem. Why the status of the added host is error?

---

<div class="post-metadata">

**Author:** ![oifpi](https://avatars.discourse-cdn.com/v4/letter/o/ea666f/32.png) [@oifpi](https://forum.opennebula.io/u/oifpi)\
**Post date:** [June 29, 2023, 3:39pm UTC](https://forum.opennebula.io/t/adding-a-host-err-state/11381/2 "2023-06-29T15:39:51Z")

</div>

ok, it’s working now. I had incorrectly configured ssh and host.

---

<div class="post-metadata">

**Author:** ![maxsipatov](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/maxsipatov/32/7756_2.png) [@maxsipatov](https://forum.opennebula.io/u/maxsipatov)\
**Post date:** [September 25, 2023, 9:21am UTC](https://forum.opennebula.io/t/adding-a-host-err-state/11381/3 "2023-09-25T09:21:41Z")

</div>

Can you describe how you fix this? I have the same errors

---

<div class="post-metadata">

**Author:** ![oifpi](https://avatars.discourse-cdn.com/v4/letter/o/ea666f/32.png) [@oifpi](https://forum.opennebula.io/u/oifpi)\
**Post date:** [November 8, 2023, 4:36pm UTC](https://forum.opennebula.io/t/adding-a-host-err-state/11381/4 "2023-11-08T16:36:08Z")

</div>

> Can you describe how you fix this? I have the same errors

I added the lines to the /etc/hosts file:  
`127.0.0.1 node01`  
where “node01” is the Host name
