[Samba] ERROR:connection refused after provision
rpenny at samba.org
Fri Nov 18 20:35:58 UTC 2016
On Fri, 18 Nov 2016 15:29:51 -0500 (CST)
Felipe_G0NZÁLEZ_SANTIAG0 <fgonzalez at uci.cu> wrote:
> See comments at the end--->
> ----- Original Message -----
> | From: "Rowland Penny" <rpenny at samba.org>
> | To: samba at lists.samba.org
> | Sent: Tuesday, November 15, 2016 3:50:54 PM
> | Subject: Re: [Samba] ERROR:connection refused after provision
> | On Tue, 15 Nov 2016 15:25:57 -0500 (CST)
> | Felipe_G0NZÁLEZ_SANTIAG0 via samba <samba at lists.samba.org> wrote:
> | > Hello,
> | > After I provision my server, when I try to create the DNS reverse
> | > zone I get this error: Failed to connect host 10.53.3.11 on port
> 135 | > - NT_STATUS_CONNECTION_REFUSED Failed to connect host
> 10.53.3.11 | > (10.53.3.11) on port 135 -
> NT_STATUS_CONNECTION_REFUSED. | > ERROR(runtime): uncaught exception
> - (-1073741258, 'The connection | > was refused') File
> | > "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
> | > 175, in _run return self.run(*args, **kwargs) File
> | > "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 850,
> in | > run dns_conn = dns_connect(server, self.lp, self.creds) File
> | > "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40,
> in | > dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp,
> creds) | >
> | > Besides :
> | > kinit: Cannot contact any KDC for realm
> | > wbinfo -u:
> | > could not obtain winbind interface details:
> | > WBC_ERR_WINBIND_NOT_AVAILABLE could not obtain winbind domain
> name! | > Error looking up domain users
> | >
> | > and samba-tool processes:
> | > Service: PID
> | > -----------------------------
> | >
> | > Then, I reboot the server and all work fine.
> | > What could be happening?
> | > Any idea? I need this process works fine without rebooting.
> | >
> | It should work without a reboot. I take it you are starting Samba
> | before trying to create the reverse zone and you are pointing the
> | nameserver in /etc/resolv.conf to the DC itself (either its IP or
> | 127.0.0.1) ?
> | Rowland
> Yes, I re-start samba just after provision.
> And yes, I point the nameserver to its real IP address (nameserver
> I've a question about the /etc/hosts file's content: Can I add
> '10.53.3.11 ubuntu.ejemplo.cu ubuntu'
> and keep the entry: '127.0.1.1 ubuntu' ??
> Should I delete this entry ?
If your Samba machine uses a fixed ip, then it should be in /etc/hosts
As for '127.0.1.1', this usually means you are using Network Manager
and this uses a part of dnsmasq, it is usually recommended to stop
Network Manager doing this (in the conf file) and remove the
'127.0.1.1' line from /etc/hosts
More information about the samba