Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: moode NFS server (to transfer files into moode's local storage)
#1
Hello,

I am unable to connect to my moodeaudio in NFS.
I play locally the musics and don't use SMB nor NFS to read music from another server.
SMB server is deactivated, NFS server activated with default setup.

When trying to connect from my laptop to moodeaudio:
sudo mount moode.local:/mnt/SDCARD /mylocaldirforNFSshare
mount.nfs: access denied by server while mounting moode.local:/mnt/SDCARD

In moode, via SSH, I can check this:
i@moode:~ $ systemctl status nfs-server.service
● nfs-server.service - NFS server and services
     Loaded: loaded (/lib/systemd/system/nfs-server.service; disabled; vendor preset: enabled)
     Active: active (exited) since Sat 2023-03-25 20:56:19 CET; 13min ago
    Process: 1218 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
    Process: 1219 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
   Main PID: 1219 (code=exited, status=0/SUCCESS)
        CPU: 14ms

It is strange to see status "active (EXITED)", isn't it?
Trying "systemctl restart nfs-server.service" does not change anything.


"dmesg" command gives:
[ 1620.574567] nfsd: last server has exited, flushing export cache
[ 1621.728616] NFSD: Using UMH upcall client tracking operations.
[ 1621.728634] NFSD: starting 90-second grace period (net f0000000)

"cat /var/log/syslog" gives:
Mar 25 21:27:52 moode systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
Mar 25 21:27:52 moode systemd[1]: Stopping NFS server and services...
Mar 25 21:27:53 moode kernel: [ 1915.252844] nfsd: last server has exited, flushing export cache
Mar 25 21:27:53 moode systemd[1]: nfs-server.service: Succeeded.
Mar 25 21:27:53 moode systemd[1]: Stopped NFS server and services.
Mar 25 21:27:53 moode systemd[1]: Stopping NFSv4 ID-name mapping service...
Mar 25 21:27:53 moode systemd[1]: Stopping NFS Mount Daemon...
Mar 25 21:27:53 moode rpc.mountd[5577]: Caught signal 15, un-registering and exiting.
Mar 25 21:27:53 moode systemd[1]: nfs-idmapd.service: Succeeded.
Mar 25 21:27:53 moode systemd[1]: Stopped NFSv4 ID-name mapping service.
Mar 25 21:27:53 moode systemd[1]: nfs-mountd.service: Succeeded.
Mar 25 21:27:53 moode systemd[1]: Stopped NFS Mount Daemon.
Mar 25 21:27:53 moode systemd[1]: Starting Preprocess NFS configuration...
Mar 25 21:27:53 moode systemd[1]: nfs-config.service: Succeeded.
Mar 25 21:27:53 moode systemd[1]: Finished Preprocess NFS configuration.
Mar 25 21:27:53 moode systemd[1]: Starting NFSv4 ID-name mapping service...
Mar 25 21:27:53 moode systemd[1]: Starting NFS Mount Daemon...
Mar 25 21:27:53 moode systemd[1]: Condition check resulted in RPC security service for NFS client and server being skipped.
Mar 25 21:27:53 moode systemd[1]: Condition check resulted in RPC security service for NFS server being skipped.
Mar 25 21:27:53 moode systemd[1]: Started NFSv4 ID-name mapping service.
Mar 25 21:27:53 moode rpc.mountd[6271]: Version 1.3.3 starting
Mar 25 21:27:53 moode systemd[1]: Started NFS Mount Daemon.
Mar 25 21:27:53 moode systemd[1]: Starting NFS server and services...
Mar 25 21:27:54 moode kernel: [ 1916.406835] NFSD: Using UMH upcall client tracking operations.
Mar 25 21:27:54 moode kernel: [ 1916.406853] NFSD: starting 90-second grace period (net f0000000)
Mar 25 21:27:54 moode systemd[1]: Finished NFS server and services.


Am I doing something wrong?

Thanks
Reply
#2
The NFS server feature only supports attached USB drives.

The ( i ) help should be clearer about this. I'll add to the TODO list.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
OK thanks,

I just found a workaround to do what I look for, by adding following line in '/etc/exports' file:
Code:
/mnt/SDCARD    192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)

Maybe it is not recommended?
What is the reason to allow NFS server option only for USB drives?

I think NFS might be more reliable than SMB, in my case (100% Linux user, unable to get SMB access).
Reply
#4
Generally its a bad idea to put music files on the boot media because they are not part if the build in Backup/Restore feature and if the boot media fails then the files are lost.

It better, faster and more reliable to place music files on a USB Drive. I've been using these ultra small SanDisk drives https://www.amazon.com/gp/product/B07855...UTF8&psc=1
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Right, they are good reasons to use compact USB drive.
However, I guess some like to have the option to use storage in the main drive. I guess most of us have backups of music files elsewhere.
This brings me to this question: do moode SMB server allows to copy musics in local SD card? If yes, why not allowing this also with NFS (maybe with a special option, mentioned as 'not recommended')?

Best,
Reply


Forum Jump: