Ticket #3871 (closed defect: fixed)
Antivirus: Missing argument: Signatures
| Reported by: | ronie@… | Owned by: | jag |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | antivirus |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by jamor@…) (diff)
Falha no modulo Antivirus
Error
Faltando argumento: Assinaturas
Trace
Faltando argumento: Assinaturas at /usr/share/perl5/EBox/Types/Abstract.pm line 469
EBox::Types::Abstract::setMemValue('EBox::Types::Int=HASH(0x7f0ce21cf418)', 'HASH(0x7f0ce21ba1a0)') called at /usr/share/perl5/EBox/Types/Basic.pm line 137
EBox::Types::Basic::_setValue('EBox::Types::Int=HASH(0x7f0ce21cf418)', undef) called at /usr/share/perl5/EBox/Types/Abstract.pm line 432
EBox::Types::Abstract::setValue('EBox::Types::Int=HASH(0x7f0ce21cf418)', undef) called at /usr/share/perl5/EBox/Model/DataTable.pm line 4373
EBox::Model::DataTable::_fillTypes('EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'HASH(0x7f0ce21c5678)') called at /usr/share/perl5/EBox/Model/DataForm/ReadOnly.pm line 125
EBox::Model::DataForm::ReadOnly::row('EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)') called at /usr/share/zentyal/templates/ajax/form.mas line 42
HTML::Mason::Commands::__ANON__('model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7f0ce21a83a0)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', ...) called at /usr/share/zentyal/templates/ajax/modelViewer.mas line 161
HTML::Mason::Commands::__ANON__('model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7f0ce21b7fe0)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)') called at /usr/share/zentyal/templates/ajax/modelViewer.mas line 75
HTML::Mason::Commands::__ANON__('model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', undef) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7f0ce21b6088)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', undef) called at /usr/share/zentyal/templates/ajax/modelViewer.mas line 28
HTML::Mason::Commands::__ANON__('data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', undef, 'tpages', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f0ce21b8598)', 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', undef, ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 483
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 483
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request=HASH(0x7f0ce21c98f0)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef, 'data', undef, 'dataTable', 'HASH(0x7f0ce0b5f988)', 'model', 'EBox::AntiVirus::Model::FreshclamStatus=HASH(0x7f0ce0b6ef40)', 'hasChanged', ...) called at /usr/share/perl5/EBox/CGI/Base.pm line 148
EBox::CGI::Base::_body('EBox::CGI::View::DataTable=HASH(0x7f0ce21a7950)') called at /usr/share/perl5/EBox/CGI/Base.pm line 192
EBox::CGI::Base::_print('EBox::CGI::View::DataTable=HASH(0x7f0ce21a7950)') called at /usr/share/perl5/EBox/CGI/Base.pm line 348
EBox::CGI::Base::run('EBox::CGI::View::DataTable=HASH(0x7f0ce21a7950)') called at /usr/share/perl5/EBox/CGI/Run.pm line 129
EBox::CGI::Run::run('EBox::CGI::Run', 'AntiVirus/View/FreshclamStatus', '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(0x7f0ce219d6a8)') 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(0x7f0ce2153e58)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f0ce2153e58)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f0ce219d6a8)') called at -e line 0
eval {...} called at -e line 0
Attachments
Change History
Changed 15 months ago by anonymous
-
attachment
zentyal.log
added
comment:1 Changed 15 months ago by jamor@…
- Status changed from new to accepted
- Component changed from base to antivirus
- Description modified (diff)
- Summary changed from Bug report from Zentyal Server to Antivirus: Missing argument: Signatures
Hello Ronnie,
could you tell us more of how you came to this error?. You have before entered in the page without problems?.
Can you execute the following commands and report back if you continue receiving this error:
sudo -s su root -c' clamav /usr/bin/freshclam --quiet' exit
Regards,
Javier
comment:2 Changed 15 months ago by jamor@…
- Status changed from accepted to closed
- Resolution set to fixed
Never mind. I have found and fixed the error in [75ec9e75622e]
If you want to hotfix your server:
- Download the new FreshclamStatus?.pm from http://git.zentyal.org/zentyal.git/blob/75ec9e75622eb2af3f94579c34c664391cd79a4e:/main/antivirus/src/EBox/AntiVirus/Model/FreshclamStatus.pm
- Use it to replace /usr/share/perl5/EBox/AntiVirus/Model/FreshclamStatus.pm
- Execute 'sudo /etc/init.d/zentyal apache restart'
Regards,
Javier
comment:3 Changed 4 months ago by anonymous
- Status changed from closed to reopened
- Resolution fixed deleted
Current FreshclamStatus?.pm in zentyal-antivirus 2.2.2 doesn't show signatures count properly. Please find below a patch.
--- FreshclamStatus?.pm.orig 2013-01-29 09:21:49.000000000 +0100 +++ FreshclamStatus?.pm 2013-01-29 09:21:35.000000000 +0100 @@ -229,7 +229,7 @@
# get n signatures my $nSig = 0;
- $cmd = 'grep Loaded.*signatures ' . CLAMAV_LOG_FILE . ' | tail -n 1';
+ $cmd = 'grep loaded.*signatures ' . CLAMAV_LOG_FILE . ' | tail -n 1';
$output = EBox::Sudo::root($cmd);
$line = $output->[0];
comment:4 Changed 4 months ago by jacalvo
- Owner changed from jamor@… to jag
- Status changed from reopened to new
comment:5 Changed 2 months ago by jag
- Status changed from new to closed
- Resolution set to fixed
Thanks a lot for your patch, but instead of use it I have backported code from 3.0
Here is the link to the pull request https://github.com/Zentyal/zentyal/pull/208
zentyal.log