Can't write /opt/otrs/var/tmp/CacheFileStorable Permission denied

Moderator: crythias

Post Reply
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Can't write /opt/otrs/var/tmp/CacheFileStorable Permission denied

Post by hermawan »

i refer to this topic but the error that i got its still same, exactly same errors,

this post creator said its apache errors, but i couldnt find any solution, and its happen untul right now, and i was try any solution i was found and still didnt help.

any suggestion? here i attached some log

$id otrs

Code: Select all

uid=1000(otrs) gid=33(www-data) groups=33(www-data),0(root)
log

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::Ticket::EscalationCheck-23 Perl: 5.30.0 OS: linux Time: Thu Feb 4 15:02:08 2021

 Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/6/7/6732332f2164b22a374a2cd7c080aea3': 

 Traceback (3001930): 
   Module: Kernel::System::Main::FileWrite Line: 500
   Module: Kernel::System::Cache::FileStorable::Set Line: 97
   Module: Kernel::System::Cache::Set Line: 245
   Module: Kernel::System::DynamicField::DynamicFieldGet Line: 319
   Module: Kernel::System::DynamicField::DynamicFieldListGet Line: 1016
   Module: Kernel::System::Service::new Line: 67
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
   Module: Kernel::System::ObjectManager::Get Line: 200
   Module: Kernel::System::Ticket::TicketGet Line: 1387
   Module: Kernel::System::Console::Command::Maint::Ticket::EscalationCheck::Run Line: 94
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 144
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 123
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 235
   Module: (eval) Line: 330
   Module: main::Start Line: 330
   Module: ./otrs.Daemon.pl Line: 151

ERROR: OTRS-otrs.Console.pl-Maint::Ticket::EscalationCheck-23 Perl: 5.30.0 OS: linux Time: Thu Feb 4 15:02:08 2021

 Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/b/f/bfdc5f1e460c58d65e1512de4025075e': Permission denied

 Traceback (3001930): 
   Module: Kernel::System::Main::FileWrite Line: 500
   Module: Kernel::System::Cache::FileStorable::Set Line: 97
   Module: Kernel::System::Cache::Set Line: 245
   Module: Kernel::System::DynamicField::DynamicFieldGet Line: 319
   Module: Kernel::System::DynamicField::DynamicFieldListGet Line: 1016
   Module: Kernel::System::Service::new Line: 67
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
   Module: Kernel::System::ObjectManager::Get Line: 200
   Module: Kernel::System::Ticket::TicketGet Line: 1387
   Module: Kernel::System::Console::Command::Maint::Ticket::EscalationCheck::Run Line: 94
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 144
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 123
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 235
   Module: (eval) Line: 330
   Module: main::Start Line: 330
   Module: ./otrs.Daemon.pl Line: 151
my envvars apache conf (users and groups)

Code: Select all

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
Thank you
---
ati ati kepatil memiaw :D
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: Can't write /opt/otrs/var/tmp/CacheFileStorable Permission denied

Post by reneeb »

You should change

Code: Select all

APACHE_RUN_USER
to otrs and restart apache. And run

Code: Select all

perl bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=www-data .
as user otrs in the /opt/otrs/ directory.
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
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: Can't write /opt/otrs/var/tmp/CacheFileStorable Permission denied

Post by hermawan »

reneeb wrote: 04 Feb 2021, 20:12 You should change

Code: Select all

APACHE_RUN_USER
to otrs and restart apache. And run

Code: Select all

perl bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=www-data .
as user otrs in the /opt/otrs/ directory.
Many thanks, and yess it should run APACHE as otrs user.
solved and many thanks :D
---
ati ati kepatil memiaw :D
Post Reply