Problem on install NS7 on digital ocean

i have some problem on install NS7 on digital ocean :sweat_smile:

Some how to?

I never had problems with NS 6.x.

You basically start a CentOS droplet, then follow the manual:
http://docs.nethserver.org/en/v7a/installation.html#install-on-centos

Can you please share your problem?

No problem with 6.7 for me…only a NS 7 problem…

  1. i have crate a droplet with centos 7.2 x64
  2. yum localinstall -y http://mirror.nethserver.org/nethserver/nethserver-release-7.rpm
  3. nethserver-install

afther that the system freeze on:

after 10+ minuts i can’t connect to ssh anymore.
using the command line interface on digital ocean i reboot it.
No connection from external.
from the web console i can login.

1 Like

Could you paste ip addr output before step 2? Let’s see DO configuration for c7…

> [root@centos-7-x64 ~]# ip addr
> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 scope host lo
>        valid_lft forever preferred_lft forever
>     inet6 ::1/128 scope host
>        valid_lft forever preferred_lft forever
> 2: eth0:  mtu 1500 qdisc pfifo_fast state UP ql                                                                                                               en 1000
>     link/ether 04:01:b7:20:4d:01 brd ff:ff:ff:ff:ff:ff
>     inet 104.236.66.213/18 brd 104.236.127.255 scope global eth0
>        valid_lft forever preferred_lft forever
>     inet 10.17.0.5/16 brd 10.17.255.255 scope global eth0
>        valid_lft forever preferred_lft forever
>     inet6 fe80::601:b7ff:fe20:4d01/64 scope link
>        valid_lft forever preferred_lft forever
> 3: eth1:  mtu 1500 qdisc pfifo_fast state UP ql                                                                                                               en 1000
>     link/ether 04:01:b7:20:4d:02 brd ff:ff:ff:ff:ff:ff
>     inet6 fe80::601:b7ff:fe20:4d02/64 scope link
>        valid_lft forever preferred_lft forever
1 Like

tips for this problem ? :pensive:

I see there are two IPs for eth0. @giacomo do you have any idea?

Could you paste also db networks show output?

Are there any ERROR or FAIL lines into /var/log/messages?

[root@centos-2gb-nyc3-01 ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 04:01:b8:14:62:01 brd ff:ff:ff:ff:ff:ff
inet 45.55.35.46/19 brd 45.55.63.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.17.0.5/16 brd 10.17.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::601:b8ff:fe14:6201/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 04:01:b8:14:62:02 brd ff:ff:ff:ff:ff:ff

After NS7 install from console:

after ssh freeze i can only access the web console:

1 Like

I can reproduce the installation but I have no time to try fixing it. :frowning:
Davide and me took a quick look: maybe the problem is the machine doesn’t have a valid domain name.

Before executing nethserver-install, try to set the hostname:

hostnamectl set-hostname test.mydomain.com
3 Likes

Works!! Thank you!! :smiley:

1 Like

Hi @jackyes could you check if this pull request fixes the problem?

To test it, before executing nethserver install run the following command:


curl https://raw.githubusercontent.com/DavidePrincipi/nethserver-base/init-hostname/root/etc/e-smith/events/actions/nethserver-base-initialize-db > /etc/e-smith/events/actions/nethserver-base-initialize-db
1 Like

[root@centos-2gb-nyc3-01 ~]# curl https://raw.githubusercontent.com/DavidePrincipi/nethserver-base/init-hostname/root/etc/e-smith/events/actions/nethserver-base-initialize-db > /etc/e-smith/events/actions/nethserver-base-initialize-db
-bash: /etc/e-smith/events/actions/nethserver-base-initialize-db: No such file or directory

You’re right, my mistake :frowning:

We must execute that command during nethserver-install… Perhaps by adding it before this line…

https://github.com/NethServer/nethserver-release/blob/v7/root/usr/sbin/nethserver-install#L106

1 Like

works!!!

3 Likes

The patch has been merged.
Testing package: http://packages.nethserver.org/nethserver/7.2.1511/testing/x86_64/Packages/nethserver-base-2.10.1-1.79.g26ca10d.ns7.noarch.rpm