Job For Nfs Server.service Canceled.

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines
Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
Nfs-server.service

Services for Network File System (NFS) provides a file sharing solution that lets you transfer files between computers running Windows Server and UNIX operating systems using the NFS protocol. Information and links to each of the associated NFS command-line tools. I may try to fix the 'nfs-server.service was cancelled issue' by re-run the 'drblsrv -i' and 'drblpush -i' with only one vlan. My internet vlan has a dhcp service running on Windows platform. Does that affect the nfs-server.service. Please let me know your comments. Thanks for your helps. Kevin Liao 19 days ago. Hi, I’ve updated an old version 4.0 system step by step to 4.3. Now NFS refuses to start. When I try to start it I get: root@server:# systemctl start nfs-server.service Job for nfs-server.service canceled. NFS at home is really like NFS inside a locked server room. It is NFS with all security removed. Just used for convenience and raw performance without any real concern for safety and control. Job For Nfs-server.service Canceled. 9/11/2019 On 02:55, Jonathan Ryshpan wrote: Setting up an nfs server on a laptop running Fedora-20, I get the following perplexing results: # systemctl start nfs.service # systemctl enable nfs.service Failed to issue method call: No such file or directory Sure enough, as promised, nfs works up to the next.

Sudo service nfs-kernel-server restart job for nfs-server.service canceledTasklist

FS#43647 - [nfs-utils] nfs-server fails to start

Attached to Project: Arch Linux
Opened by Gene (GeneC) - Saturday, 31 January 2015, 21:43 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 18 April 2015, 07:38 GMT

Sudo Service Nfs-kernel-server Restart Job For Nfs-server.service Canceled

Task TypeBug Report
Category Packages: Testing
Status Closed
Assigned ToTobias Powalowski (tpowa)
Architecturex86_64
SeverityHigh
PriorityNormal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete
Votes6
  • Alexandre de Verteuil (a_neutrino) (2015-02-23)
  • Michael (Zeth) (2015-02-17)
  • Markus N. (Markus.N) (2015-02-17)
  • Jason S. Wagner (jswagner) (2015-02-16)
  • Mike Cloaked (mcloaked) (2015-01-31)
  • Gene (GeneC) (2015-01-31)
Private No

Details

Description: nfs-server fails to start
Additional info:
Similar problems noted last year here:
https://lists.archlinux.org/pipermail/arch-general/2014-June/036617.html
Today after reboot nfs-server was not running:
2 units fail to start
rpc-statd.service
nfs-server.service.
-------------------------------------
rpc-statd:
systemctl status rpc-statd
rpc.statd[736]: Version 1.3.2 starting
rpc.statd[736]: Flags: TI-RPC
rpc.statd[736]: Running as root. chown /var/lib/nfs to choose different user
rpc.statd[736]: failed to create RPC listeners, exiting
systemd[1]: rpc-statd.service: control process exited, code=exited status=1
systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking.
systemd[1]: Unit rpc-statd.service entered failed state.
systemd[1]: rpc-statd.service failed.
-------------------------------------
I am unable to start this by hand either - continues to fail same way. I had seen this once a month or so back - but was able to start it by hand after machine was up.
-------------------------------------
nfs-server:
systemctl-status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2015-01-31 16:05:32 EST; 5min ago
Process: 743 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=1/FAILURE)
Process: 741 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 743 (code=exited, status=1/FAILURE)
rpc.nfsd[743]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd[743]: rpc.nfsd: unable to set any sockets for nfsd
systemd[1]: nfs-server.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start NFS server and services.
systemd[1]: Unit nfs-server.service entered failed state.
systemd[1]: nfs-server.service failed.
-------------------------------------
Machine is fully updated from testing repo. I did try kernel 3.19.rc6 but it does not help.
Going over the bug from June 2014 I tried these:
systemctl restart proc-fs-nfsd.mount
systemctl restart rpcbind
systemctl restart nfs-mountd.service
systemctl restart rpc-statd.service
systemctl restart nfs-idmapd.service
systemctl restart rpc-svcgssd.service
systemctl restart rpc-statd-notify.service
systemctl restart nfs-mountd
systemctl restart rpc-gssd.service rpc-svcgssd.service
rpc-statd still does not start but now . it failes with
rpc-statd.service start operation timed out. Terminating.
Trying to start nfs-server - it too 'times out'
After 5 mins i tried again: systemctl start nfs-server
which now starts .. rpc-statd is still not running.
And the server is once again serving NFS.
* package version(s)
nfs-utils 1.3.2-1
linux 3.18.5-1
rpcbind 0.2.2-1
* config and/or log files etc.
Steps to reproduce:

Job For Nfs-server.service Canceled. Ubuntu

Closed by Andreas Radke (AndyRTR)
Saturday, 18 April 2015, 07:38 GMT
Reason for closing: Fixed
Duplicate tasks of this task (0)

