Juan Ignacio
2022-Dec-01 21:24 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
I ping DC2.OURDOMAIN.ORG from itself and work. Its resolving localhost. 127.0.0.1 I ping DC2 and is resolving localhost too. If i ping DC2 from DC1 the old server its resolving the address correctly too. Thx. El jue, 1 dic 2022 15:57, Juan Ignacio <juan.ignacio.pazos at gmail.com> escribi?:> 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-01 23:05 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
I ping DC2.OURDOMAIN.ORG <http://dc2.ourdomain.org/> from itself and work. Its resolving localhost. 127.0.1.1 I ping DC2 and is resolving localhost too. If i ping DC2 from DC1 the old server its resolving the address correctly too. Thx. El jue, 1 dic 2022 18:24, Juan Ignacio <juan.ignacio.pazos at gmail.com> escribi?:> I ping DC2.OURDOMAIN.ORG from itself and work. > > Its resolving localhost. 127.0.0.1 > > I ping DC2 and is resolving localhost too. > > > If i ping DC2 from DC1 the old server its resolving the address correctly > too. > > > Thx. > > > > El jue, 1 dic 2022 15:57, Juan Ignacio <juan.ignacio.pazos at gmail.com> > escribi?: > >> 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 >>> >>
Rowland Penny
2022-Dec-02 08:56 UTC
[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).
On 01/12/2022 21:24, Juan Ignacio wrote:> I ping DC2.OURDOMAIN.ORG <http://DC2.OURDOMAIN.ORG> from itself and work. > > Its resolving localhost. 127.0.0.1If you are pinging that FQDN and getting '127.0.0.1' back, then something is wrong, you should be getting the computers ipaddress e.g. adminuser at rpidc2:~ $ ping -c1 rpidc2.samdom.example.com PING rpidc2.samdom.example.com (192.168.1.3) 56(84) bytes of data. 64 bytes from rpidc2.samdom.example.com (192.168.1.3): icmp_seq=1 ttl=64 time=0.167 ms Please post the /etc/resolv.conf and /etc/hosts files from both machines. Rowland