Author Topic: FATAL: Couldn't connect to samba LDAP server  (Read 7651 times)

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #15 on: September 29, 2012, 05:47:01 pm »
I am just going to do a fresh install and see.

Did you set your interfaces paste you logs and setup to pastebin and zentyal.log and syslog last lines are the most important.

I am going to do it this way and see. http://forum.zentyal.org/index.php/topic,12176.msg50210.html#msg50210


Apols Houston, We Have a Problem

http://pastebin.com/gWLatWBs
« Last Edit: September 29, 2012, 06:34:21 pm by FarquahrWindsor »

kajan

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #16 on: September 29, 2012, 06:03:56 pm »
Did exactly this:

- installed ubuntu-server from iso
- added to apt zentyal repositories
- imported keys
- apt-get update, upgrade
- installed both zentyal packages
- via web installed network configuration
- set the static ip, let the hostname and domain on default
- installed dns, ntp
- installed users
- installed file sharing

root@ubuntu:~# cat /etc/network/interfaces
auto lo eth0

iface lo inet loopback
iface eth0 inet static
        address 192.168.1.150
        netmask 255.255.255.0
        broadcast 192.168.1.255

test@ubuntu:~$ sudo /etc/init.d/zentyal samba restart
[sudo] password for test:
 * Restarting Zentyal module: samba                                      [fail]

root@ubuntu:~# tail -f /var/log/zentyal/zentyal.log
2012/09/29 17:53:24 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: samba
2012/09/29 17:54:16 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: dns
2012/09/29 17:54:29 INFO> LDB.pm:379 EBox::LDB::ldapUsersToLdb - Loading Zentyal users into samba database
2012/09/29 17:54:29 INFO> LDB.pm:406 EBox::LDB::ldapGroupsToLdb - Loading Zentyal groups into samba database
2012/09/29 17:54:29 INFO> LDB.pm:444 EBox::LDB::ldapServicePrincipalsToLdb - Loading Zentyal service principals into samba database
2012/09/29 17:56:28 DEBUG> LDB.pm:156 EBox::LDB::safeConnect - FATAL: Couldn't connect to samba LDAP server
2012/09/29 17:56:28 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: FATAL: Couldn't connect to samba LDAP server

tail -f /var/log/samba/samba.log

  Registered ZENTYAL-DOMAIN<1c> with 127.0.1.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<1c> with 127.0.0.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 192.168.1.150 on interface 192.168.1.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 127.0.1.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 127.0.0.1 on interface 127.255.255.255
[2012/09/29 17:59:51.264839,  3] ../lib/ldb-samba/ldb_wrap.c:318(ldb_wrap_connect)
  ldb_wrap open of idmap.ldb
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:115(sig_term)
  SIGTERM: killing children
  Exiting pid 1274 on SIGTERM
  Exiting pid 1267 on SIGTERM
  Exiting pid 1276 on SIGTERM
  Exiting pid 1265 on SIGTERM
  Exiting pid 1266 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1271 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1270 on SIGTERM
  Exiting pid 1277 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1272 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1268 on SIGTERM
  Exiting pid 1253 on SIGTERM
  Exiting pid 1275 on SIGTERM
  Exiting pid 1269 on SIGTERM

... still repeating

tail /var/log/syslog

