Author Topic: Zentyal file service (samba?) doesn't start  (Read 272 times)

massimo.manca

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Zentyal file service (samba?) doesn't start
« on: July 11, 2012, 12:28:03 »
From the administration panel of Zentyal the file service is stopped and if I press the button to activate it Zentyal says that it doesn't start for an error and to see the log files. ay you help me to find the appropriate log files and to solve the problem? From when I hve the problem I can't see the saba file shares on the network so I suppose it may be a problem related to samba.

Escorpiom

  • Board Moderator
  • Zen Hero
  • *****
  • Posts: 664
  • Karma: +16/-1
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #1 on: July 12, 2012, 05:10:32 »
Hi Massimo,

The samba log files are in
/var/log/samba

But you may also find information in the syslog
/var/log/syslog

Cheers.
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

massimo.manca

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #2 on: July 14, 2012, 07:20:04 »
This is the content of ebox.log:
2012/07/14 18:44:06 INFO> Service.pm:706 EBox::Module::Service::restartService - Restarting service for module: samba
2012/07/14 18:44:22 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/14 18:44:23 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/14 18:44:24 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/14 18:44:25 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/14 18:44:26 ERROR> Ldap.pm:1124 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/14 18:44:26 ERROR> Service.pm:711 EBox::Module::Service::__ANON__ - Error restarting service: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/14 18:44:26 ERROR> RestartService.pm:57 EBox::CGI::EBox::RestartService::__ANON__ - Restart of EBox::Samba=HASH(0x7fb87a013388) from dashboard failed: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi

seems that this is an old problem but I have no /usr/share/zentyal-users folder so I can't execute reinstall.

I did nothing to the server, it was an automatic Zentyal update to do this disaster.

Escorpiom

  • Board Moderator
  • Zen Hero
  • *****
  • Posts: 664
  • Karma: +16/-1
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #3 on: July 15, 2012, 10:57:16 »
What version are you running? Is this a fresh install or was the issue introduced later?
Is it an upgrade?
Perhaps with a little more info we can figure it out.

Cheers.
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

massimo.manca

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #4 on: July 15, 2012, 04:00:47 »
Version core is 2.0.23.
I installed Zentyal about 1 year ago and it worked with no problems until 2 weeks ago then the cpu load went to 100% (logs show more then 100%) blocking every service in practice so I killed the blocking processes after waited for about 8 hours they completed (yes, about 8 hours to 100% cpu time).

Then after restarting Zentyal I obtained: "kernel panic not syncing vfs unable to mount root fs on unknown-block (0,0)".

I wasn't able to find a solution in the short term so I decided to use the previous release (I mean that at startup you can choose what Zentyal/Linux core release you can start pressing shift during grub startup).

In this way I was able to use my applications (mainly Atlassian web servers applications, every application running in a different Tomcat instance to have more freedom to update and services problems.

The problem is that often I am abroad so I need to see the company network especially the shared disks. When I saw it was impossible I understood that the problem is samba/user management related and I see they both aren't in execution and I am not able to restart them. I found a lot of suggestions to restart samba and user management but in my situation didn't help also I haven't some folders as described in the suggestions (needed to restart samba).

This is the error log:

2012/07/15 15:53:38 INFO> Service.pm:706 EBox::Module::Service::restartService - Restarting service for module: samba
2012/07/15 15:53:53 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:53:54 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:53:55 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:53:56 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:53:57 ERROR> Ldap.pm:1124 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:53:57 ERROR> Service.pm:711 EBox::Module::Service::__ANON__ - Error restarting service: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:53:57 ERROR> RestartService.pm:57 EBox::CGI::EBox::RestartService::__ANON__ - Restart of EBox::Samba=HASH(0x7ffd50045440) from dashboard failed: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:53:59 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:00 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:01 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:03 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:04 ERROR> Ldap.pm:1124 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:54:05 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:06 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:07 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:08 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:09 ERROR> Ldap.pm:1124 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:54:37 INFO> Service.pm:706 EBox::Module::Service::restartService - Restarting service for module: samba
2012/07/15 15:54:52 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:53 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:54 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:55 ERROR> Ldap.pm:1120 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
2012/07/15 15:54:56 ERROR> Ldap.pm:1124 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:54:56 ERROR> Service.pm:711 EBox::Module::Service::__ANON__ - Error restarting service: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
2012/07/15 15:54:56 ERROR> RestartService.pm:57 EBox::CGI::EBox::RestartService::__ANON__ - Restart of EBox::Samba=HASH(0x7ffd50045440) from dashboard failed: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi

at the moment I am quite blocked (in the sense I have no perfect solution) so I am trying to establish a secure VPN and remote desktop to be able to better service the server also when I am abroad.

Of course every help is very welcome.


jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +43/-1
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #5 on: July 16, 2012, 04:05:50 »
Do sudo /etc/init.d/ebox users restart and check slapd is running first.

massimo.manca

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #6 on: July 22, 2012, 12:15:58 »
Already done but without any effect. It doesn't restart. Sees that LDAP/samba and user's authentications can't be started.

massimo.manca

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Zentyal file service (samba?) doesn't start
« Reply #7 on: July 24, 2012, 12:40:44 »
This is the result:
sudo /etc/init.d/ebox users restart
 * Restarting Zentyal module: users                                                        [fail]
FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi