gislab-npo / gislab

GIS.lab - total reduction of deployment and maintenance costs for complete free and open source geospatial infrastructure
http://gislab-npo.github.io/gislab/
GNU General Public License v3.0
40 stars 14 forks source link

nbd: connection timed out #522

Closed landam closed 6 years ago

landam commented 6 years ago

GIS.lab client (Bionic-based only) fails booting with

block nbd0: connection timed out
print_req_error: I/O error, dev nbd0, sector ...

virtualbox_gis lab client pxe_05_10_2018_20_36_43

Server log:

Oct  6 18:34:52 server systemd-timesyncd[689]: Timed out waiting for
reply from 91.189.91.157:123 (ntp.ubuntu.com).
Oct  6 18:34:59 server dhcpd[2299]: reuse_lease: lease age 3638 (secs)
under 25% threshold, reply with unaltered, existing lease for
192.168.17.50
Oct  6 18:34:59 server dhcpd[2299]: DHCPDISCOVER from
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:00 server dhcpd[2299]: DHCPOFFER on 192.168.17.50 to
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:01 server CRON[3837]: (root) CMD (
/opt/gislab/system/stats/update-stats.sh)
Oct  6 18:35:01 server slapd[2870]: connection_input: conn=1013
deferring operation: binding
Oct  6 18:35:01 server sudo:     root : TTY=unknown ; PWD=/root ;
USER=munin ; COMMAND=/usr/bin/munin-cron --host server --host .gis.lab
Oct  6 18:35:02 server systemd-timesyncd[689]: Timed out waiting for
reply from 91.189.94.4:123 (ntp.ubuntu.com).
Oct  6 18:35:02 server dhcpd[2299]: reuse_lease: lease age 3641 (secs)
under 25% threshold, reply with unaltered, existing lease for
192.168.17.50
Oct  6 18:35:02 server dhcpd[2299]: DHCPREQUEST for 192.168.17.50
(192.168.17.5) from 08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:02 server dhcpd[2299]: DHCPACK on 192.168.17.50 to
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:19 server dhcpd[2299]: reuse_lease: lease age 3641 (secs)
under 25% threshold, reply with unaltered, existing lease for
192.168.17.51
Oct  6 18:35:19 server dhcpd[2299]: DHCPDISCOVER from
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:20 server dhcpd[2299]: DHCPOFFER on 192.168.17.51 to
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:20 server dhcpd[2299]: reuse_lease: lease age 3642 (secs)
under 25% threshold, reply with unaltered, existing lease for
192.168.17.51
Oct  6 18:35:20 server dhcpd[2299]: DHCPREQUEST for 192.168.17.51
(192.168.17.5) from 08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:20 server dhcpd[2299]: DHCPACK on 192.168.17.51 to
08:00:27:b2:5c:b6 via enp0s8
Oct  6 18:35:20 server nbd_server[2800]: Spawned a child process
Oct  6 18:35:20 server nbd_server[4030]: virtstyle ipliteral
Oct  6 18:35:20 server nbd_server[4030]: connect from 192.168.17.51,
assigned file is /opt/gislab/system/clients/desktop/image/gislab.img
Oct  6 18:35:20 server nbd_server[4030]: No authorization file, granting access.
Oct  6 18:35:20 server nbd_server[4030]: Size of exported file/device
is 1676763136
Oct  6 18:35:20 server nbd_server[4030]: Starting to serve
Oct  6 18:36:16 server systemd-timesyncd[689]: Timed out waiting for
reply from 91.189.94.4:123 (ntp.ubuntu.com).
landam commented 6 years ago

Note that this issue is relevant only to Bionic-based version developed in ubuntu-bionic-dev branch.

mpastor commented 6 years ago

Try to remove netplan from client:

root@server:~# gislab-client-shell -i
root@server:/# apt-get purge nplan netplan.io
[Ctrl+d]
root@server:~# gislab-client-image
landam commented 6 years ago

Seems to work. Thanks! Is it enough for fixing this issue to remove packages noted above? @mpastor Or do you plan another kind of fix?

mpastor commented 6 years ago

netplan.io is The network configuration abstraction renderer - we don't need it, so we can remove from client.