Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NFS, Ubuntu21 i dependency failed

148 views
Skip to first unread message

Roman Tyczka

unread,
Jun 22, 2021, 7:18:20 AM6/22/21
to
Witam

Czyściutki, nowiutki Ubunciak 21.04.
Zainstalowałem z repo NSF (nfs-kernel-server) i już podczas instalacji
były te komunikaty błędów, ale pomyślałem, że "tak musi być".

Potem konfig usługi, restart i dupa:

root@data:~# systemctl status nfs-kernel-server
* nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled;
vendor preset: enabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
`-order-with-mounts.conf
Active: inactive (dead)

Jun 22 11:07:07 data systemd[1]: Dependency failed for NFS server and
services.
Jun 22 11:07:07 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.

I jeszcze log:

root@data:~# journalctl -xe
-- Subject: A start job for unit nfs-config.service has finished
successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit nfs-config.service has finished successfully.
--
-- The job identifier is 317.
Jun 22 11:07:07 data mount[336]: mount: /proc/fs/nfsd: permission denied.
Jun 22 11:07:07 data systemd[1]: proc-fs-nfsd.mount: Mount process
exited, code=exited, status=32/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An n/a= process belonging to unit proc-fs-nfsd.mount has exited.
--
-- The process' exit code is 'exited' and its exit status is 32.
Jun 22 11:07:07 data systemd[1]: proc-fs-nfsd.mount: Failed with result
'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit proc-fs-nfsd.mount has entered the 'failed' state with
result 'exit-code'.
Jun 22 11:07:07 data systemd[1]: Failed to mount NFSD configuration
filesystem.
-- Subject: A start job for unit proc-fs-nfsd.mount has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit proc-fs-nfsd.mount has finished with a failure.
--
-- The job identifier is 311 and the job result is failed.
Jun 22 11:07:07 data systemd[1]: Dependency failed for NFS Mount Daemon.
-- Subject: A start job for unit nfs-mountd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit nfs-mountd.service has finished with a failure.
--
-- The job identifier is 310 and the job result is dependency.
Jun 22 11:07:07 data systemd[1]: Dependency failed for NFS server and
services.
-- Subject: A start job for unit nfs-server.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit nfs-server.service has finished with a failure.
--
-- The job identifier is 305 and the job result is dependency.
Jun 22 11:07:07 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.
Jun 22 11:07:07 data systemd[1]: nfs-mountd.service: Job
nfs-mountd.service/start failed with result 'dependency'.

Co robić? Jak żyć?

--
pzdr
Roman

pioruns

unread,
Jun 22, 2021, 8:47:03 AM6/22/21
to
On 22/06/2021 12:18, Roman Tyczka wrote:
> Witam
>
> Czyściutki, nowiutki Ubunciak 21.04.
> Zainstalowałem z repo NSF (nfs-kernel-server) i już podczas instalacji
> były te komunikaty błędów, ale pomyślałem, że "tak musi być".

Nie moze tak byc. Sprobuj odinstalowac te pakiety, zainstaluj ponownie i
pokaz loga jakie byly bledy.

--
pozdrawiam, pioruns
_,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.
Registered Linux User #454644

Roman Tyczka

unread,
Jun 22, 2021, 9:14:11 AM6/22/21
to
On 22.06.2021 14:47, pioruns wrote:

>> Czyściutki, nowiutki Ubunciak 21.04.
>> Zainstalowałem z repo NSF (nfs-kernel-server) i już podczas instalacji
>> były te komunikaty błędów, ale pomyślałem, że "tak musi być".
>
> Nie moze tak byc. Sprobuj odinstalowac te pakiety, zainstaluj ponownie i
> pokaz loga jakie byly bledy.

root@data:~# apt install nfs-kernel-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
nfs-kernel-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 99.3 kB of archives.
After this operation, 421 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64
nfs-kernel-server amd64 1:1.3.4-4ubuntu2.1 [99.3 kB]
Fetched 99.3 kB in 0s (287 kB/s)
Selecting previously unselected package nfs-kernel-server.
(Reading database ... 20357 files and directories currently installed.)
Preparing to unpack .../nfs-kernel-server_1%3a1.3.4-4ubuntu2.1_amd64.deb ...
Unpacking nfs-kernel-server (1:1.3.4-4ubuntu2.1) ...
Setting up nfs-kernel-server (1:1.3.4-4ubuntu2.1) ...
A dependency job for nfs-server.service failed. See 'journalctl -xe' for
details.
A dependency job for nfs-server.service failed. See 'journalctl -xe' for
details.
invoke-rc.d: initscript nfs-kernel-server, action "restart" failed.
* nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled;
vendor preset: enabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
`-order-with-mounts.conf
Active: inactive (dead)

