Author Topic: SAMBA Error  (Read 26356 times)

Russel

  • Zen Apprentice
  • *
  • Posts: 28
  • Karma: +2/-0
    • View Profile
SAMBA Error
« on: September 25, 2013, 04:56:27 am »
I have been having a tough time getting SAMBA sorted out right on my Zentyal install. After upgrading to Zentyal 3.2 today, I continued to have the same problems. I went in and did a "sudo apt-get remove zentyal-samba", rebooted, and then re-installed it. When I am on the web dashboard and I create a new file share I get notified that there were samba errors. Can someone help me make sense of the errors? These are from /var/log/zentyal/zentyal.log

Code: [Select]
2013/09/24 21:39:03 ERROR> AuthKrbHelper.pm:172 EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab - Could not get ticket: could not acquire credentials using an initial credentials context: unable to reach any KDC in realm BCGVT.LAN
 at /usr/share/perl5/EBox/Samba/AuthKrbHelper.pm line 172
        EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab('EBox::Samba::AuthKrbHelper=HASH(0x72e2ff0)', 'Administrator', 'BCGVT.LAN', '/var/lib/zentyal/conf/samba.keytab') called at /usr/share/perl5/EBox/Samba/AuthKrbHelper.pm line 116
        EBox::Samba::AuthKrbHelper::new('EBox::Samba::AuthKrbHelper', 'RID', 500) called at /usr/share/perl5/EBox/Samba/SmbClient.pm line 47
        EBox::Samba::SmbClient::new('EBox::Samba::SmbClient', 'target', 'Thor.bcgvt.lan', 'service', 'Documents', 'RID', 500) called at /usr/share/perl5/EBox/Samba.pm line 286
        EBox::Samba::_postServiceHook('EBox::Samba=HASH(0x5433800)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 968
        EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x5433800)') called at /usr/share/perl5/EBox/Module/Base.pm line 232
        EBox::Module::Base::save('EBox::Samba=HASH(0x5433800)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 642
        EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x3228058)', 'progress', 'EBox::ProgressIndicator=HASH(0x321abe0)') called at /usr/share/perl5/EBox/Global.pm line 95
        EBox::Global::AUTOLOAD('EBox::Global=HASH(0x3225408)', 'progress', 'EBox::ProgressIndicator=HASH(0x321abe0)') called at /usr/share/zentyal/global-action line 39
2013/09/24 21:39:03 ERROR> GlobalImpl.pm:648 EBox::GlobalImpl::__ANON__ - Failed to save changes in module samba: Could not get ticket: could not acquire credentials using an initial credentials context: unable to reach any KDC in realm BCGVT.LAN
2013/09/24 21:39:03 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: logs
2013/09/24 21:39:03 ERROR> GlobalImpl.pm:722 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at /usr/share/perl5/EBox/GlobalImpl.pm line 722
        EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x3228058)', 'progress', 'EBox::ProgressIndicator=HASH(0x321abe0)') called at /usr/share/perl5/EBox/Global.pm line 95
        EBox::Global::AUTOLOAD('EBox::Global=HASH(0x3225408)', 'progress', 'EBox::ProgressIndicator=HASH(0x321abe0)') called at /usr/share/zentyal/global-action line 39
2013/09/24 21:52:31 INFO> GlobalImpl.pm:611 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall samba logs
2013/09/24 21:52:31 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: firewall
2013/09/24 21:52:32 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: samba
2013/09/24 21:52:40 ERROR> AuthKrbHelper.pm:172 EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab - Could not get ticket: could not acquire credentials using an initial credentials context: unable to reach any KDC in realm BCGVT.LAN
 at /usr/share/perl5/EBox/Samba/AuthKrbHelper.pm line 172
        EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab('EBox::Samba::AuthKrbHelper=HASH(0x80a88a0)', 'Administrator', 'BCGVT.LAN', '/var/lib/zentyal/conf/samba.keytab') called at /usr/share/perl5/EBox/Samba/AuthKrbHelper.pm line 116
        EBox::Samba::AuthKrbHelper::new('EBox::Samba::AuthKrbHelper', 'RID', 500) called at /usr/share/perl5/EBox/Samba/SmbClient.pm line 47
        EBox::Samba::SmbClient::new('EBox::Samba::SmbClient', 'target', 'Thor.bcgvt.lan', 'service', 'Documents', 'RID', 500) called at /usr/share/perl5/EBox/Samba.pm line 286
        EBox::Samba::_postServiceHook('EBox::Samba=HASH(0x61a6660)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 968
        EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x61a6660)') called at /usr/share/perl5/EBox/Module/Base.pm line 232
        EBox::Module::Base::save('EBox::Samba=HASH(0x61a6660)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 642
        EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x3f9b058)', 'progress', 'EBox::ProgressIndicator=HASH(0x3f8dbe0)') called at /usr/share/perl5/EBox/Global.pm line 95
        EBox::Global::AUTOLOAD('EBox::Global=HASH(0x3f98408)', 'progress', 'EBox::ProgressIndicator=HASH(0x3f8dbe0)') called at /usr/share/zentyal/global-action line 39
2013/09/24 21:52:40 ERROR> GlobalImpl.pm:648 EBox::GlobalImpl::__ANON__ - Failed to save changes in module samba: Could not get ticket: could not acquire credentials using an initial credentials context: unable to reach any KDC in realm BCGVT.LAN
2013/09/24 21:52:40 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: logs
2013/09/24 21:52:40 ERROR> GlobalImpl.pm:722 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at /usr/share/perl5/EBox/GlobalImpl.pm line 722
        EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x3f9b058)', 'progress', 'EBox::ProgressIndicator=HASH(0x3f8dbe0)') called at /usr/share/perl5/EBox/Global.pm line 95
        EBox::Global::AUTOLOAD('EBox::Global=HASH(0x3f98408)', 'progress', 'EBox::ProgressIndicator=HASH(0x3f8dbe0)') called at /usr/share/zentyal/global-action line 39

mpjoe2000

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: SAMBA Error
« Reply #1 on: September 25, 2013, 06:23:44 am »
i'm having troubles with samba too, i have made a new installation on an old PC for testing... i share a directory but it does not let me write even if told zentyal via web interface to do so. It does not change owner and folder Permissions on /home/samba/shares/shared_folder you have to do it manually  >:(

mpjoe2000

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: SAMBA Error
« Reply #2 on: September 25, 2013, 08:25:02 am »
ok i just made a clean installation, everything was ok.... but after zentyal updates was done (even after restarting) is when come out the error:

The following modules failed while saving their changes, their state is unknown: samba

and stop to set up right permissions in /home/samba/shares folder....

why testing updates in a stable release? what are you thinking?

just stay away from updates

rpro

  • Guest
Re: SAMBA Error
« Reply #3 on: September 26, 2013, 03:24:12 am »
I'm getting a similar error after yesterday's zentyal-samba updates.
My installation is a fresh install, everything was smooth until yesterday, now this error prevents me from saving my conf and also making a config export.

Code: [Select]
2013/09/25 22:03:14 ERROR> Backup.pm:146 EBox::Backup::__ANON__ - Could not get ticket: could not acquire credentials using an initial credenti
als context: unable to reach any KDC in realm DOMAINNAME.LAN
 at /usr/share/perl5/EBox/Backup.pm line 146
        EBox::Backup::_dumpModulesBackupData('EBox::Backup', '/var/lib/zentyal/conf//backup.w5239z/aux', 'changesSaved', 1, 'bug', 0, 'fallback
ToRO', 0) called at /usr/share/perl5/EBox/Backup.pm line 88
        EBox::Backup::_makeBackup('EBox::Backup', 'time', 1380157388, 'description', 'Backup', 'fallbackToRO', 0, 'bug', 0, ...) called at /usr
/share/perl5/EBox/Backup.pm line 747
        EBox::Backup::makeBackup('EBox::Backup') called at /usr/share/zentyal/make-backup line 91

paulreynand

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: SAMBA Error
« Reply #4 on: September 26, 2013, 09:56:10 am »
i also have this problem :(

paulreynand

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: SAMBA Error
« Reply #5 on: September 26, 2013, 04:25:00 pm »
hi guys,

I've just found a work around.

step 1: Delete the module "File Sharing and Domain Services" and if you have "Printer Sharing Service"
step 2: apt-get remove samba4
step 3: apt-get purge samba4
step 4: Install again the module "File Sharing and Domain Services" and "Printer Sharing Service"

This works for me. hope this works to you guys. no guarantee.


Thanks

mpnegro

  • Zen Monk
  • **
  • Posts: 55
  • Karma: +4/-0
    • View Profile
Re: SAMBA Error
« Reply #6 on: September 26, 2013, 04:26:53 pm »

@paulreynand With this workaround you lost something? Configurations, shares, profiles?


paulreynand

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: SAMBA Error
« Reply #7 on: September 26, 2013, 04:33:04 pm »
good question there. yes, i've lost something. my shares. but i can easily put it back since the folders are intact in /home/samba/shares/. also i can get the list of acl's via "getfacl /home/samba/shares/to-my-folder". this might be tedious for others have a lot of shares.

i suggest get first the list of acls on every directory before putting it back on share configuration.


thanks
« Last Edit: September 26, 2013, 04:37:48 pm by paulreynand »

jakeelwood

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: SAMBA Error
« Reply #8 on: September 26, 2013, 11:20:10 pm »
Hi,
I  have a similar problem (my version is Zentyal 3.2 , with samba module 3.2.2):

I can not save the changes made to shares, the save operation is not completed, the system remains idle at the rate of 67% with the message "Saving Changes in modules, current operation: saving samba module; 2 of 3 operations performed" .

I followed the help of "paulreynard", but for me it did not work.

I can not access to  created share;
 in the / var / log / Zentyal / zentyal.log I find this error:

  LDB.pm: 334 EBox :: LDB :: __ANON__ - Error loading OU 'Domain Controllers' in 'testdomain DC =, DC = lan': LDAP error: The client attempted to add an entry That already exists. This can occur as
a result of

  * An add request was Submitted with a DN That already exists

  * To modify DN requested was Submitted, where the requested new DN already exists

  * The request is adding an attribute to the schema and an attribute with the
Given OID or name already exists
. <br/> Operation parameters: {
   'attr' => [
               'objectclass',
               [
                 'organizationalUnit'
               ],
               'ou',
               'Domain Controllers'
             ]


Thanks

paulreynand

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: SAMBA Error
« Reply #9 on: September 27, 2013, 02:40:51 am »
hi @jakeelwood,

i also seen that before i do the work around. After i reinstall the removed and purged module, it did not came up again. So im not sure the log you're seeing is an error prior the work around. Another thing is that i found that there is a /opt/samba4, im thinking if you could delete that after the purge to make sure that all samba4 components are gone before installing it again. You can give it a try. I'm assuming that your're doing it on a test environment.

Thanks

mpjoe2000

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: SAMBA Error
« Reply #10 on: September 27, 2013, 05:24:07 pm »
everybody please determine if you are using 32bits or 64bits distribution?

mpnegro

  • Zen Monk
  • **
  • Posts: 55
  • Karma: +4/-0
    • View Profile
Re: SAMBA Error
« Reply #11 on: September 27, 2013, 06:06:55 pm »
64 bits

BrettonWoods

  • Guest
Re: SAMBA Error
« Reply #12 on: September 27, 2013, 06:47:55 pm »
64bit working

rpro

  • Guest
Re: SAMBA Error
« Reply #13 on: September 27, 2013, 06:59:09 pm »
Hi,

I'm using the 64-bit version.

Thanks for the advice @paulreynand !
I am afraid that by removing/purging samba I could make things worse as this is a production server... but if there's no other way, I might just do that as well.

jakeelwood

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: SAMBA Error
« Reply #14 on: September 27, 2013, 07:24:10 pm »
64 bit version.

Thanks to paulreynard for the reply , but :
I repeated the procedure, removing the folder /opt/samba4.
When I reinstall the module "file sharing", saving crashes to 75%!
The module file sharing "appears" to be installed but does not work.

I attach screenshot and zentyal.log