Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Nbd server not showing any exports.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Ilovelinux
Posts: 3
Joined: 2019-01-22 22:14

Nbd server not showing any exports.

#1 Post by Ilovelinux »

I've been running an LTSP server @ home on Stretch for awhile now with great success. As Buster is approaching I've begun planning my migration and testing my LTSP in an lxc container. My config files are identical to Stretch. However this is what is in the syslog of the LTSP server container. My clients are failing to boot.

Code: Select all

root@debltsp:~# grep nbd /var/log/syslog
Jan 22 20:42:59 debltsp nbd-server[103]: Could not parse config file: The config file does not specify any exports
Jan 22 20:42:59 debltsp nbd-server[103]: No configured exports; quitting.
Jan 22 20:42:59 debltsp nbd-server[100]:  nbd-server.
Jan 22 20:52:10 debltsp nbd-server[31901]: Stopping Network Block Device server: nbd-server.
Jan 22 20:52:10 debltsp systemd[1]: nbd-server.service: Succeeded.
Jan 22 20:52:10 debltsp nbd-server[31913]:  nbd-server.
Jan 23 00:01:11 debltsp nbd_server[31915]: Spawned a child process
Jan 23 00:01:11 debltsp nbd_server[26470]: Negotiation failed: Success
Jan 23 00:01:11 debltsp nbd_server[26470]: Exiting.
Jan 23 00:01:11 debltsp nbd_server[31915]: Child exited with 1
I can't find the problem here with nbd-server. The configuration files are identical to the ones on the host right now, but it simply says the config file does not specify any exports.

/etc/nbd-server/config

Code: Select all

[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
        user = nbd
        group = nbd
        includedir = /etc/nbd-server/conf.d

# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.
The only 2 config files in conf.d

Code: Select all

[/opt/ltsp/main]
exportname = /opt/ltsp/images/main.img
readonly = true
authfile = /etc/ltsp/nbd-server.allow

Code: Select all

[swap]
exportname = /tmp/nbd-swap/%s
prerun = nbdswapd %s
postrun = rm -f %s
authfile = /etc/ltsp/nbd-server.allow
Am at a loss. It says it can't see files that are clearly there?

*EDIT* I have tried the fix that involved removing the leading / from the export name. No dice.

Code: Select all

[opt/ltsp/main]
vs

Code: Select all

[/opt/ltsp/main]

Post Reply