Author Topic: Suddenly cannot connect to samba shares  (Read 4175 times)

aaron.jacobs

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Suddenly cannot connect to samba shares
« on: October 26, 2011, 12:16:36 am »
today I cannot connect to any samba shares at all from any computers (running a mix of ubuntu and debian)

The error I get on the clients is:

Unable to mount location
Failed to retrieve share list from server

To try to resolve the problem I have:
restarted the File Sharing module
rebooted the Zentyal Server
done an apt-get update / upgrade (there were updates)
renamed the Domain (the change showed up on the other computers but still had the same error)
disabled server as PDC

none of these changes made any effect.
No changes were made to Zentyal configuration before the problem.

I am running Zentyal 2.0.23 (since upgrade trying to fix this problem) on a dedicated box for my home network, it is connected to a router for internet access, all the other machines are also connected to this router and there have been no network problems recently.

I can't access any of my shared files :(

aaron.jacobs

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Suddenly cannot connect to samba shares
« Reply #1 on: October 26, 2011, 01:07:55 am »
This might be related??
I went to the Users And Groups and got this...

Trace
Unknown error at EBox::UsersAndGroups::groups invalid DN at /usr/share/perl5/EBox/Ldap.pm line 703
EBox::Ldap::_errorOnLdap('Net::LDAP::Search=HASH(0xbd3d1398)', 'HASH(0xbb951108)') called at /usr/share/perl5/EBox/Ldap.pm line 342
EBox::Ldap::search('EBox::Ldap=HASH(0xbc0f9000)', 'HASH(0xbb951108)') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1854
EBox::UsersAndGroups::groups('EBox::UsersAndGroups=HASH(0xbc0fe5e8)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/Users.pm line 48
EBox::CGI::UsersAndGroups::Users::_process('EBox::CGI::UsersAndGroups::Users=HASH(0xbd4d7ff0)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::Users=HASH(0xbd4d7ff0)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/Users', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbd4d7d60)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbd51c1e8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbd51c1e8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbd4d7d60)') called at -e line 0
eval {...} called at -e line 0

aaron.jacobs

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Suddenly cannot connect to samba shares
« Reply #2 on: October 26, 2011, 01:29:30 am »
Looks like LDAP's buggered!

nexus@nexus-server:~$ tail /var/log/ebox/ebox.log
2011/10/26 00:27:53 ERROR> Ldap.pm:1141 EBox::Ldap::safeBind - Couldn't bind to LDAP server, result code: 34
2011/10/26 00:27:54 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'base' => 'ou=vdomains, ou=postfix, ',
          'attrs' => [
                       'domainComponent'
                     ],
          'filter' => 'objectclass=*',
          'scope' => 'one'
        };
2011/10/26 00:27:54 ERROR> Ldap.pm:703 EBox::Ldap::_errorOnLdap - Unknown error at EBox::MailVDomainsLdap::vdomains invalid DN


How do I reconfigure this? any help please?

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: Suddenly cannot connect to samba shares
« Reply #3 on: November 03, 2011, 03:24:52 pm »
Hello,

I also do have some random issue with the SMB shares.  After a while the connection just get very sluggish.  I do restore the connectivity by restarting the service (Zentyal >> File Sharing >> Restart).

Otherwise you may restart your database using this command:
Code: (Zentyal 2.0) [Select]
/etc/init.d/postgresql-8.4 restart** Last command is good for Zentyal 2.0 - no idea of the postgresql version on Zentyal 2.2 - you may do a lookup using the following command:
Code: [Select]
find /etc/init.d/postgresql*
You may also restart your whole Zentyal using this command:
Code: (Zentyal 2.0) [Select]
/etc/init.d/ebox restart
Code: (Zentyal 2.2) [Select]
/etc/init.d/zentyal restart
Best,

Marcus

B_Khuwera

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +0/-1
    • View Profile
Re: Suddenly cannot connect to samba shares
« Reply #4 on: November 20, 2011, 01:49:50 am »
Hello ..
I have the same problem to .. i use zentyal core 2.2.3, it works fine before, but after upgrade, i forgot which one, is it component or system update, i realize it after a few day when i try to access some files in server.
suddenly Zentyal server is missing from Network, it gives the same popup in linux client as aaron.jacobs,
in windows client, zentyal server is also gone.
but still can access using IP smb:// from nautilus in linux or \\ in explorer windows, password also working with this.
check zentyal.log .. found this
2011/11/20 06:40:40 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying
already try Marcus said in previous post, restarting file sharing service, no luck,
restart postgresql-8.4, no luck, restart zentyal or reboot the server still no luck.
I just used zentyal primarily for proxy, so i just realize it to late..

Any other suggestion ?

Regards

marceloeng

  • Zen Warrior
  • ***
  • Posts: 135
  • Karma: +1/-0
    • View Profile
Re: Suddenly cannot connect to samba shares
« Reply #5 on: December 22, 2011, 03:55:24 am »
Hi,

I have the same trouble. My PDC don't work because the postgresql don't start.

Command in shell:
Code: [Select]
/etc/init.d/postgresql-8.4 start
Message:
Code: [Select]
* The PostgreSQL server failed to start. Please check the log output:
2011-12-22 02:52:39 GMT FATAL:  diretorio de dados "/var/lib/postgresql/8.4/main" tem acesso para grupo ou outros
2011-12-22 02:52:39 GMT DETALHE:  Permissoes devem ser u=rwx (0700).

Regards,
Marcelo

marceloeng

  • Zen Warrior
  • ***
  • Posts: 135
  • Karma: +1/-0
    • View Profile
Re: Suddenly cannot connect to samba shares
« Reply #6 on: December 22, 2011, 03:51:10 pm »
up...