SysConfig not allowing updates - error thrown

Moderator: crythias

Locked
zingmatter
Znuny newbie
Posts: 3
Joined: 01 May 2012, 21:42
Znuny Version: 3.1.4
Real Name: Tim Brown
Company: NHS ePortfolio

SysConfig not allowing updates - error thrown

Post by zingmatter »

Hi

When trying to make changes to my OTRS::ITSM installation (3.1.4 with MySQL on Fedora) I get this error:

Error Message: Can't write ConfigItem!

Backend ERROR: OTRS-CGI-10 Perl: 5.12.4 OS: linux Time: Tue May 1 16:51:36 2012 Message: Can't write ConfigItem! Traceback (13669): Module: Kernel::Modules::AdminSysConfig::Run (v1.119) Line: 174 Module: Kernel::System::Web::InterfaceAgent::Run (v1.64) Line: 868 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 46 Module: (eval) (v1.90) Line: 204 Module: ModPerl::RegistryCooker::run (v1.90) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.90) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31

I tried checking permissions on the Kernel directory but it all looks ok. Google hasn't helped this time and I'm close to ripping out the entire installation and starting from scratch (the system is still in an assessment phase so just test data at the moment though I'd prefer not to have to do all that again!)

Any help greatly appreciated - it might be something really simple that I'm missing.

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SysConfig not allowing updates - error thrown

Post by jojo »

switch off SELINUX
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zingmatter
Znuny newbie
Posts: 3
Joined: 01 May 2012, 21:42
Znuny Version: 3.1.4
Real Name: Tim Brown
Company: NHS ePortfolio

Re: SysConfig not allowing updates - error thrown

Post by zingmatter »

Thanks for that. However when I check SELINUX (/usr/sbin/getenforce) it returns disabled so I guess it's already turned off?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SysConfig not allowing updates - error thrown

Post by jojo »

is the webserver user allowed to write Kernel/Config/Files/ZZZAuto.pm and ZZZAAuto.pm?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zingmatter
Znuny newbie
Posts: 3
Joined: 01 May 2012, 21:42
Znuny Version: 3.1.4
Real Name: Tim Brown
Company: NHS ePortfolio

Re: SysConfig not allowing updates - error thrown

Post by zingmatter »

Hi

Yes that's exactly it! I fixed this by

Code: Select all

chown apache:apache ZZZAuto.pm
chmod +w ZZZAuto.pm
chmod g+w ZZZAuto.pm
and now it's working.

Many thanks for your help.
Locked