Sep 29 18:01:10 ubuntu smbd[1620]: [2012/09/29 18:01:10.157736,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:10 ubuntu smbd[1620]:   standard input is not a socket, assuming -D option
Sep 29 18:01:14 ubuntu smbd[1659]: [2012/09/29 18:01:14.476259,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:14 ubuntu smbd[1659]:   Unable to open printcap file /etc/printcap for read!
Sep 29 18:01:20 ubuntu kernel: [ 7195.003990] init: samba4 main process (1602) killed by KILL signal
Sep 29 18:01:22 ubuntu kernel: [ 7197.670879] init: zentyal.s4sync main process (1671) killed by TERM signal
Sep 29 18:01:26 ubuntu smbd[1687]: [2012/09/29 18:01:26.972715,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:26 ubuntu smbd[1687]:   standard input is not a socket, assuming -D option
Sep 29 18:01:30 ubuntu smbd[1701]: [2012/09/29 18:01:30.529481,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:30 ubuntu smbd[1701]:   Unable to open printcap file /etc/printcap for read!

when zentyal samba restart fails, then dns update on bind is done and looks that samba4 starts to listen on 389.

Sep 29 18:01:45 ubuntu smbd[1766]: [2012/09/29 18:01:45.689188,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:45 ubuntu smbd[1766]:   standard input is not a socket, assuming -D option
Sep 29 18:01:48 ubuntu smbd[1783]: [2012/09/29 18:01:48.551615,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:48 ubuntu smbd[1783]:   Unable to open printcap file /etc/printcap for read!
Sep 29 18:01:54 ubuntu named[1588]: samba_dlz: starting transaction on zone zentyal-domain.lan
Sep 29 18:01:54 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=1848729761.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:54 ubuntu named[1588]: client 127.0.0.1#44786: updating zone 'zentyal-domain.lan/NONE': adding an RR at 'zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 1 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: starting transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=ubuntu.zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=2509382245.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:55 ubuntu named[1588]: client 127.0.0.1#33877: updating zone 'zentyal-domain.lan/NONE': adding an RR at 'ubuntu.zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset ubuntu.zentyal-domain.lan 'ubuntu.zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 3 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: starting transaction on zone _msdcs.zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=gc._msdcs.zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=796379678.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:55 ubuntu named[1588]: client 127.0.0.1#49800: updating zone '_msdcs.zentyal-domain.lan/NONE': adding an RR at 'gc._msdcs.zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset gc._msdcs.zentyal-domain.lan 'gc._msdcs.zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset _msdcs.zentyal-domain.lan '_msdcs.zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 1 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset _msdcs.zentyal-domain.lan '_msdcs.zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone _msdcs.zentyal-domain.lan
Sep 29 18:01:58 ubuntu ddclient[17083]: WARNING:  file /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Sep 29 18:02:48 ubuntu smbd[1783]: [2012/09/29 18:02:48.536989,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:02:48 ubuntu smbd[1783]:   Unable to open printcap file /etc/printcap for read!


FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #17 on: September 29, 2012, 06:40:12 pm »
I am just going to do a fresh install and see.

Did you set your interfaces paste you logs and setup to pastebin and zentyal.log and syslog last lines are the most important.

I am going to do it this way and see. http://forum.zentyal.org/index.php/topic,12176.msg50210.html#msg50210


Apols Houston, We Have a Problem

http://pastebin.com/gWLatWBs

christian

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #18 on: September 29, 2012, 06:46:37 pm »
Stuart, why do you quote yourself, especially to show one post from this same thread, no more than one post above.
Except if there is something I really don't understand, what does it bring ?  ???

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #19 on: September 29, 2012, 06:53:54 pm »
I edited the last bit and noticed the time frame between posts over-lapped.

new installs don't seem to be working chris

[EDIT]

It did work !

Quote
Don't know where
Don't know when
But I know we'll meet again

[EDIT]
Yeah sorry about doubting as this is new maybe today or yesterday

[EDIT]
Quote
Some sunny day
Keep smiling through
Just like you always do
'Till the blue skies
Drive the dark clouds far away

[EDIT]
Quote
So, will you please say hello
To the folks that I know
Tell them I won't be long
They'll be happy to know
That as you saw me go
I was singing this song

[EDIT]
Quote
We'll meet again
Don't know where
Don't know when
But I know we'll meet again
Some sunny day

Anyway enough of that.
« Last Edit: September 29, 2012, 08:22:16 pm by FarquahrWindsor »

kajan

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #20 on: September 29, 2012, 06:58:18 pm »
good to hear, that you have the error too :-)

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #21 on: October 01, 2012, 06:37:14 pm »
Just been doing the 32bit iso install again and there is still a bug if you choose office and infrastructure.

http://gbpaste.org/b7Qjt

peter_b

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +4/-1
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #22 on: October 05, 2012, 07:57:12 pm »
Even with version 3.0.3 the same error.

File Sharing and Domain Services - 3.0.3
Core Version - 3.0.3

Any progress??

Peter.

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #23 on: October 05, 2012, 08:28:31 pm »
peter I missed the fault at first as for some reason I like to build up and reboot on incremental steps.

I am sure it will be fixed.

usually I set the network.
update and reboot
bring in dhcp, dns, ntp firewall, users groups and proxy punch holes in external for ssh and a service for https and accept external.
do my paranoid reboot thing
then bring in filesharing (samba) at the end
reboot :)

There should be no real reson to do this apart from some of the fstab options don't take place until a reboot.

humour me though as it works that way.


kajan

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #24 on: October 06, 2012, 10:43:14 am »
Hi,

I just bought a new server and installed 64bit version - here without any problem at all.
So the problem seems to be only on 32bit.

K.

peter_b

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +4/-1
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #25 on: October 06, 2012, 10:52:06 am »
Hi FarquahrWindsor,

No luck. I installed it twice. Ones with Zentyal iso and ones with Ubuntu iso. After bringing in each module I rebooted.
The same error both times.

So I just have to wait until it has been fixed.

Thanks anyway.
Peter.

peter_b

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +4/-1
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #26 on: October 07, 2012, 01:58:39 pm »
Very strange issue.
Installing both 32bit or 64bit on a physical disk, no problem with samba. But when I install in VBOX both 32bit or 64bit and up with error saying:
FATAL: Couldn't connect to samba LDAP server

I'am going to try VMWARE now.

Has anyone else this same problem.

Peter

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #27 on: October 07, 2012, 02:23:36 pm »
Yeah 32bit haven't tried 64bit.

Same confusion as I have installed zentyal so many times but bare metal on 32 works. I think

Its a real pain as I could go and test on one of my sites to utilise infrastructure but VirtBox lets me evaluate in a much easier fashion. Looks like its a trip to the attic and dust off a few old boxes.
« Last Edit: October 07, 2012, 02:25:26 pm by FarquahrWindsor »

peter_b

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +4/-1
    • View Profile
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #28 on: October 07, 2012, 07:14:51 pm »
Hi FarquahrWindsor,

I just downloaded VMWARE-player and installed Zentyal 32bit. I selected ALL available modules.
And guess what. It just runs like a charme, included samba. No more errors while saving the modules.
I think there's something wrong with virtualbox.

So for me the problem is solved.

Thanks for all the help.

Peter

FarquahrWindsor

  • Guest
Re: FATAL: Couldn't connect to samba LDAP server
« Reply #29 on: October 07, 2012, 07:23:02 pm »
Thanks Peter, looks like I am going to have to swap to vmware.

I am not completely sure as there are several threads going at the moment.

I think its a combination of virtualised, 32 or 64 and hardware and choice of iso.

Somewhere along the line on a combination of people still seem to be having probs. Its a weird one and last weekend I hit it.

Then it went away ! Then again on subsequent installs I have hit it again and now I am totally confused.

Going with your recommendation though as for evaluation running a VM is so much easier. So VMware it is.