Error install OTRSCodePolicy

Moderator: crythias

Post Reply
jcartesv
Znuny newbie
Posts: 2
Joined: 30 Jul 2017, 08:24
Znuny Version: 5.0.21
Real Name: jcartes
Company: ddconsulting

Error install OTRSCodePolicy

Post by jcartesv »

Hello Team, I can not install the OTRSCodePolicy plugin, by command I installed Code::TidyAll without errors, with App::cpanminus and Perl::Critic without problems, but when I install the package on the web, it gives me error. I tried to install "shell> bin/otrs.Console.pl Admin::Package::Install /path/to/OTRSCodePolicy-1.0.10.opm" " command but could not find the package "OTRSCodePolicy-1.0.10.opm".

My version OTRS is 5.0.21

[root@localhost otrs]# cpanm Code::TidyAll
Code::TidyAll is up to date. (0.63)

[root@localhost otrs]# cpanm App::cpanminus
App::cpanminus is up to date. (1.7043)

[root@localhost otrs]# cpanm Perl::Critic
Perl::Critic is up to date. (1.130)

[otrs@localhost ~]$ bin/otrs.Console.pl Admin::Package::Install /path/to/OTRSCodePolicy-1.0.10.opm
Installing package...
Error: No such file '/path/to/OTRSCodePolicy-1.0.10.opm' or invalid 'package-version'!


Error in Web:

Backend ERROR: OTRS-CGI-84 Perl: 5.16.3 OS: linux Time: Sat Jul 29 23:55:46 2017

Message: Sorry, can't install package, because module Code::TidyAll v0.17 is required and not installed!

RemoteAddress: 192.168.0.103
RequestURI: /otrs/index.pl?Action=AdminPackageManager;Subaction=InstallRemote;Source=http%3A%2F%2Fftp.otrs.org%2Fpub%2Fotrs%2Fpackages%2F;File=OTRSCodePolicy-1.0.10.opm;Name=OTRSCodePolicy;Version=1.0.10;ChallengeToken=ccgr19YFz32x8Exc7NRrOP0DFRxfGtzE;

Traceback (1461):
Module: Kernel::System::Package::_CheckModuleRequired Line: 3342
Module: Kernel::System::Package::PackageInstall Line: 505
Module: Kernel::Modules::AdminPackageManager::_InstallHandling Line: 1938
Module: Kernel::Modules::AdminPackageManager::Run Line: 883
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1054
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 40
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Error install OTRSCodePolicy

Post by reneeb »

cpanminus can install modules into both system Perl and user specific directory. Did you check that the modules were installed into system Perl?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply