After Yum Upgrade - Shares no more accessible

do you have a posebility for secure upload for your eys only ?

The first upload link has probably expired. Please try with this one!

https://nethservice.nethesis.it/nextcloud/index.php/s/xBx5yggxjqMmk7n

done
both ends with

session setup failed: NT_STATUS_LOGON_FAILURE

When you use the NETBIOS\user syntax the backslash must be quoted against bash expansion!

smbclient -L <FILESERVER_IP_ADDRESS> -U 'DOMAIN\user' -d10
smbclient -L <DC_IP_ADDRESS> -U 'DOMAIN\user' -d10

Please note the single quotes aroundn the user name…

As alternative, type the backslash twice

smbclient -L <FILESERVER_IP_ADDRESS> -U DOMAIN\\user -d10
smbclient -L <DC_IP_ADDRESS> -U DOMAIN\\user -d10
1 Like

DC answers more detailed DC2.txt
but
FS2.txt

session setup failed: NT_STATUS_LOGON_FAILURE

libwbclient.so.0.14-64 auto /usr/lib64/sssd/modules/libwbclient.so.0.14.0

1 Like

It seems that latest samba update is not the problem, but actually triggered an unexpected condition:

[root@neth ~]# alternatives --list | grep libwbclient
libwbclient.so.0.14-64	auto	/usr/lib64/sssd/modules/libwbclient.so.0.14.0

The sssd library is loaded by winbind instead of the samba one. The sssd library does not work with our setup.

The fix is trivial:

[root@neth ~]# signal-event nethserver-samba-update 
[root@neth ~]# echo $?
0
[root@neth ~]# alternatives --list | grep libwbclient
libwbclient.so.0.14-64	manual	/usr/lib64/samba/wbclient/libwbclient.so.0.14

The nethserver-samba-update event already ships the fix, but is not automatically triggered by upstream updates. We probably need to cover this scenario with better code.

It is the first time 7.6 receives a samba package update.

The issue could hit only servers updated from 7.5 (or previous) because they have sssd-libwbclient installed. As alternative fix run:

yum remove sssd-libwbclient
systemctl restart winbind

Thanks for helping me find the issue solution!

7 Likes

davidep :smiling_face_with_three_hearts:

which solution did you use on our system? Just to know.

1 Like

The signal-event fixed the problem. Uninstalling sssd-libwbclient can avoid future issues too.

There will be a nethserver-samba update that will hopefully fix the bug for the future, but we have to evaluate what is the best approach.

1 Like

Thank you!
“signal-event nethserver-samba-update” helped.
All our multifunctional printers can now access the shares again.

I removed sssd-libwbclient as well.

1 Like

2 posts were merged into an existing topic: Backup failure post samba update

Tracked by

1 Like

Also confirm your solution.

Removed sssd-libwbclient and updated my production system with subscription.
Almost same packages as mentioned by @pfornara.
Due to a new kernel (957.27.2) rebooted system.
All Shares are still accessible after update and reboot.

Thank’s a lot for this to all. So I’m happy, that I had no issue with my system! :smile:

3 Likes

@giacomo and I are talking about how to implement the fix. Removing that old dependency seems safer over trying to workaround the alternatives symlink labyrinth.

However we have to introduce an Obsoletes/Conflicts RPM tag, which is somewhat evil too!

3 Likes

Stupid question for clarity time:

Does this issue come down to having the package being left over from the CentOS 7.5 to 7.6 upgrade? Or is it specific to the NethServer 7.5 to 7.6 upgrade?

1 Like

It comes from NethServer 7.5 setup, that used to run without winbind until upstream changed the game with 7.6.

Different packages (namely libwbclient and sssd-libwbclient) try to configure alternatives when they are added/updated/removed and lead to inconsistent and faulty results.

The nethserver-samba attempted to fix this condition since 7.6 but was not enough: the first samba update caused the wrong library to be loaded by winbind.

I think this is a corner case from upstream perspective, however I opened an upstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1737888

5 Likes

The fix is available from nethserver-testing

Please pick test cases from https://github.com/NethServer/dev/issues/5801#issuecomment-518995948

Commands:

yum update
yum --enablerepo=nethserver-testing update nethserver-samba

Fix released in nethserver-samba-4.3.2-1.ns7.noarch.rpm

3 Likes

A post was split to a new topic: Cannot change desktop settings since Samba update

2 posts were split to a new topic: Shared folders not accessible after yum upgrade