Lmloge
2019-Dec-20 10:09 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Hello, > Looks like your in the middle of the dist-upgrade in buster. Yes indeed. > looks like bind is upgrading and samba-libs is not yet installed. Indeed, I think it is not: # dpkg -L samba-libs dpkg-query: package 'samba-libs' is not installed Also the following directories no longer exist: - /usr/lib/x86_64-linux-gnu/samba/ - /var/lib/samba/bind-dns/ > apt-get update --fix-missing OK > apt-get install -f -------------- Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up bind9 (1:9.11.5.P4+dfsg-5.1) ... bind9-pkcs11.service is a disabled or a static unit not running, not starting it. bind9-resolvconf.service is a disabled or a static unit not running, not starting it. Job for bind9.service failed because the control process exited with error code. See "systemctl status bind9.service" and "journalctl -xe" for details. invoke-rc.d: initscript bind9, action "restart" failed. ??? bind9.service - BIND Domain Name Server ?? Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled) ?? Active: failed (Result: exit-code) since Fri 2019-12-20 10:36:41 CET; 9ms ago ???? Docs: man:named(8) ? Process: 3313 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE) Dec 20 10:36:41 MACHINE named[3314]: Loading 'AD DNS Zone' using driver dlopen Dec 20 10:36:41 MACHINE named[3314]: dlz_dlopen failed to open library '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so' - /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so: cannot open shared object file: No such file or directory Dec 20 10:36:41 MACHINE named[3314]: dlz_dlopen of 'AD DNS Zone' failed Dec 20 10:36:41 MACHINE named[3314]: SDLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: DLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: loading configuration: failure Dec 20 10:36:41 MACHINE named[3314]: exiting (due to fatal error) Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Control process exited, code=exited, status=1/FAILURE Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Failed with result 'exit-code'. Dec 20 10:36:41 MACHINE systemd[1]: Failed to start BIND Domain Name Server. dpkg: error processing package bind9 (--configure): ?installed bind9 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: ?bind9 E: Sub-process /usr/bin/dpkg returned an error code (1) -------------- I should stop here, but I also tried the other things you suggested, just in case.> systemctl edit bind9 > # that opens this file : > # /etc/systemd/system/bind9.service.d/override.conf > # Add : > [Service] > ExecReloadI did that. > If all above is not working, > Then disable this line : include "/var/lib/samba/bind-dns/named.conf"; > And repeat the apt-get steps from above. Is it in the file "/etc/bind/named.conf.local" that I should make that comment? What I have in this file is: include "/var/lib/samba/private/named.conf" not: include "/var/lib/samba/bind-dns/named.conf" I commented the line that I have and re-launched the three commands: apt-get update --fix-missing apt-get install -f dpkg --configure -a They do not fail anymore but when I try to start bind, it fails. With the same error as before: dlz_dlopen failed to open library '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so' - /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so: cannot open shared object file: No such file or directory (By the way, I have no "sudo" command.) Best regards, -- L?a On 20/12/2019 8:48 AM, L.P.H. van Belle wrote:> Hai, > > Ok, for me so i know where you now at. > Looks like your in the middle of the dist-upgrade in buster. > > Rowland is correct, looks like bind is upgrading and samba-libs is not yet installed. > If samba-libs is installed, lookup this line in you bind config. > > include "/var/lib/samba/bind-dns/named.conf"; > > Open "/var/lib/samba/bind-dns/named.conf" and verify if its set to > /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so << 11 not 10 . > > Other steps are : > > sudo apt-get update --fix-missing > sudo apt-get install -f > sudo dpkg --configure -a > > It looks like you did hit an old bug. > You can add this : > > systemctl edit bind9 > # that opens this file : > # /etc/systemd/system/bind9.service.d/override.conf > # Add : > [Service] > ExecReload> > # To prevent bind from crashing on reload with bind9_dlz.so enabled. > > If all above is not working, > Then disable this line : include "/var/lib/samba/bind-dns/named.conf"; > And repeat the apt-get steps from above. > > > Greetz, > > Louis > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Lmloge via samba >> Verzonden: donderdag 19 december 2019 19:15 >> Aan:samba at lists.samba.org >> Onderwerp: Re: [Samba] Upgrading from Debian Stretch to >> Buster, Van Belle package >> >> Hello Louis, >> >> Sorry for my late answer. >> I couldn't work on that earlier. >> >> So I did steps: >> stretch-samba48 >> stretch-samba49 >> stretch-samba410 >> Then when your at 4.10 you can safe upgrade to buster to >> buster-samba410 >> >> At last step, apt-get dist-upgrade, bind9 failed: >> -------------------------------------------------------------- >> Installing new version of config file /etc/network/if-down.d/bind9 ... >> Installing new version of config file /etc/network/if-up.d/bind9 ... >> Installing new version of config file /etc/ppp/ip-down.d/bind9 ... >> Installing new version of config file /etc/ppp/ip-up.d/bind9 ... >> bind9-pkcs11.service is a disabled or a static unit not >> running, not starting it. >> bind9-resolvconf.service is a disabled or a static unit not >> running, not starting it. >> Job for bind9.service failed because the control process >> exited with error code. >> See "systemctl status bind9.service" and "journalctl -xe" for details. >> invoke-rc.d: initscript bind9, action "restart" failed. >> ??? bind9.service - BIND Domain Name Server >> Loaded: loaded (/lib/systemd/system/bind9.service; >> enabled; vendor preset: enabled) >> Active: failed (Result: exit-code) since Thu 2019-12-19 >> 18:58:04 CET; 7ms ago >> Docs: man:named(8) >> Process: 4847 ExecStart=/usr/sbin/named $OPTIONS >> (code=exited, status=1/FAILURE) >> Process: 4840 ExecStop=/usr/sbin/rndc stop (code=exited, >> status=0/SUCCESS) >> Main PID: 4795 (code=exited, status=0/SUCCESS) >> >> Dec 19 18:58:04 leonora named[4848]: listening on IPv4 >> interface enp2s0, 192.168.3.4#53 >> Dec 19 18:58:04 leonora named[4848]: generating session key >> for dynamic DNS >> Dec 19 18:58:04 leonora named[4848]: sizing zone task pool >> based on 5 zones >> Dec 19 18:58:04 leonora named[4848]: Loading 'AD DNS Zone' >> using driver dlopen >> Dec 19 18:58:04 leonora named[4848]: dlz_dlopen failed to >> open library >> '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so' - >> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so: cannot >> open shared object file: No such file or directory >> Dec 19 18:58:04 leonora named[4848]: dlz_dlopen of 'AD DNS >> Zone' failed >> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Control >> process exited, code=exited status=1 >> Dec 19 18:58:04 leonora systemd[1]: Failed to start BIND >> Domain Name Server. >> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Unit >> entered failed state. >> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Failed >> with result 'exit-code'. >> dpkg: error processing package bind9 (--configure): >> installed bind9 package post-installation script subprocess >> returned error exit status 1 >> >> [...] >> >> Errors were encountered while processing: >> bind9 >> E: Sub-process /usr/bin/dpkg returned an error code (1) >> W: Operation was interrupted before it could finish >> -------------------------------------------------------------- >> Can you help? >> Best regards, >> -- >> L?a >> >> >> =============================================================>> Hai L?a, >> >> If you on debian stretch now, i suggest you do the following. >> >> First upgrade samba on debian stretch, upto 4.10.10. >> >>> /Is it this line that I will have to put in >>> />/"/etc/apt/sources.list.d/van-belle.list": />/deb >>> http://apt.van-belle.nl/debian buster-samba411 main >>> />/contrib non-free / >>> Yes, but as said, i suggest, use small steps in the upgrade. >>> >>> stretch-samba48 >>> stretch-samba49 >>> stretch-samba410 >>> Then when your at 4.10 you can safe upgrade to buster to >>> buster-samba410 >>> buster-samba411 >>> >>> When upgrading use : apt-get dist-upgrade --autoremove >>> Which is needed to replace and remove optional samba packages. >>> In the step from 4.10 to 4.11 the upgrade might stop. >>> Then use: apt --fix-broken install >>> That should remove libldb1 and upgrade contineus with >>> installing libldb2. >>> >>> So far, >>> >>> >>> Greetz, >>> >>> Louis >>> >>> >>> =============================================================>>> On 04/12/2019 10:48 AM, Lmloge wrote: >>> Hello, >>> >>> I am preparing for upgrading from Debian Stretch to Buster. >>> I am using Louis Van Belle's Samba packages. >>> >>> My current Samba version is: >>> # smbstatus --version >>> Version 4.7.7-Debian >>> >>> I can see that the Samba version that will be installed, when I >>> upgrade from Stretch to Buster, will be the 4.11 since this is the >>> current stable release... >>> >>> I would like to know if there are major changes between those two >>> versions. >>> (This is because in the past, I had to face the passage from Samba3 to >>> Samba4 without having been prepared to it and my system was broken >>> down for several weeks before I could set up, thanks to Rowland Penny, >>> a proper system.) >>> >>> Is it this line that I will have to put in >>> "/etc/apt/sources.list.d/van-belle.list": >>> debhttp://apt.van-belle.nl/debian buster-samba411 main contrib non-free >>> ????????????????????????????????? /\/\/\/\/\/\/\/\ >>> Thank you for your help. >>> Best regards, >>> -- >>> L?a
Lmloge
2019-Dec-20 10:39 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Hello,> disable this line in the bind config, if not done. > //include "/var/lib/samba/private/named.conf"It is disabled. # systemctl stop bind9 <nothing> # systemctl start bind9 <nothing> # apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. # ps aux | egrep 'bind|named' bind????? 1368? 0.0? 0.2 378812 20028 ???????? Ssl 11:32?? 0:00 /usr/sbin/named -u bind -4 root????? 1386? 0.0? 0.0?? 6208?? 892 pts/0??? S+ 11:34?? 0:00 grep -E bind|named Best regards, -- L?a
L.P.H. van Belle
2019-Dec-20 10:59 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Ok, so now run : apt dist-upgrade --autoremove> -----Oorspronkelijk bericht----- > Van: Lmloge [mailto:lmloge at orange.fr] > Verzonden: vrijdag 20 december 2019 11:39 > Aan: L.P.H. van Belle; samba at lists.samba.org > Onderwerp: Re: [Samba] Upgrading from Debian Stretch to > Buster, Van Belle package > > Hello, > > > disable this line in the bind config, if not done. > > //include "/var/lib/samba/private/named.conf" > > It is disabled. > > # systemctl stop bind9 > <nothing> > > # systemctl start bind9 > <nothing> > > # apt-get install -f > Reading package lists... Done > Building dependency tree > Reading state information... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > # ps aux | egrep 'bind|named' > bind????? 1368? 0.0? 0.2 378812 20028 ???????? Ssl 11:32?? 0:00 > /usr/sbin/named -u bind -4 > root????? 1386? 0.0? 0.0?? 6208?? 892 pts/0??? S+ 11:34?? > 0:00 grep -E > bind|named > > Best regards, > -- > L?a > >
L.P.H. van Belle
2019-Dec-20 11:02 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Ow, you also might need to "unmask" bind Can you run these, if you have any error, show me the outputs. systemctl unmask bind9 systemctl start bind9 systemctl status bind9 Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > L.P.H. van Belle via samba > Verzonden: vrijdag 20 december 2019 12:00 > Aan: Lmloge > CC: samba at lists.samba.org > Onderwerp: Re: [Samba] Upgrading from Debian Stretch to > Buster, Van Belle package > > Ok, so now run : > > apt dist-upgrade --autoremove > > > > > -----Oorspronkelijk bericht----- > > Van: Lmloge [mailto:lmloge at orange.fr] > > Verzonden: vrijdag 20 december 2019 11:39 > > Aan: L.P.H. van Belle; samba at lists.samba.org > > Onderwerp: Re: [Samba] Upgrading from Debian Stretch to > > Buster, Van Belle package > > > > Hello, > > > > > disable this line in the bind config, if not done. > > > //include "/var/lib/samba/private/named.conf" > > > > It is disabled. > > > > # systemctl stop bind9 > > <nothing> > > > > # systemctl start bind9 > > <nothing> > > > > # apt-get install -f > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > > > # ps aux | egrep 'bind|named' > > bind????? 1368? 0.0? 0.2 378812 20028 ???????? Ssl 11:32?? 0:00 > > /usr/sbin/named -u bind -4 > > root????? 1386? 0.0? 0.0?? 6208?? 892 pts/0??? S+ 11:34?? > > 0:00 grep -E > > bind|named > > > > Best regards, > > -- > > L?a > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Lmloge
2019-Dec-20 11:11 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Hello, # systemctl unmask bind9 <nothing> # systemctl start bind9 <nothing> # systemctl status bind9 ??? bind9.service - BIND Domain Name Server ?? Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled) ? Drop-In: /etc/systemd/system/bind9.service.d ?????????? ??????override.conf ?? Active: active (running) since Fri 2019-12-20 11:32:55 CET; 32min ago ???? Docs: man:named(8) ?Main PID: 1368 (named) ??? Tasks: 7 (limit: 4915) ?? Memory: 20.6M ?? CGroup: /system.slice/bind9.service ?????????? ??????1368 /usr/sbin/named -u bind -4 Dec 20 11:41:59 MACHINE named[1368]: resolver priming query complete Dec 20 11:42:00 MACHINE named[1368]: resolver priming query complete Dec 20 11:44:04 MACHINE named[1368]: resolver priming query complete Dec 20 11:44:18 MACHINE named[1368]: resolver priming query complete Dec 20 11:44:19 MACHINE named[1368]: resolver priming query complete Dec 20 11:45:46 MACHINE named[1368]: resolver priming query complete Dec 20 11:56:56 MACHINE named[1368]: resolver priming query complete Dec 20 11:56:57 MACHINE named[1368]: resolver priming query complete Dec 20 11:57:33 MACHINE named[1368]: resolver priming query complete Dec 20 12:00:04 MACHINE named[1368]: resolver priming query complete # apt dist-upgrade --autoremove Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Best regards, -- L?a
L.P.H. van Belle
2019-Dec-20 11:30 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Ok, Run : apt install samba winbind acl Dont worry if it errors out. I m out for a quick run for some food, im back in about 30 min. Louis> -----Oorspronkelijk bericht----- > Van: Lmloge [mailto:lmloge at orange.fr] > Verzonden: vrijdag 20 december 2019 12:11 > Aan: L.P.H. van Belle > CC: samba at lists.samba.org > Onderwerp: Re: [Samba] Upgrading from Debian Stretch to > Buster, Van Belle package > > Hello, > > # systemctl unmask bind9 > <nothing> > > # systemctl start bind9 > <nothing> > > # systemctl status bind9 > ???? bind9.service - BIND Domain Name Server > ?? Loaded: loaded (/lib/systemd/system/bind9.service; > enabled; vendor > preset: enabled) > ? Drop-In: /etc/systemd/system/bind9.service.d > ?????????? ??????override.conf > ?? Active: active (running) since Fri 2019-12-20 11:32:55 > CET; 32min ago > ???? Docs: man:named(8) > ?Main PID: 1368 (named) > ??? Tasks: 7 (limit: 4915) > ?? Memory: 20.6M > ?? CGroup: /system.slice/bind9.service > ?????????? ??????1368 /usr/sbin/named -u bind -4 > > Dec 20 11:41:59 MACHINE named[1368]: resolver priming query complete > Dec 20 11:42:00 MACHINE named[1368]: resolver priming query complete > Dec 20 11:44:04 MACHINE named[1368]: resolver priming query complete > Dec 20 11:44:18 MACHINE named[1368]: resolver priming query complete > Dec 20 11:44:19 MACHINE named[1368]: resolver priming query complete > Dec 20 11:45:46 MACHINE named[1368]: resolver priming query complete > Dec 20 11:56:56 MACHINE named[1368]: resolver priming query complete > Dec 20 11:56:57 MACHINE named[1368]: resolver priming query complete > Dec 20 11:57:33 MACHINE named[1368]: resolver priming query complete > Dec 20 12:00:04 MACHINE named[1368]: resolver priming query complete > > # apt dist-upgrade --autoremove > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > Best regards, > -- > L?a > >
Maybe Matching Threads
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package