Jun 22 13:11:32 data systemd[1]: Dependency failed for NFS server and
services.
Jun 22 13:11:32 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.
Jun 22 13:11:32 data systemd[1]: Dependency failed for NFS server and
services.
Jun 22 13:11:32 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.
Jun 22 13:13:02 data systemd[1]: Dependency failed for NFS server and
services.
Jun 22 13:13:02 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.
Jun 22 13:13:02 data systemd[1]: Dependency failed for NFS server and
services.
Jun 22 13:13:02 data systemd[1]: nfs-server.service: Job
nfs-server.service/start failed with result 'dependency'.
Failed to restart nfs-kernel-server, ignoring.
Processing triggers for man-db (2.9.4-2) ...


--
pzdr
Roman

pioruns

unread,
Jun 22, 2021, 9:45:42 AM6/22/21
to
On 22/06/2021 14:14, Roman Tyczka wrote:

> Setting up nfs-kernel-server (1:1.3.4-4ubuntu2.1) ...
> A dependency job for nfs-server.service failed. See 'journalctl -xe' for
> details.

A masz zainstalowane nfs-utils?

Roman Tyczka

unread,
Jun 22, 2021, 10:45:22 AM6/22/21
to
On 22.06.2021 15:45, pioruns wrote:
> On 22/06/2021 14:14, Roman Tyczka wrote:
>
>> Setting up nfs-kernel-server (1:1.3.4-4ubuntu2.1) ...
>> A dependency job for nfs-server.service failed. See 'journalctl -xe'
>> for details.
>
> A masz zainstalowane nfs-utils?

Nie... ale to jest dla klienta wszak:

root@data:~# apt search nfs-utils
libnfs-utils/hirsute 4.0.0-1 amd64
NFS client library (binaries)


--
pzdr
Roman

Roman Tyczka

unread,
Jun 22, 2021, 1:47:22 PM6/22/21
to
On 22.06.2021 16:45, Roman Tyczka wrote:
>>> Setting up nfs-kernel-server (1:1.3.4-4ubuntu2.1) ...
>>> A dependency job for nfs-server.service failed. See 'journalctl -xe'
>>> for details.
>>
>> A masz zainstalowane nfs-utils?
>
> Nie... ale to jest dla klienta wszak:
>
> root@data:~# apt search nfs-utils
> libnfs-utils/hirsute 4.0.0-1 amd64
>   NFS client library (binaries)

Rozkminiałem to kilka h, znaczy szukałem tropów i trupów, wygląda na to,
że problem może być w zupełnie innym miejscu. Ale po kolei.
Najpierw znalazłem ten wątek/bug:

https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799

Identyczny z moim problemem, ale dawno już został rozwiązany, więc...
raczej nie to. Potem zacząłem zataczać szersze kręgi i prawdopodobnie
przyczyną jest to, że tak naprawdę, o czym nie napisałem, ten mój Ubuntu
pracuje w kontenerze LXC (pod proxmoxem), a NFS bazuje na sterowniku
jądra, co podobno jest przyczyną ograniczeń, bo kontener pracuje w
ograniczonym środowisku jądra hosta. Wszystko wskazuje, że to może być
przyczyna. Co prawda ktoś pisał, że LXC można odpalić w privileged mode,
co uczyniłem, ale to niczego nie zmieniło.

Zatem jeśli ktoś ma jeszcze jakiś pomysł to zapraszam, tymczasem obok
doinstaluję Ubuntu pod KVM, jako pełnoprawny, choć zwqirtualizowany,
system i na nim postawię serwer NFS.

--
pzdr
Roman

pioruns

unread,
Jun 23, 2021, 1:06:35 PM6/23/21
to
On 22/06/2021 18:47, Roman Tyczka wrote:

> Zatem jeśli ktoś ma jeszcze jakiś pomysł to zapraszam, tymczasem obok
> doinstaluję Ubuntu pod KVM, jako pełnoprawny, choć zwqirtualizowany,
> system i na nim postawię serwer NFS.
Skoro uzywasz najnowszego czystego Ubuntu, zainstalowanie pakietu od NFS
wywala blad systemctl, a nie powinno, no to zglos to na launchpad jako
nowy bug. Moze to nie bug i wina jest gdzies indziej, ale przynajmniej
sie dowiesz jak to naprawic, bo podejrzewam, ze ktos Ci tam pomoze.
Powodzenia :)
0 new messages