[Samba] Upgrade Samba 4

L.P.H. van Belle belle at bazuin.nl
Fri Aug 30 11:43:56 UTC 2019


No, thats also correct. 
 
Because in 4.10 new packages are added and removed. 
 
you need to run : apt-get dist-upgrade 
 
Small note, i always run : apt-get dist-upgrade -y 
-dy , download and yes. 
 
then run : apt-get dist-upgrade -y 
 
that makes sure you always have all the needed packages on you server before you upgrade. 
 
Greetz, 
 
Louis
 

Van: Marcio Demetrio Bacci [mailto:marciobacci at gmail.com] 
Verzonden: vrijdag 30 augustus 2019 13:40
Aan: L.P.H. van Belle
CC: samba at lists.samba.org
Onderwerp: Re: [Samba] Upgrade Samba 4



Hi, 

Really, version 4.9-12 solved the DBCHECK problem.

Apparently, in version 4.9-12 everything is OK, just not being able to upgrade to version 4.10, as follows:



Reading package lists ... Ready
Building dependency tree
Reading status info ... Ready
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists ... Ready
Building dependency tree
Reading status info ... Ready
Calculating update ... Ready
The following packages have been installed automatically and are no longer required:
   libfile-copy-recursive-perl update-inetd
Use 'apt autoremove' to remove them.
The following packages will be kept in their current versions:
   libldb1 libwbclient0 samba samba common samba common bin samba dsdb modules samba libs samba vfs modules winbind
0 updated packages, 0 new packages installed, 0 to be removed and 9 not updated.



I'm using Debian 9.9.


Regards,


Márcio Bacci


Em sex, 30 de ago de 2019 às 06:51, L.P.H. van Belle <belle at bazuin.nl> escreveu:

Hai, 
 
You can safely ignore that mesage. 
 
If both servers are done and running 4.8.  procede to 4.9
 
>> ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element' 
is fixed in later samba versions
 
Greetz, 
 
Louis
 
 
 


Van: Marcio Demetrio Bacci [mailto:marciobacci at gmail.com] 
Verzonden: vrijdag 30 augustus 2019 11:39
Aan: L.P.H. van Belle
CC: samba at lists.samba.org
Onderwerp: Re: [Samba] Upgrade Samba 4



Hi,

I upgraded to Samba 4.8-12 as follows:

Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC

Done
Checking smb.conf with samba-tool
Done
Configurando samba-dsdb-modules:amd64 (2:4.8.12-1~deb9) ...
Configurando winbind (2:4.8.12-1~deb9) ...
Instalando nova versão do arquivo de configuração /etc/init.d/winbind ...
Instalando nova versão do arquivo de configuração /etc/logrotate.d/winbind ...
Samba is being run as an AD Domain Controller: Masking winbind.service
Please ignore the following error about deb-systemd-helper not finding those services.
(winbind.service masked)
Removing obsolete conffile /etc/init/winbind.conf ...
Configurando samba (2:4.8.12-1~deb9) ...
Instalando nova versão do arquivo de configuração /etc/init.d/nmbd ...
Instalando nova versão do arquivo de configuração /etc/init.d/samba-ad-dc ...
Instalando nova versão do arquivo de configuração /etc/init.d/smbd ...
Instalando nova versão do arquivo de configuração /etc/logrotate.d/samba ...
Samba is being run as an AD Domain Controller: Masking smbd.service nmbd.service
Please ignore the following error about deb-systemd-helper not finding those services.
(smbd.service masked)
(nmbd.service masked)
Removing obsolete conffile /etc/init.d/samba ...
Removing obsolete conffile /etc/init/nmbd.conf ...
Removing obsolete conffile /etc/init/reload-smbd.conf ...
Removing obsolete conffile /etc/init/samba-ad-dc.conf ...
Removing obsolete conffile /etc/init/smbd.conf ...
A processar 'triggers' para libc-bin (2.24-11+deb9u4) ...
A processar 'triggers' para systemd (232-25+deb9u11) ...

Replication looks OK (samba-tool drs showrepl), but dbcheck does not.

samba-tool dbcheck --cross-ncs
ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 142, in run
    check_expired_tombstones=selftest_check_expired_tombstones)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 200, in __init__
    self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0])


Regards,


Márcio Bacci


Em sex, 30 de ago de 2019 às 06:18, L.P.H. van Belle via samba <samba at lists.samba.org> escreveu:

Hai, 

No, keep everything as is. 

Since your upgrading from 4.5 ( and this is probely why your upgrade to 4.7 broke ) 
Make sure you settings are respecting config requirements of 4.8. 

If you do hit an error.
Read : http://downloads.van-belle.nl/samba4/Upgrade-info.txt 
And if needed mail the list, im buzy with some servers atm, but i'll keep an eye on the list. 


Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Marcio Demetrio Bacci via samba
> Verzonden: vrijdag 30 augustus 2019 11:13
> Aan: sambalist
> Onderwerp: [Samba] Upgrade Samba 4
> 
> Hi,
> 
> To upgrade my secondary DC Samba 4.5-16 to 4.8 should I 
> remove the smb.conf
> file in /etc/samba first? I remember I tried last month to 
> upgrade from
> 4.5-16 to 4.7 and broke the installation.
> 
> Or are just the procedures below enough?
> 
> Create this file repo file for apt.
> echo "deb http://apt.van-belle.nl/debian stretch-samba48 main contrib
> non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
> 
> Import my key.
> wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc 
> | apt-key add
> -
> 
> apt update -y && apt upgrade -y
> Remove the 4.8 line from the repo, enable 4.9 repeat apt update && apt
> upgrade
> systemctl stop samba-ad-dc && systemctl start samba-ad-dc
> 
> Then I will upgrade to 4.9 and 4.10.
> 
> If all goes well, I'll do it for DC Samba 4 Master.
> 
> Regards,
> 
> Márcio Bacci
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 


-- 
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