Closed brauliobo closed 7 years ago
If I add the client CIDR at /etc/nbd-server/allow
I get the following error on the server (same error on the client):
root@casa:~# nbd-server 192.168.21.1:9000 /dev/sdb
** (process:2755): WARNING **: Specifying an export on the command line is deprecated.
** (process:2755): WARNING **: Please use a configuration file instead.
** Message: virtstyle ipliteral
** Message: connect from 192.168.21.112, assigned file is /dev/sdb
** Message: Authorized client
** Message: Starting to serve
** Message: Size of exported file/device is 240057409536
Error: Read failed: Address in use
Exiting.
** Message: Child exited with 1
** Message: virtstyle ipliteral
** Message: connect from 192.168.21.112, assigned file is /dev/sdb
** Message: Authorized client
** Message: Starting to serve
** Message: Size of exported file/device is 240057409536
Error: Read failed: Connection reset by peer
Exiting.
** Message: Child exited with 1
** Message: virtstyle ipliteral
** Message: connect from 192.168.21.112, assigned file is /dev/sdb
** Message: Authorized client
** Message: Starting to serve
** Message: Size of exported file/device is 240057409536
Error: Read failed: No child process
Exiting.
In NBD 3.10, support for running the oldstyle negotiation protocol was removed, but some code paths (including the deprecated command line you try to run) still tried to use it. This was only fixed by 3.12.
In other words, you need to either upgrade your server or use a configuration file. The command line in 3.11 is broken and cannot be made to work.
thanks @yoe, will try the config file or cross compilation
Server running on a router with LEDE and nbd-server 3.11
Client running on Archlinux with nbd-client version 3.15.3
Error with version compiled from git tag
nbd-3.11
: