Rowland Penny
2022-Dec-01 18:35 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
On 01/12/2022 18:30, Juan Ignacio wrote:> Do you know why I cannot usethe online backup of samba-tool on the new > server? > > root at DC2:/domain/samba/domainBackups# samba-tool domain backup online > --targetdir=/domain/samba/domainBackups --server=DC2 -UAdministrator > ERROR(runtime): uncaught exception - (3221225653, '{Device Timeout} The > specified I/O operation on %hs was not completed before the time-out > period expired.') > ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line > 186, in _run > ? ? return self.run(*args, **kwargs) > ? File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", > line 261, in run > ? ? ctx = join_clone(logger=logger, creds=creds, lp=lp, > ? File "/usr/lib/python3/dist-packages/samba/join.py", line 1552, in > join_clone > ? ? ctx = DCCloneContext(logger, server, creds, lp, targetdir=targetdir, > ? File "/usr/lib/python3/dist-packages/samba/join.py", line 1576, in > __init__ > ? ? super(DCCloneContext, ctx).__init__(logger, server, creds, lp, > ? File "/usr/lib/python3/dist-packages/samba/join.py", line 101, in > __init__ > ? ? ctx.site = ctx.find_dc_site(ctx.server) > ? File "/usr/lib/python3/dist-packages/samba/join.py", line 363, in > find_dc_site > ? ? cldap_ret = ctx.net.finddc(address=server, >With python errors, the last line is usually the culprit and so it looks like it is timing out waiting for the search for a DC to return. We are back to checking the DNS for errors. Rowland
Juan Ignacio
2022-Dec-01 18:57 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
Seems like the online backup worked if i backup the original DC "DC1", not if I put the new one "DC2". Of course i'm using the command on the new server with 4.16 samba-tool domain backup online --targetdir=/domain/samba/domainBackups --server=DC1 -UAdministrator Worked!! samba-tool domain backup online --targetdir=/domain/samba/domainBackups --server=DC2 -UAdministrator NOT WORKED Any suggestions? To check the errors. El jue, 1 dic 2022 a las 15:36, Rowland Penny via samba (< samba at lists.samba.org>) escribi?:> > > On 01/12/2022 18:30, Juan Ignacio wrote: > > > Do you know why I cannot usethe online backup of samba-tool on the new > > server? > > > > root at DC2:/domain/samba/domainBackups# samba-tool domain backup online > > --targetdir=/domain/samba/domainBackups --server=DC2 -UAdministrator > > ERROR(runtime): uncaught exception - (3221225653, '{Device Timeout} The > > specified I/O operation on %hs was not completed before the time-out > > period expired.') > > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line > > 186, in _run > > return self.run(*args, **kwargs) > > File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", > > line 261, in run > > ctx = join_clone(logger=logger, creds=creds, lp=lp, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 1552, in > > join_clone > > ctx = DCCloneContext(logger, server, creds, lp, targetdir=targetdir, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 1576, in > > __init__ > > super(DCCloneContext, ctx).__init__(logger, server, creds, lp, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 101, in > > __init__ > > ctx.site = ctx.find_dc_site(ctx.server) > > File "/usr/lib/python3/dist-packages/samba/join.py", line 363, in > > find_dc_site > > cldap_ret = ctx.net.finddc(address=server, > > > > With python errors, the last line is usually the culprit and so it looks > like it is timing out waiting for the search for a DC to return. We are > back to checking the DNS for errors. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Juan Ignacio
2022-Dec-02 00:07 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
Got some more info using debug=3. Something is wrong with lmhosts on DC2. Im looking for some info, maybe its easy to solve. samba-tool domain backup online --debug=3 --targetdir=/domain/samba/domainBackup --server=dc2. <http://kronos.kennedy.edu>ourdomain.org -UAdministrator lpcfg_load: refreshing parameters from /etc/samba/smb.conf INFO 2022-12-01 20:25:33,087 pid:558 /usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py #178: Creating targetdir /domain/samba/domainBackup... GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'ncalrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'ntlmssp_resume_ccache' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'http_negotiate' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered resolve_lmhosts: Attempting lmhosts lookup for name DC2.ourdomain.org<0x20> finddcs: No matching CLDAP server found ERROR(runtime): uncaught exception - (3221225653, '{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired.') File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 261, in run ctx = join_clone(logger=logger, creds=creds, lp=lp, El jue, 1 dic 2022 a las 15:36, Rowland Penny via samba (< samba at lists.samba.org>) escribi?:> > > On 01/12/2022 18:30, Juan Ignacio wrote: > > > Do you know why I cannot usethe online backup of samba-tool on the new > > server? > > > > root at DC2:/domain/samba/domainBackups# samba-tool domain backup online > > --targetdir=/domain/samba/domainBackups --server=DC2 -UAdministrator > > ERROR(runtime): uncaught exception - (3221225653, '{Device Timeout} The > > specified I/O operation on %hs was not completed before the time-out > > period expired.') > > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line > > 186, in _run > > return self.run(*args, **kwargs) > > File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", > > line 261, in run > > ctx = join_clone(logger=logger, creds=creds, lp=lp, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 1552, in > > join_clone > > ctx = DCCloneContext(logger, server, creds, lp, targetdir=targetdir, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 1576, in > > __init__ > > super(DCCloneContext, ctx).__init__(logger, server, creds, lp, > > File "/usr/lib/python3/dist-packages/samba/join.py", line 101, in > > __init__ > > ctx.site = ctx.find_dc_site(ctx.server) > > File "/usr/lib/python3/dist-packages/samba/join.py", line 363, in > > find_dc_site > > cldap_ret = ctx.net.finddc(address=server, > > > > With python errors, the last line is usually the culprit and so it looks > like it is timing out waiting for the search for a DC to return. We are > back to checking the DNS for errors. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >