Author Topic: [SOLVED] File sharing problem  (Read 8298 times)

acon

  • Board Moderator
  • Zen Samurai
  • *****
  • Posts: 453
  • Karma: +18/-0
    • View Profile
[SOLVED] File sharing problem
« on: January 01, 2015, 02:08:21 pm »
This morning, i can´t access any of my mapped drives pointing to files shares in my Zentyal 3.3.2 server.
This happens from 2 windows 7 clients.
Everything whas working yesterdays and i have not aplied any update nor config change.
When i edit a file share in zentyal admin, i get an error on saving changes in samba module.
I also get an error when i restart samba module (service zentyal samba restart) in /var/log/zentyal/zentyal.log
I have now restored access to network shares by:
- Resetting users password
- Unmap al network drives and map them again

I still get errors in /var/log/zentyal/zentyal.log on saving samba config or restarting module:

Saving any change to file shares module:
Code: [Select]
2015/01/01 12:24:48 INFO> Samba.pm:298 EBox::Samba::_postServiceHook - Applying new permissions to the share 'musica'...
2015/01/01 12:24:49 ERROR> AuthKrbHelper.pm:173 EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab - Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found
 at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::Internal=HASH(0x71f7518)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::Internal=HASH(0x71f7518)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::Internal', 'Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found^J') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::Internal', 'Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found^J') called at /usr/share/perl5/EBox/Samba/AuthKrbHelper.pm line 173
EBox::Samba::AuthKrbHelper::_getTicketUsingKeytab('EBox::Samba::AuthKrbHelper=HASH(0x71f7548)', 'Administrator', 'ACOPEN.COM', '/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 48
EBox::Samba::SmbClient::new('EBox::Samba::SmbClient', 'target', 'gila.acopen.com', 'service', 'musica', 'RID', 500) called at /usr/share/perl5/EBox/Samba.pm line 300
EBox::Samba::_postServiceHook('EBox::Samba=HASH(0x62696e8)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 986
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x62696e8)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Samba=HASH(0x62696e8)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 650
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 649
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x26583f8)', 'progress', 'EBox::ProgressIndicator=HASH(0x1360690)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x2657c18)', 'progress', 'EBox::ProgressIndicator=HASH(0x1360690)') called at /usr/share/zentyal/global-action line 31
eval {...} at /usr/share/zentyal/global-action line 29
2015/01/01 12:24:49 ERROR> GlobalImpl.pm:654 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found
2015/01/01 12:24:49 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2015/01/01 12:24:49 ERROR> GlobalImpl.pm:738 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::Internal=HASH(0x71ed1a8)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::Internal=HASH(0x71ed1a8)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::Internal', 'The following modules failed while saving their changes, their state is unknown: samba ') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::Internal', 'The following modules failed while saving their changes, their state is unknown: samba ') called at /usr/share/perl5/EBox/GlobalImpl.pm line 738
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x26583f8)', 'progress', 'EBox::ProgressIndicator=HASH(0x1360690)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x2657c18)', 'progress', 'EBox::ProgressIndicator=HASH(0x1360690)') called at /usr/share/zentyal/global-action line 31
eval {...} at /usr/share/zentyal/global-action line 29


Restarting samba module:
Code: [Select]
015/01/01 12:27:13 INFO> Service.pm:1003 EBox::Module::Service::restartService - Restarting service for module: samba
2015/01/01 12:27:15 ERROR> LDAPBase.pm:503 EBox::LDAPBase::_errorOnLdap - LDAP error: Server encountered an internal error
.<br/> Operation parameters:{
  'base' => 'DC=acopen,DC=com',
  'attrs' => [
               '*',
               'objectGUID',
               'unicodePwd',
               'supplementalCredentials'
             ],
  'filter' => '(objectclass=*)',
  'scope' => 'base'
}
 at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::LDAP=HASH(0x4fa2d30)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::LDAP=HASH(0x4fa2d30)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::LDAP', 'LDAP error: Server encountered an internal error^J.<br/> Operation parameters:{^J  \'base\' => \'DC=acopen,DC=com\',^J  \'attrs\' => [^J               \'*\',^J               \'objectGUID\',^J               \'unicodePwd\',^J               \'supplementalCredentials\'^J             ],^J  \'filter\' => \'(objectclass=*)\',^J  \'scope\' => \'base\'^J}^J') called at /usr/share/perl5/EBox/Exceptions/LDAP.pm line 59
EBox::Exceptions::LDAP::new('EBox::Exceptions::LDAP', 'result', 'Net::LDAP::Search=HASH(0x4fe6218)', 'opArgs', 'HASH(0x4f9a9e0)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::LDAP', 'result', 'Net::LDAP::Search=HASH(0x4fe6218)', 'opArgs', 'HASH(0x4f9a9e0)') called at /usr/share/perl5/EBox/LDAPBase.pm line 503
EBox::LDAPBase::_errorOnLdap('EBox::LDB=HASH(0x4e63498)', 'Net::LDAP::Search=HASH(0x4fe6218)', 'HASH(0x4f9a9e0)') called at /usr/share/perl5/EBox/LDAPBase.pm line 106
EBox::LDAPBase::search('EBox::LDB=HASH(0x4e63498)', 'HASH(0x4f9a9e0)') called at /usr/share/perl5/EBox/Samba/LdbObject.pm line 229
EBox::Samba::LdbObject::_entry('EBox::Samba::NamingContext=HASH(0x4faf2c0)') called at /usr/share/perl5/EBox/Users/LdapObject.pm line 314
EBox::Users::LdapObject::dn('EBox::Samba::NamingContext=HASH(0x4faf2c0)') called at /usr/share/perl5/EBox/Users/LdapObject.pm line 611
EBox::Users::LdapObject::parent('EBox::Samba::Group=HASH(0x5002360)') called at /usr/share/perl5/EBox/Users/LdapObject.pm line 443
EBox::Users::LdapObject::canonicalName('EBox::Samba::Group=HASH(0x5002360)', 1) called at /usr/share/zentyal-samba/s4sync line 222


Any idea?
Btw, good year 2015 to all
« Last Edit: February 22, 2015, 02:00:26 pm by acon »

acon

  • Board Moderator
  • Zen Samurai
  • *****
  • Posts: 453
  • Karma: +18/-0
    • View Profile
Re: File sharing problem
« Reply #1 on: February 22, 2015, 01:59:35 pm »
This problem is related to samba user password expiration.
When i do manual config backup i get this error:
Code: [Select]
Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS foundThis error points me in the right direction.
To resolve the issue:
Code: [Select]
samba-tool user setexpiry administrator --noexpiryEverything is now working again.

dsla

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] File sharing problem
« Reply #2 on: January 08, 2016, 03:52:55 pm »
This bit me today when restarting the Zentyal mail server in version 4.2.1.3.

The error I got was:
Quote
Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found

and the resolution was the same:
Code: [Select]
sudo samba-tool user setexpiry administrator --noexpiry
Dan

kockopes

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: [SOLVED] File sharing problem
« Reply #3 on: June 17, 2016, 05:22:10 pm »
same here, yesterday morning zentyal 4.2 was unavailable, same fix with administrator password noexpiry solved problem.

This bit me today when restarting the Zentyal mail server in version 4.2.1.3.

The error I got was:
Quote
Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found

and the resolution was the same:
Code: [Select]
sudo samba-tool user setexpiry administrator --noexpiry
Dan