# Adding a Host - error - Debian 9.7

**URL:** <https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916>\
**Category:** Installation & Configuration\
**Created:** [February 18, 2019, 7:44am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916 "2019-02-18T07:44:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 18, 2019, 7:44am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/1 "2019-02-18T07:44:28Z")

</div>

I’m trying OpenNebula on Debian 9.7 hosts.

For FrontEnd, I followed:  
[http://docs.opennebula.org/5.6/deployment/opennebula\_installation/frontend\_installation.html](http://docs.opennebula.org/5.6/deployment/opennebula_installation/frontend_installation.html)  
[http://docs.opennebula.org/5.6/deployment/opennebula\_installation/mysql\_setup.html](http://docs.opennebula.org/5.6/deployment/opennebula_installation/mysql_setup.html)

For KVM host, I followed:  
[http://docs.opennebula.org/5.6/deployment/node\_installation/kvm\_node\_installation.html](http://docs.opennebula.org/5.6/deployment/node_installation/kvm_node_installation.html)  
for step 8, I got error message at SunStone dashboard.

oned.log file at [https://pastebin.com/rjx7XbMB](https://pastebin.com/rjx7XbMB)  
[https://textuploader.com/155ii](https://textuploader.com/155ii)

Can anybody spot the problem?

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [February 18, 2019, 8:17am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/2 "2019-02-18T08:17:38Z")

</div>

Hello @sevilla.larry

Could you send me the output of `ls -la /var/lib/one/remotes`?

Execute `onehost sync --force` too.

---

<div class="post-metadata">

**Author:** ![ghis\_le\_curieux](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@ghis\_le\_curieux](https://forum.opennebula.io/u/ghis_le_curieux)\
**Post date:** [February 18, 2019, 8:32am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/3 "2019-02-18T08:32:34Z")

</div>

Mon Feb 18 15:19:54 2019 [Z0][InM][I]: scp: error: unexpected filename: .

i got the very same issue on ubuntu 18.04 with 5.7.90. Impossible to add host.

---

<div class="post-metadata">

**Author:** ![ghis\_le\_curieux](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@ghis\_le\_curieux](https://forum.opennebula.io/u/ghis_le_curieux)\
**Post date:** [February 18, 2019, 8:55am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/4 "2019-02-18T08:55:52Z")

</div>

i made it work here with

seems that changing  
/var/lib/one/remotes/tm/ssh/ln

by adding before SCP

SRC\_PATH\_SNAP={SRC\_PATH\_SNAP%.};  
SRC={SRC%.};

solve it

---

<div class="post-metadata">

**Author:** ![MartinW](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/martinw/32/5920_2.png) [@MartinW](https://forum.opennebula.io/u/MartinW)\
**Post date:** [February 18, 2019, 2:56pm UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/5 "2019-02-18T14:56:36Z")

</div>

Hey @ghis_le_curieux,

I have exactly this same error while trying to add a host to my new Opennebula installation on Ubuntu 16.04.5 installation.

I tried adding the lines you suggested before the SCP entry:

```
#-------------------------------------------------------------------------------
# Copy files to the remote host
#-------------------------------------------------------------------------------
SRC_PATH_SNAP=${SRC_PATH_SNAP%.};
SRC=${SRC%.};
log "Cloning $SRC in $DST_PATH"
exec_and_log "$SCP -r $SRC $DST" "Error copying $SRC to $DST"

```

But got the same error:

```
Mon Feb 18 14:48:27 2019 [Z0][InM][I]: Command execution failed (exit code: 1): scp -r /var/lib/one/remotes/. frontend.homewards.me.uk:/var/tmp/one
Mon Feb 18 14:48:27 2019 [Z0][InM][I]: scp: error: unexpected filename: .

```

I have confirmed that ssh works without a password and I can’t find any mention of “Monitoring host” in any files under /var/lib/one/remotes, so am at a loss as to how to resolve this.

(Edited because the $ character didn’t appear originally,which made the code incorrect)

---

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 19, 2019, 3:59am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/6 "2019-02-19T03:59:09Z")

</div>

Thx for the reply.

[https://pastebin.com/JiidhYn8](https://pastebin.com/JiidhYn8)

---

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 19, 2019, 4:09am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/7 "2019-02-19T04:09:10Z")

</div>

Tried your changes, but still Error.

---

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 19, 2019, 4:12am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/8 "2019-02-19T04:12:12Z")

</div>

Yes, I have the same error.

---

<div class="post-metadata">

**Author:** ![ghis\_le\_curieux](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@ghis\_le\_curieux](https://forum.opennebula.io/u/ghis_le_curieux)\
**Post date:** [February 19, 2019, 6:27am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/9 "2019-02-19T06:27:20Z")

</div>

my change for each variable id done just before the scp commands

/var/lib/one/remotes/tm/ssh/ln

log “Cloning $SRC in $DST\_PATH”  
SRC={SRC%.};  
exec\_and\_log “$SCP -r $SRC $DST” “Error copying $SRC to $DST”

```
    SRC_PATH_SNAP={SRC_PATH_SNAP%.};
exec_and_log "$SCP -4r $SRC_HOST:${SRC_PATH_SNAP} $DST_HOST:${DST_PATH_SNAP}" \
    "Error copying $SRC to $DST"

```

it worked for me for lxd host, i dont know if kvm host differ in the scripts used, perhaps there is need to have the same change in a lot of places. The best would be for opennebulla to NOT add this ‘/.’ at the path end 🙂

Ghislain.

---

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 19, 2019, 7:05am UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/10 "2019-02-19T07:05:01Z")

</div>

Still the same error.

I used KVM.

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [February 19, 2019, 2:16pm UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/11 "2019-02-19T14:16:00Z")

</div>

Hello guys,

The bug has been solved in master, so in the release 5.8 it will be available.

Here you have the 2 commits that fix it:

> <https://github.com/OpenNebula/one/commit/c55b6c1ed60bc689d9fbae376c90a2cf0d88f8d9#diff-195db9b3d13fb4337d39950cea8b7746>

> <https://github.com/OpenNebula/one/commit/320a8c26c0c455edfdc5ea87ae2fad38817ee856#diff-195db9b3d13fb4337d39950cea8b7746>

---

<div class="post-metadata">

**Author:** ![MartinW](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/martinw/32/5920_2.png) [@MartinW](https://forum.opennebula.io/u/MartinW)\
**Post date:** [February 19, 2019, 3:57pm UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/12 "2019-02-19T15:57:02Z")

</div>

Many thanks for the update info Alejandro. I am restricted by what I can installed, so I can’t install all the compilers and dev libraries needed by the current 5.8 dev release.

Any idea when this will be released in a production bundle?

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [February 19, 2019, 4:08pm UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/13 "2019-02-19T16:08:19Z")

</div>

Hello @MartinW

It will be released next week.

---

<div class="post-metadata">

**Author:** ![sevilla.larry](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sevilla.larry](https://forum.opennebula.io/u/sevilla.larry)\
**Post date:** [February 19, 2019, 11:23pm UTC](https://forum.opennebula.io/t/adding-a-host-error-debian-9-7/6916/14 "2019-02-19T23:23:52Z")

</div>

Thank you for the info…
