Ownership Problem with ZZZAAuto.pm and Cache [Solved]

Moderator: crythias

Post Reply
hukrause
Znuny newbie
Posts: 7
Joined: 17 Dec 2014, 13:22
Znuny Version: 4.0.24
Real Name: Hubert Krause

Ownership Problem with ZZZAAuto.pm and Cache [Solved]

Post by hukrause »

Hello all,

I've a nasty permission Problem with the File ZZZAAuto.pm. My Platform is Debian 9, I've upgraded a Version 4.0.24 deploy via recent version 5 finally to version 6.0.3 The "default" permissions are 660 and otrs:www-data as owner:group. In this case everything is fine. The first Time I Change something in sysconfig, the ownership magically changed to www-data:www-data. Now the OTRS-otrs.Daemon.pl is complaining about not beeing able to read the file (wich is correct because of mode 660).

The Same is true for the Cache Files. Here is an error message after I change some settings:

Code: Select all

Jan  4 11:57:20 50sv-otrs-test OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10[27417]: [Error][Kernel::System::Main::FileWrite][Line:419]: Can't write '/opt/otrs/var/tmp/CacheFileStorable/SysConfigDefault/9/d/9d7a00c99a6ea9acea3c328281e3aff4':
Jan  4 11:57:22 50sv-otrs-test OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10[27417]: [Error][Kernel::System::Main::FileWrite][Line:419]: Can't write '/opt/otrs/var/tmp/CacheFileStorable/SysConfigDefault/9/d/9d7a00c99a6ea9acea3c328281e3aff4': Permission denied
Jan  4 11:57:25 50sv-otrs-test OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10[27417]: [Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][Line:52]: There was an error executing ConfigurationInvalidList() in Kernel::System::SysConfig: ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10 Perl: 5.24.1 OS: linux Time: Thu Jan  4 11:57:20 2018#012#012 Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable/SysConfigDefault/9/d/9d7a00c99a6ea9acea3c328281e3aff4': #012#012 Traceback (27417): #012   Module: Kernel::System::Main::FileWrite Line: 419#012   Module: Kernel::System::Cache::FileStorable::Set Line: 97#012   Module: Kernel::System::Cache::Set Line: 245#012   Module: Kernel::System::SysConfig::DB::DefaultSettingGet Line: 690#012   Module: Kernel::System::SysConfig::SettingGet Line: 181#012   Module: Kernel::System::SysConfig::ConfigurationListGet Line: 3053#012   Module: Kernel::System::SysConfig::ConfigurationInvalidList Line: 3170#012   Module: (eval) Line: 137#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::AsynchronousExecutor::Run Line: 117#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 235#012   Module: (eval) Line: 316#012   Module: main::Start Line: 316#012   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 137#012#012ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10 Perl: 5.24.1 OS: linux Time: Thu Jan  4 11:57:22 2018#012#012 Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable/SysConfigDefault/9/d/9d7a00c99a6ea9acea3c328281e3aff4': Permission denied#012#012 Traceback (27417): #012   Module: Kernel::System::Main::FileWrite Line: 419#012   Module: Kernel::System::Cache::FileStorable::Set Line: 97#012   Module: Kernel::System::Cache::Set Line: 245#012   Module: Kernel::System::SysConfig::DB::DefaultSettingGet Line: 690#012   Module: Kernel::System::SysConfig::SettingGet Line: 181#012   Module: Kernel::System::SysConfig::ConfigurationInvalidList Line: 3188#012   Module: (eval) Line: 137#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::AsynchronousExecutor::Run Line: 117#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 235#012   Module: (eval) Line: 316#012   Module: main::Start Line: 316#012   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 137
Everything is fine again, when I run bin/otrs.SetPermissions.pl --web-group=www-data as root. Does someone now how to handle this? I don't like to run the Daemon with Webserver rights and I don't think that this is intended behavior...

Best regards,

Hubert
Last edited by hukrause on 12 Jan 2018, 17:09, edited 1 time in total.
hukrause
Znuny newbie
Posts: 7
Joined: 17 Dec 2014, 13:22
Znuny Version: 4.0.24
Real Name: Hubert Krause

Re: Ownership Problem with ZZZAAuto.pm and Cache [Solved]

Post by hukrause »

Hello all,

stupid me, i simply forgot to add otrs user to the group www-data.

sorry for the noise.

Regards,

Hubert
Post Reply