Author Topic: ebox 1.4 samba 3.4.6 read/write problems on shares  (Read 10149 times)

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #15 on: April 17, 2010, 06:20:24 pm »
You are right, I've tested it lots of times and I can't reproduce it. I could reproduce it always with samba 3.4.5, but samba 3.4.6 seems to fix the problem as stated in the changelog.

Anyway, we are not forgetting this and we'll do something about it as soon as possible.

Hmmm ... that's strange. I'm having the same problem on samba 3.4.6. Still trying to fix the full_audit problem. Can I leave the "vfs objects = vscan-clamav" in each share? My users likes to collect viruses while surfing porn :P

Perske7

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #16 on: April 19, 2010, 11:41:48 pm »
This problem is still not going away!!!!!

I am using Ebox 1.4.4

I did the following:

open /etc/samba/smb.conf and comment all the references to full audit:

# vfs objects = full_audit
# full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
# full_audit:failure = none
.
.
[homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
# vfs objects = full audit
.
.
[myshare]
.
.

I restart samba (/etc/init.d/samba restart) and the problem is solved. Now, this next step is where
the whole thing starts all over

I closed the web interface to prevent it from re-introducing the problem and follow the next page:

http://trac.ebox-platform.com/changeset/15674

I applied the changes to:

 /usr/share/ebox/stubs/samba/smb.conf.mas

and as soon as I start the web interface page, click on restart File Sharing, the following error pops up, and down goes the file sharing.  I have double checked my /usr/share/ebox/stubs/samba/smb.conf.mas
to make sure I did exactly like the http://trac.ebox-platform.com/changeset/15674 says

The new error:

A really nasty bug has occurred

Exception

Template samba/smb.conf.mas failed with Error during compilation of : Global symbol "$objects" requires explicit package name at (eval 2319) line 215. Global symbol "$key" requires explicit package name at (eval 2319) line 226. Global symbol "$key" requires explicit package name at (eval 2319) line 230. Global symbol "$group" requires explicit package name at (eval 2319) line 239. Global symbol "$group" requires explicit package name at (eval 2319) line 244. Global symbol "$group" requires explicit package name at (eval 2319) line 249. Global symbol "$group" requires explicit package name at (eval 2319) line 254. Global symbol "$group" requires explicit package name at (eval 2319) line 259. Global symbol "$objects" requires explicit package name at (eval 2319) line 280. Global symbol "$key" requires explicit package name at (eval 2319) line 291. Global symbol "$key" requires explicit package name at (eval 2319) line 295. Global symbol "$printer" requires explicit package name at (eval 2319) line 308. Global symbol "$printer" requires explicit package name at (eval 2319) line 316. Global symbol "$share" requires explicit package name at (eval 2319) line 326. Global symbol "$share" requires explicit package name at (eval 2319) line 331. Global symbol "$share" requires explicit package name at (eval 2319) line 336. Global symbol "$share" requires explicit package name at (eval 2319) line 341. Global symbol "$share" requires explicit package name at (eval 2319) line 346. Global symbol "$share" requires explicit package name at (eval 2319) line 351. Global symbol "$share" requires explicit package name at (eval 2319) line 356. Global symbol "$objects" requires explicit package name at (eval 2319) line 376. Global symbol "$key" requires explicit package name at (eval 2319) line 387. Global symbol "$key" requires explicit package name at (eval 2319) line 391. Stack: [/usr/share/perl5/HTML/Mason/Interp.pm:631] [/usr/share/perl5/EBox/Module/Base.pm:866] [/usr/share/perl5/Error.pm:416] [/usr/share/perl5/EBox/Module/Base.pm:871] [/usr/share/perl5/EBox/Module/Service.pm:697] [/usr/share/perl5/EBox/Samba.pm:487] [/usr/share/perl5/EBox/Module/Base.pm:824] [/usr/share/perl5/EBox/Module/Service.pm:599] [/usr/share/perl5/EBox/Module/Service.pm:627] [/usr/share/perl5/Error.pm:416] [/usr/share/perl5/EBox/Module/Service.pm:634] [/usr/share/perl5/EBox/CGI/EBox/RestartService.pm:51] [/usr/share/perl5/EBox/CGI/Base.pm:262] [/usr/share/perl5/Error.pm:416] [/usr/share/perl5/EBox/CGI/Base.pm:278] [/usr/share/perl5/EBox/CGI/Run.pm:120] [/usr/share/ebox/cgi/ebox.cgi:19] [/usr/share/perl5/Error.pm:416] [/usr/share/ebox/cgi/ebox.cgi:42] [/usr/lib/perl5/ModPerl/RegistryCooker.pm:204] [/usr/lib/perl5/ModPerl/RegistryCooker.pm:170] [/usr/lib/perl5/ModPerl/Registry.pm:31] [-e:0]
Trace

Template samba/smb.conf.mas failed with Error during compilation of :
Global symbol "$objects" requires explicit package name at (eval 2319) line 215.
Global symbol "$key" requires explicit package name at (eval 2319) line 226.
Global symbol "$key" requires explicit package name at (eval 2319) line 230.
Global symbol "$group" requires explicit package name at (eval 2319) line 239.
Global symbol "$group" requires explicit package name at (eval 2319) line 244.
Global symbol "$group" requires explicit package name at (eval 2319) line 249.
Global symbol "$group" requires explicit package name at (eval 2319) line 254.
Global symbol "$group" requires explicit package name at (eval 2319) line 259.
Global symbol "$objects" requires explicit package name at (eval 2319) line 280.
Global symbol "$key" requires explicit package name at (eval 2319) line 291.
Global symbol "$key" requires explicit package name at (eval 2319) line 295.
Global symbol "$printer" requires explicit package name at (eval 2319) line 308.
Global symbol "$printer" requires explicit package name at (eval 2319) line 316.
Global symbol "$share" requires explicit package name at (eval 2319) line 326.
Global symbol "$share" requires explicit package name at (eval 2319) line 331.
Global symbol "$share" requires explicit package name at (eval 2319) line 336.
Global symbol "$share" requires explicit package name at (eval 2319) line 341.
Global symbol "$share" requires explicit package name at (eval 2319) line 346.
Global symbol "$share" requires explicit package name at (eval 2319) line 351.
Global symbol "$share" requires explicit package name at (eval 2319) line 356.
Global symbol "$objects" requires explicit package name at (eval 2319) line 376.
Global symbol "$key" requires explicit package name at (eval 2319) line 387.
Global symbol "$key" requires explicit package name at (eval 2319) line 391.


Stack:
[/usr/share/perl5/HTML/Mason/Interp.pm:631]
[/usr/share/perl5/EBox/Module/Base.pm:866]
[/usr/share/perl5/Error.pm:416]
[/usr/share/perl5/EBox/Module/Base.pm:871]
[/usr/share/perl5/EBox/Module/Service.pm:697]
[/usr/share/perl5/EBox/Samba.pm:487]
[/usr/share/perl5/EBox/Module/Base.pm:824]
[/usr/share/perl5/EBox/Module/Service.pm:599]
[/usr/share/perl5/EBox/Module/Service.pm:627]
[/usr/share/perl5/Error.pm:416]
[/usr/share/perl5/EBox/Module/Service.pm:634]
[/usr/share/perl5/EBox/CGI/EBox/RestartService.pm:51]
[/usr/share/perl5/EBox/CGI/Base.pm:262]
[/usr/share/perl5/Error.pm:416]
[/usr/share/perl5/EBox/CGI/Base.pm:278]
[/usr/share/perl5/EBox/CGI/Run.pm:120]
[/usr/share/ebox/cgi/ebox.cgi:19]
[/usr/share/perl5/Error.pm:416]
[/usr/share/ebox/cgi/ebox.cgi:42]
[/usr/lib/perl5/ModPerl/RegistryCooker.pm:204]
[/usr/lib/perl5/ModPerl/RegistryCooker.pm:170]
[/usr/lib/perl5/ModPerl/Registry.pm:31]
[-e:0]
at /usr/share/perl5/EBox/Module/Base.pm line 870
EBox::Module::Base::writeConfFileNoCheck('/etc/samba/smb.conf', 'samba/smb.conf.mas', 'ARRAY(0xbfc2c30)', 'undef') called at /usr/share/perl5/EBox/Module/Service.pm line 697
EBox::Module::Service::writeConfFile('EBox::Samba=HASH(0x9e945a8)', '/etc/samba/smb.conf', 'samba/smb.conf.mas', 'ARRAY(0xbfc2c30)') called at /usr/share/perl5/EBox/Samba.pm line 487
EBox::Samba::_setConf('EBox::Samba=HASH(0x9e945a8)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Base.pm line 824
EBox::Module::Base::_regenConfig('EBox::Samba=HASH(0x9e945a8)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 599
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x9e945a8)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 627
EBox::Module::Service::restartService('EBox::Samba=HASH(0x9e945a8)') called at /usr/share/perl5/EBox/CGI/EBox/RestartService.pm line 51
EBox::CGI::EBox::RestartService::_process('EBox::CGI::EBox::RestartService=HASH(0xc3b04b8)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::EBox::RestartService=HASH(0xc3b04b8)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'EBox/RestartService', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xc2e2d88)') 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(0xc37d2d8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xc37d2d8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xc2e2d88)') called at -e line 0
eval {...} called at -e line 0



PLEASE HELP!!!

Thank you


J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #17 on: April 19, 2010, 11:55:52 pm »
Download the whole file to make sure its syntax is correct:

http://trac.ebox-platform.com/export/15674/trunk/client/samba/stubs/smb.conf.mas

After that, don't forget to execute "/etc/init.d/ebox samba restart"
Zentyal Server Lead Developer

sbornman

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #18 on: April 20, 2010, 11:25:56 am »
Hi J. A. Calvo,

If I comment out the VFS Objects in the Samba config file, and replace the smb.conf.mas file with the updated one on the site, and I restart Samba... Will I then be able to use ClamAV virus scanning and "Recycle Bin" support when I select that in the web interface under "filesharing" ?

Basically what I am trying to find out is if I should leave virus scanning and "recycle bin" disabled after I comment out the VFS Modules full_audit option, and restart Samba

Stephan

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #19 on: April 20, 2010, 03:02:37 pm »
I think the only problematic "vfs" is full_audit, so you can still use antivirus and recyclebin if you left them uncommented.
Zentyal Server Lead Developer

Perske7

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #20 on: April 21, 2010, 08:50:02 pm »
Hi J.A. Calvo

This problem started with the antivirus scanning problem on Ebox 1.2.3. on the 15 April 2010.  I have removed the tick at the Samba file scanner in the Web interface, but the problem (access denied for files on the share folder) did not go away. So I backup all the data, captured the configuration of all the users etc, and loaded 1.4.  After loaded 1.4 for 2 times with full configuration, restored data to /home, because I thought I made a mistake, I realized I was not to blame.  I search the forum and end up on this problem link and try to solve the problem.  I have downloaded the smb.conf.mas file like you said, restart Ebox Samba, and same problem pops up.  Because this is a server in highly productive company, I could not keep this machine any longer away from the site, already 4 days, so i have reloaded it with Ebox 1.2.2, disable auto updates etc, and it is now working again.  Can't this serious bug not be solved by implementing the newest Samba which is available?  I am trying very hard to convince my clients to switch from Microsoft servers to Linux (Ebox - great reliable server!), and promised them less downtime.  I have 6 Ebox servers running at other sites, and I am now not very keen to upgrade to 1.4, before this problem is not fully resolved.

Thanks for all the effort and time for a further great product!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #21 on: April 21, 2010, 09:08:46 pm »
Hi Perske7,

The funny thing is that the newest Samba available has still the same problem...

We thought it was fixed in samba 3.4.6 (they said it in the changelog) so we uploaded it to 1.4-proposed asap, but the problem was not totally fixed, and samba 3.4.7 doesn't fix it either. So we are waiting for 3.4.8...

Thanks for your kind words about the product!
Zentyal Server Lead Developer

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #22 on: April 22, 2010, 02:32:15 am »
Hi again,

I've found a patch in the samba's bugzilla that seems to work. I've patched manually our current samba 3.4.6 package and uploaded a new version.

Anybody can confirm if it solves the problem?

To upgrade, add this line to /etc/apt/sources.list:

Code: [Select]
deb http://ppa.launchpad.net/ebox/1.4-proposed/ubuntu/ hardy main
And run:
Code: [Select]
apt-get update
apt-get install samba
Zentyal Server Lead Developer

kerridge0

  • Zen Monk
  • **
  • Posts: 57
  • Karma: +1/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #23 on: April 26, 2010, 09:30:23 pm »
I consistently get this. I install ebox as a kvm guest on a proxmox distribution and have this problem on more or less every 1.4-1 install.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #24 on: April 26, 2010, 09:53:37 pm »
I consistently get this. I install ebox as a kvm guest on a proxmox distribution and have this problem on more or less every 1.4-1 install.

But have you tried to upgrade the samba package as it says in the above message? (http://forum.ebox-platform.com/index.php?topic=3298.msg15496#msg15496)
Zentyal Server Lead Developer

jesanicholls

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #25 on: April 26, 2010, 10:21:00 pm »
I'm having the same problem and tried the above mentioned. When i run apt-get update, I get:

W: Failed to fetch http://ppa/launchpad.net/ebox/1.4-proposed/unbuntu/dists/hardy/main/binary-i386/Packages.gz  404 Not Found

Any ebox fixes for this coming soon... Will the new samba 3.4.8 being released on may 11th fix this?

kerridge0

  • Zen Monk
  • **
  • Posts: 57
  • Karma: +1/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #26 on: April 27, 2010, 03:25:46 pm »
But have you tried to upgrade the samba package as it says in the above message? (http://forum.ebox-platform.com/index.php?topic=3298.msg15496#msg15496)

To be honest, I've got this in production and if disabling the setting in smb.conf.mas works i am going to choose that all the way... it's a simple fix, on a feature I can live without.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #27 on: April 27, 2010, 05:04:10 pm »
I'm having the same problem and tried the above mentioned. When i run apt-get update, I get:

W: Failed to fetch http://ppa/launchpad.net/ebox/1.4-proposed/unbuntu/dists/hardy/main/binary-i386/Packages.gz  404 Not Found

Any ebox fixes for this coming soon... Will the new samba 3.4.8 being released on may 11th fix this?

The URL is wrong, it's "ppa.launchpad.net", not "ppa/launchpad.net".

Yes, I hope samba 3.4.8 will include this same fix, but you can already test our patched 3.4.6.
Zentyal Server Lead Developer

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #28 on: April 27, 2010, 06:53:13 pm »
Domain logins seem to work so far with full_audit uncommented. Profiles are updated on logout.

Thanks J.A.

chivar

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: ebox 1.4 samba 3.4.6 read/write problems on shares
« Reply #29 on: August 09, 2010, 11:58:31 am »
I've spent one day figthing with the same issue. It was (at least in my case) an issue related with the samba vfs object full audit.

Try this (and don't touch the web interface during the proces or it will overwrite your changes):

open /etc/samba/smb.conf and comment all the references to full audit:

# vfs objects = full_audit
# full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
# full_audit:failure = none
.
.
[homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
# vfs objects = full audit
.
.
[myshare]
.
.

Then restart samba (/etc/init.d/samba restart) and check if the problem is solved.

If everything works, to prevent the web interface from re-introducing the problem, look at this page:

http://trac.ebox-platform.com/changeset/15674

and apply the changes to:

 /usr/share/ebox/stubs/samba/smb.conf.mas


Good luck!





this solved my problem with ebox server, i can now open jpg, vsd, dwg files and other and the error "not enough memory etc. etc." is gone now :) thanks bro sidmax!!!