Modify

Ticket #2990 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

"du" tries to calculate size of .gvfs and crashes due to permission denied

Reported by: luis.perez@… Owned by: jamor@…
Milestone: 2.2 Component: base
Severity: normal Keywords:
Cc:

Description (last modified by jacalvo@…) (diff)

Error

root command /usr/bin/du --summarize --block-size=1048576 /home failed. 
Error output: /usr/bin/du: cannot access `/home/soporte/.gvfs': Permission denied

Command output: 309	/home
. 
Exit value: 1

Trace

root command /usr/bin/du --summarize --block-size=1048576 /home failed. 
Error output: /usr/bin/du: cannot access `/home/soporte/.gvfs': Permission denied

Command output: 309	/home
. 
Exit value: 1 at /usr/share/perl5/Error.pm line 182
	Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', '/usr/bin/du --summarize --block-size=1048576 /home', 'output', 'ARRAY(0x258de310)', 'error', 'ARRAY(0x256ed178)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 212
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/4RwsYDSviF.cmd 2>...', '/usr/bin/du --summarize --block-size=1048576 /home', 256, 'ARRAY(0x258de310)', 'ARRAY(0x256ed178)') called at /usr/share/perl5/EBox/Sudo.pm line 181
	EBox::Sudo::_root(1, '/usr/bin/du --summarize --block-size=1048576 /home') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('/usr/bin/du --summarize --block-size=1048576 /home') called at /usr/share/perl5/EBox/FileSystem.pm line 194
	EBox::FileSystem::dirDiskUsage('/home', 1048576) called at /usr/share/perl5/EBox/Report/DiskUsageProvider.pm line 67
	EBox::Report::DiskUsageProvider::diskUsage('EBox::Samba=HASH(0x24e9b710)', 'blockSize', 1048576, 'fileSystems', '/dev/sda1') called at /usr/share/perl5/EBox/Report/DiskUsage.pm line 243
	EBox::Report::DiskUsage::usage('fileSystem', '/dev/sda1') called at /usr/share/perl5/EBox/Report/DiskUsage.pm line 72
	EBox::Report::DiskUsage::chart('/dev/sda1') called at /usr/share/perl5/EBox/CGI/Report/DiskUsage.pm line 51
	EBox::CGI::Report::DiskUsage::_process('EBox::CGI::Report::DiskUsage=HASH(0x258ffe60)') called at /usr/share/perl5/EBox/CGI/Base.pm line 254
	EBox::CGI::Base::run('EBox::CGI::Report::DiskUsage=HASH(0x258ffe60)') called at /usr/share/perl5/EBox/CGI/Run.pm line 128
	EBox::CGI::Run::run('EBox::CGI::Run', 'Report/DiskUsage', 'EBox') called at /usr/share/zentyal/cgi/ebox.cgi line 34
	ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x2598d558)') 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(0x25a43888)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x25a43888)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x2598d558)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (12.9 KB) - added by anonymous 2 years ago.
zentyal.log

Change History

Changed 2 years ago by anonymous

zentyal.log

comment:1 Changed 2 years ago by jacalvo@…

  • Owner changed from jacalvo@… to jamor@…
  • Description modified (diff)

comment:2 Changed 2 years ago by jacalvo@…

  • Summary changed from Bug report from Zentyal Server to "du" tries to calculate size of .gvfs and crashes due to permission denied

comment:3 Changed 2 years ago by luis.perez@…

So what's the solution to this issue?

comment:4 Changed 2 years ago by jamor@…

Strange, because 'du' is executed with root credentials.

What permissions /home/soporte/.gvfs have?. To know them, please execute this command and report its output:

sudo ls -l /home/soporte/.gvfs

Thanks, Javier

comment:5 Changed 2 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to fixed

(In [22516]) NN: Do not crash when "du" gives permission denied on mount points like .gvfs (closes #2990)

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.