更新到 16.10 后出现 nfs 错误“无可用锁”

mr.*_*bey 14 nfs 16.10

我使用vagrnatvirtualbox vm 和 nfs 同步文件夹来运行django应用程序,并且在更新到 16.10 后vagrant up在配置步骤失败并出现错误:

Executed: /bin/bash -l -c "cd /home/vagrant/proj >/dev/null && /home/vagrant/venv/bin/python manage.py collectstatic --noinput"

Copying '/home/vagrant/venv/lib/python3.5/site-packages/django/contrib/admin/static/admin/img/LICENSE'

...
OSError: [Errno 37] No locks available
Run Code Online (Sandbox Code Playgroud)

我尝试重新安装,nfs-kernel-server, nfs-common, liblockfile1, libnfsidmap2但没有运气。有任何想法吗?

ayc*_*dee 36

systemd 领域的某个人决定启动 nfs 不应启动 nfs 用来提供锁的 statd 服务。因此,您的修复应该很简单,在主机上:

sudo systemctl enable rpc-statd  # Enable statd on boot
sudo systemctl start rpc-statd  # Start statd for the current session
Run Code Online (Sandbox Code Playgroud)

您甚至不需要重新启动,只需在执行此操作后启动 vagrant。

感谢系统!