[OpenAFS] Fedora 37: openafs 1.8.9-1 not starting
Ralf Brunckhorst
rbrunckhorst@sinenomine.net
Tue, 14 Mar 2023 17:07:03 +0100
--=_MailMate_471F45BE-BAEF-4958-88F3-E6FADD89F7E5_=
Content-Type: text/plain; charset=UTF-8; format=flowed; markup=markdown
Content-Transfer-Encoding: 8bit
Hi Berthold,
what is the selinux status on this machine: 'sestatus'
If selinux is enabled and mode is enforcing there is some additional
work needed.
After trying to start openafs-client you could run 'ausearch -m AVC -ts
recent' to see the recent deny messages.
Also 'sealert -l "*"' can show you more.
So if your problem is related to selinux you could change the mode to
permissive, reboot the system and try again.
I'm currently working on a rpm package that will installs and sets up
the SELinux policy security module for openafs.
If you are interested to test it, please let me know.
Regards,
--
Ralf Brunckhorst
rbrunckhorst@sinenomine.net
On 14 Mar 2023, at 15:30, Berthold Cogel wrote:
> Am 10.03.23 um 11:09 schrieb Berthold Cogel:
>
>>
>> Starting the client:
>>
>> [root@charontmp ~]# systemctl start openafs-client
>> Job for openafs-client.service failed because the control process
>> exited with error code.
>> See "systemctl status openafs-client.service" and "journalctl -xeu
>> openafs-client.service" for details.
>> [root@charontmp ~]# systemctl status openafs-client
>> × openafs-client.service - OpenAFS Client Service
>> Loaded: loaded
>> (/usr/lib/systemd/system/openafs-client.service; disabled; preset:
>> disabled)
>> Active: failed (Result: exit-code) since Fri 2023-03-10
>> 10:19:56 CET; 5s ago
>> Process: 3920 ExecStartPre=/bin/bash -c fs sysname >
>> /dev/null 2>/dev/null; test $? -ne 0 || (echo AFS client appears to
>> be running -- not starting && exit 1) (cod>
>> Process: 3922 ExecStartPre=/bin/sed -n
>> w/usr/vice/etc/CellServDB /usr/vice/etc/CellServDB.local
>> /usr/vice/etc/CellServDB.dist (code=exited, status=0/SUCCESS)
>> Process: 3923 ExecStartPre=/bin/chmod 0644
>> /usr/vice/etc/CellServDB (code=exited, status=0/SUCCESS)
>> Process: 3924 ExecStartPre=/sbin/modprobe openafs
>> (code=exited, status=0/SUCCESS)
>> Process: 3927 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS
>> (code=exited, status=1/FAILURE)
>> CPU: 495ms
>>
>> Mär 10 10:19:56 charontmp systemd[1]: Starting
>> openafs-client.service - OpenAFS Client Service...
>> Mär 10 10:19:56 charontmp afsd[3927]: afsd: ERROR: Cache dir check
>> failed (unable to stat cache base directory)
>> Mär 10 10:19:56 charontmp systemd[1]: openafs-client.service:
>> Control process exited, code=exited, status=1/FAILURE
>> Mär 10 10:19:56 charontmp systemd[1]: openafs-client.service: Failed
>> with result 'exit-code'.
>> Mär 10 10:19:56 charontmp systemd[1]: Failed to start
>> openafs-client.service - OpenAFS Client Service.
>>
>
> To clarify things:
>
> openafs-client is still disabled. I tried to start it manually. So
> /usr/vice/cache is mounted at this time.
>
>
> Regards
> Berthold Cogel
>
>
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
--=_MailMate_471F45BE-BAEF-4958-88F3-E6FADD89F7E5_=
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html><html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
</head>
<body><div style=3D"font-family: sans-serif;"><div class=3D"markdown" style=
=3D"white-space: normal;">
<p dir=3D"auto">Hi Berthold,</p>
<p dir=3D"auto">what is the selinux status on this machine: 'sestatus'<br>
If selinux is enabled and mode is enforcing there is some additional work n=
eeded.</p>
<p dir=3D"auto">After trying to start openafs-client you could run 'ausearc=
h -m AVC -ts recent' to see the recent deny messages.<br>
Also 'sealert -l "*"' can show you more.</p>
<p dir=3D"auto">So if your problem is related to selinux you could change t=
he mode to permissive, reboot the system and try again.<br>
I'm currently working on a rpm package that will installs and sets up the S=
ELinux policy security module for openafs.<br>
If you are interested to test it, please let me know.</p>
<p dir=3D"auto">Regards,</p>
<p dir=3D"auto">--<br>
Ralf Brunckhorst<br>
<a href=3D"mailto:rbrunckhorst@sinenomine.net">rbrunckhorst@sinenomine.net<=
/a></p>
<p dir=3D"auto">On 14 Mar 2023, at 15:30, Berthold Cogel wrote:</p>
<blockquote style=3D"margin: 0 0 5px; padding-left: 5px; border-left: 2px s=
olid #136BCE; color: #136BCE;">
<p dir=3D"auto">Am 10.03.23 um 11:09 schrieb Berthold Cogel:</p>
<blockquote style=3D"margin: 0 0 5px; padding-left: 5px; border-left: 2px s=
olid #136BCE; border-left-color: #4B89CF; color: #4B89CF;">
<p dir=3D"auto">Starting the client:</p>
<p dir=3D"auto">[root@charontmp ~]# systemctl start openafs-client<br>
Job for openafs-client.service failed because the control process exited wi=
th error code.<br>
See "systemctl status openafs-client.service" and "journalct=
l -xeu openafs-client.service" for details.<br>
[root@charontmp ~]# systemctl status openafs-client<br>
=C3=97 openafs-client.service - OpenAFS Client Service<br>
Loaded: loaded (/usr/lib/systemd/system/openafs-cl=
ient.service; disabled; preset: disabled)<br>
Active: failed (Result: exit-code) since Fri 2023-=
03-10 10:19:56 CET; 5s ago<br>
Process: 3920 ExecStartPre=3D/bin/bash -c fs sysname >=
; /dev/null 2>/dev/null; test $? -ne 0 || (echo AFS client appears to be=
running -- not starting && exit 1) (cod><br>
Process: 3922 ExecStartPre=3D/bin/sed -n w/usr/vice/etc/=
CellServDB /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist (co=
de=3Dexited, status=3D0/SUCCESS)<br>
Process: 3923 ExecStartPre=3D/bin/chmod 0644 /usr/vice/e=
tc/CellServDB (code=3Dexited, status=3D0/SUCCESS)<br>
Process: 3924 ExecStartPre=3D/sbin/modprobe openafs (cod=
e=3Dexited, status=3D0/SUCCESS)<br>
Process: 3927 ExecStart=3D/usr/vice/etc/afsd $AFSD_ARGS =
(code=3Dexited, status=3D1/FAILURE)<br>
CPU: 495ms</p>
<p dir=3D"auto">M=C3=A4r 10 10:19:56 charontmp systemd[1]: Starting openafs=
-client.service - OpenAFS Client Service...<br>
M=C3=A4r 10 10:19:56 charontmp afsd[3927]: afsd: ERROR: Cache dir check fai=
led (unable to stat cache base directory)<br>
M=C3=A4r 10 10:19:56 charontmp systemd[1]: openafs-client.service: Control =
process exited, code=3Dexited, status=3D1/FAILURE<br>
M=C3=A4r 10 10:19:56 charontmp systemd[1]: openafs-client.service: Failed w=
ith result 'exit-code'.<br>
M=C3=A4r 10 10:19:56 charontmp systemd[1]: Failed to start openafs-client.s=
ervice - OpenAFS Client Service.</p>
</blockquote>
<p dir=3D"auto">To clarify things:</p>
<p dir=3D"auto">openafs-client is still disabled. I tried to start it manua=
lly. So /usr/vice/cache is mounted at this time.</p>
<p dir=3D"auto">Regards<br>
Berthold Cogel</p>
<hr>
<p dir=3D"auto">OpenAFS-info mailing list<br>
<a href=3D"mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a><br=
>
<a href=3D"https://lists.openafs.org/mailman/listinfo/openafs-info">https:/=
/lists.openafs.org/mailman/listinfo/openafs-info</a></p>
</blockquote>
</div>
</div>
</body>
</html>
--=_MailMate_471F45BE-BAEF-4958-88F3-E6FADD89F7E5_=--