openstreetmap / operations

OSMF Operations Working Group issue tracking
https://operations.osmfoundation.org/
99 stars 12 forks source link

OTRS daemon filesystem error #1079

Closed Firefishy closed 6 months ago

Firefishy commented 6 months ago

OTRS systemd daemon is reporting the following error.

OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-10[3220853]: [Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][Line:53]: 
There was an error executing CleanUp() in Kernel::System::Cache: Can't stat /usr/share/otrs/var/tmp/CacheFileStorable/Loader: No such file or directory
at /usr/share/otrs/Kernel/System/Cache/FileStorable.pm line 241.

I suspect this may be related to ProtectSystem=strict and ReadWritePaths=/run/otrs /var/lib/otrs /var/log/exim4 /var/spool/exim4

/usr/share/otrs/var/ to symlinked to /var/lib/otrs. /usr/share/otrs/var/tmp/CacheFileStorable/Loader then maps to /var/lib/otrs/tmp/CacheFileStorable/Loader

tomhughes commented 6 months ago

It wasn't a permission problem it was a problem with the recurring scheduled tasks having been duplicated in the database meaning that two copies of a cleanup task running at the same time and racing to delete that directory with the second one getting an error.