root@Ubuntu-mate:~# /etc/init.d/nfs-kernel-server restart
[..] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceA Ds2 to mp3 converter online downloader.

Job For Nfs-server.service Canceled

dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
failed!
root@Ubuntu-mate:~#

启动nfs服务失败,请输入“'journalctl -xe”命令查看详细信息

root@Ubuntu-mate:~# journalctl -xe
-- Subject: Unit nfs-mountd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-mountd.service has failed.
--
-- The result is dependency.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-mountd.service/start failed with
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Dependency failed for NFSv4 ID-name mapp
-- Subject: Unit nfs-idmapd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-idmapd.service has failed.
--
-- The result is dependency.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-idmapd.service/start failed with
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-server.service/start failed with
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Unit proc-fs-nfsd.mount entered failed s
Jul 20 08:52:09 Ubuntu-mate systemd[1]: nfs-idmapd.service: control process exit
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Unit nfs-idmapd.service entered failed s
Jul 20 08:52:09 Ubuntu-mate systemd[1]: nfs-idmapd.service failed.
Jul 20 08:52:09 Ubuntu-mate polkitd(authority=local)[546]: Unregistered Authenti
lines 2583-2605/2605 (END)
-- Subject: Unit auth-rpcgss-module.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit auth-rpcgss-module.service has finished starting up.
--
-- The start-up result is done.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Started RPC security service for NFS server.
-- Subject: Unit rpc-svcgssd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rpc-svcgssd.service has finished starting up.
--
-- The start-up result is done.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Started RPC security service for NFS client and server.
-- Subject: Unit rpc-gssd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rpc-gssd.service has finished starting up.
--
-- The start-up result is done.
Jul 20 08:52:09 Ubuntu-mate mount[1246]: mount: unknown filesystem type 'nfsd'
Jul 20 08:52:09 Ubuntu-mate systemd[1]: proc-fs-nfsd.mount mount process exited, code=exited status=32
Jul 20 08:52:09 Ubuntu-mate rpc.idmapd[1250]: main: fcntl(/run/rpc_pipefs/nfs): Invalid argument
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Failed to mount NFSD configuration filesystem.
-- Subject: Unit proc-fs-nfsd.mount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proc-fs-nfsd.mount has failed.
--
-- The result is failed.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Dependency failed for NFS server and services.
-- Subject: Unit nfs-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-server.service has failed.
--
-- The result is dependency.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Dependency failed for NFS Mount Daemon.
-- Subject: Unit nfs-mountd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-mountd.service has failed.
--
-- The result is dependency.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-mountd.service/start failed with result 'dependency'.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Dependency failed for NFSv4 ID-name mapping service.
-- Subject: Unit nfs-idmapd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-idmapd.service has failed.
--
-- The result is dependency.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-idmapd.service/start failed with result 'dependency'.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Job nfs-server.service/start failed with result 'dependency'.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Unit proc-fs-nfsd.mount entered failed state.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: nfs-idmapd.service: control process exited, code=exited status=1
Jul 20 08:52:09 Ubuntu-mate systemd[1]: Unit nfs-idmapd.service entered failed state.
Jul 20 08:52:09 Ubuntu-mate systemd[1]: nfs-idmapd.service failed.
Jul 20 08:52:09 Ubuntu-mate polkitd(authority=local)[546]: Unregistered Authentication Agent for unix-process:1241:10771 (system bus name :1.27, object path /org/freede
lines 2563-2605/2605 (END)

从上面的信息中,可以看出,无法挂载NFS网络文件系统,且这个网络文件系统是由linux内核启动时自动挂载。所以只有重新下载内核,重新把NFS网络文件系统加入内核中,内核配置信息如下,并附上图,重新编译内核。

.config - Linux/arm 3.4.39 Kernel Configuration
──────────────────────────────────────────────────────────────────────────────
┌───────────────────────── Network File Systems ──────────────────────────┐
│ Arrow keys navigate the menu. selects submenus --->. Avatar full episodes season 2. │
│ Highlighted letters are hotkeys. Pressingincludes,excludes, │
modularizes features. Pressto exit, for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded module < > │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ --- Network File Systems │ │
│ │ NFS client support │ │
│ │ [ ] NFS client support for NFS version 3 │ │
│ │ [ ] NFS client support for NFS version 4 │ │
│ │ [*] Provide NFS client caching support │ │
│ │ NFS server support │ │
│ │ [*] NFS server support for NFS version 3 │ │
│ │ [*] NFS server support for the NFSv3 ACL protocol extension│ │
│ │ Secure RPC: Kerberos V mechanism │ │
│ │ [*] RPC: Enable dprintk debugging │ │
│ └────┴(+)─────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────┤

Job For Nfs-server.service Canceled Fedora


Job For Nfs Server Service Canceled Centos 8

注意:本文归作者所有,未经作者允许,不得转载