Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: futuraservice on October 08, 2021, 11:12:09 am

Title: Issue with zentyal
Post by: futuraservice on October 08, 2021, 11:12:09 am
Hello everyone.

I have a big problem with zentyal server mail.

It is work fine for 20-30 days.

At some time, it stops to download the remote email.

I tried to restart the Mail service but i have this error in /var/log/zentyal/zentyal.log

Code: [Select]
2021/10/08 10:32:13 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: mail
2021/10/08 10:32:18 ERROR> LDAP.pm:196 EBox::Module::LDAP::_connectToSchemaMaster - Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
2021/10/08 10:32:18 ERROR> Service.pm:969 EBox::Module::Service::restartService - Error restarting service: Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
2021/10/08 10:32:18 ERROR> Service.pm:971 EBox::Module::Service::restartService - Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
2021/10/08 10:32:18 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of Mail from dashboard failed: Error binding to schema master LDAP: An error occurred in C<Net::LDAP>

I have read somewhere that i need to restart the samba service. I Done but i have the same problem.

For now, my solution is to reboot the operation system.

Somebody can help me?
Title: Re: Issue with zentyal
Post by: spst on October 20, 2021, 11:16:54 am
Hi,

I experience the same mistake. Zentyal 6.2 with latest updates.

When I try to restart on dashboard or command line I have this error in zentyal.log:

2021/10/20 03:17:37 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: mail
2021/10/20 03:17:39 ERROR> LDAP.pm:196 EBox::Module::LDAP::_connectToSchemaMaster - Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
 at Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
 at /usr/share/perl5/EBox/Module/LDAP.pm line 196
EBox::Module::LDAP::_connectToSchemaMaster('EBox::Mail=HASH(0x5567c4f07eb8)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 275
EBox::Module::LDAP::_loadSchemasFiles('EBox::Mail=HASH(0x5567c4f07eb8)', 'ARRAY(0x5567c6434800)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 267
EBox::Module::LDAP::_loadSchemas('EBox::Mail=HASH(0x5567c4f07eb8)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 341
EBox::Module::LDAP::_performSetup('EBox::Mail=HASH(0x5567c4f07eb8)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 331
EBox::Module::LDAP::_regenConfig('EBox::Mail=HASH(0x5567c4f07eb8)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Kerberos.pm line 378
EBox::Module::Kerberos::_regenConfig('EBox::Mail=HASH(0x5567c4f07eb8)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 967
eval {...} at /usr/share/perl5/EBox/Module/Service.pm line 966
EBox::Module::Service::restartService('EBox::Mail=HASH(0x5567c4f07eb8)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 121
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 119
EBox::Util::Init::moduleAction('mail', 'restartService', 'restart') called at /usr/share/perl5/EBox/Util/Init.pm line 247
EBox::Util::Init::moduleRestart('mail') called at /usr/bin/zs line 62
main::main at /usr/bin/zs line 82
2021/10/20 03:17:39 ERROR> Service.pm:969 EBox::Module::Service::restartService - Error restarting service: Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
2021/10/20 03:17:39 ERROR> Service.pm:971 EBox::Module::Service::restartService - Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
 at Error binding to schema master LDAP: An error occurred in C<Net::LDAP>
 at /usr/share/perl5/EBox/Module/Service.pm line 971
EBox::Module::Service::restartService('EBox::Mail=HASH(0x5567c4f07eb8)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 121
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 119

When the mail service shuts down, I can't restart it.  Later, when I get up in the morning I can restart the mail service with the zs mail start command.

This is a serious problem, could anyone help?

Thank you for your help.
Title: Re: Issue with zentyal
Post by: turalyon on October 20, 2021, 04:19:49 pm
Hi,

I recommend you to generate a system report and analyze it very careful, specially, the Domain Controller part.

Code: [Select]
/usr/share/zentyal/smart-admin-report

Also, did you analyze the following log files:

* /var/log/syslog
* /var/log/zentyal/zentyal.log

Hope it helps you.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".
Title: Re: Issue with zentyal
Post by: futuraservice on November 15, 2021, 10:04:06 am
I done to view the log files. Nothing interesting.
I thinks that problem is samba.

I run this code:

Code: [Select]
#!/bin/bash
sudo nmbd stop
sudo nmbd start
sudo systemctl mask smbd nmbd winbind
sudo systemctl disable smbd nmbd winbind

Now, if I restart the email module it works.

does anyone know this problem?
does anyone have any solutions to remove this problem automatically?