[Samba] upgrade ununtu 20.04 -> 22.04 and samba 4.18 -> 4.19

Joachim Lindenberg samba at lindenberg.one
Thu Dec 14 21:32:39 UTC 2023


I upgraded two more DCs today without any issues.
At the end of do-release-upgrade I decided not to delete any obsolete packages as I suspect that might have deleted samba due to the disabled repository.
After the ubuntu upgrade I changed 4.18 to 4.19 and ran the usual apt update, apt upgrade.
Just to be sure I then installed the packages as listed @ https://wiki.samba.org/index.php/Distribution-specific_Package_Installation#Debian/Ubuntu (without lib*-winbind). 
After that I checked and the DC was running fine.
Joachim

-----Ursprüngliche Nachricht-----
Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Michael Tokarev via samba
Gesendet: Dienstag, 5. Dezember 2023 20:23
An: Joachim Lindenberg <samba at lindenberg.one>; samba at lists.samba.org
Betreff: Re: [Samba] upgrade ununtu 20.04 -> 22.04 and samba 4.18 -> 4.19

05.12.2023 19:55, Michael Tokarev via samba:
> 05.12.2023 17:21, Joachim Lindenberg via samba:
>> I just upgraded one of my DCs ununtu 20.04 -> 22.04 and samba 4.18 -> 4.19, but the Dc is not yet working again.
>>
>> systemctl status samba-ad-dc shows:
>>
>> Dec 05 12:48:39 cobra samba[749]: [2023/12/05 12:48:39.562920,  0] 
>> ../../source4/samba/service_task.c:36(task_server_terminate)
>> Dec 05 12:48:39 cobra samba[749]:   task_server_terminate: 
>> task_server_terminate: [winbindd child process exited] Dec 05 12:48:39 cobra systemd[1]: Started Samba AD Daemon.
>> Dec 05 12:48:39 cobra samba[694]: [2023/12/05 12:48:39.615787,  0] 
>> ../../source4/samba/process_prefork.c:630(prefork_child_pipe_handler)
>> Dec 05 12:48:39 cobra samba[694]:   prefork_child_pipe_handler: 
>> Parent 694, Child 719 exited with status 0 Dec 05 12:48:39 cobra 
>> samba[694]: [2023/12/05 12:48:39.622956,  0] 
>> ../../source4/samba/server.c:403(samba_terminate)
>> Dec 05 12:48:39 cobra samba[694]:   samba_terminate: samba_terminate 
>> of samba 694: winbindd child process exited Dec 05 12:48:39 cobra 
>> systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=1/FAILURE Dec 05 12:48:40 cobra systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'.
>> Dec 05 12:48:40 cobra systemd[1]: samba-ad-dc.service: Consumed 1.340s CPU time.
...

We exchanged some emails off-list.  The problem was that during upgrade, winbind package has been *uninstalled* from the system.  And sure thing, while samba ad-dc tried to execute winbind, it failed, with the messages above.

After installing winbind (and libnss-winbind which has also been uninstalled), the DC instantly started working.

I'm not yet sure why winbind has been uninstalled during this whole upgrade process.  Maybe Joachim can find some info in the logs, - grepping
/var/log/dpkg.log* for winbind might give some clues.  It will be interesting to find out what happened.

With fixed samba-ad-dc versioned depends: things should work again.  I'll upload fixed packages in a few days.  Once again, this brokeness of samba-ad-dc deps is just inconvenience, nothing more, since the package itself is empty and only used to collect all deps of AD-DC functionality in one package.

/mjt

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba




More information about the samba mailing list