Ajax error because of cache subdir level

Moderator: crythias

Locked
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Ajax error because of cache subdir level

Post by RStraub »

Hello,

for weeks we had very annoying ajax error popups that seemed to appear randomly. We were finally able to fix them by setting the Cache SubDirLevel from 2 to 0. My question now is: Will that decrease the cache performance? And could this be considered a bug in otrs which we should report?

The only messages we were able to find are from the apache error log:

Code: Select all

[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) f: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) 0: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) 4: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) 1: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) 9: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) 2: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/) e: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) b: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) c: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 3: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 0: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 4: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 1: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 6: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 8: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 9: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) 2: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul  1 11:38:44 2014] -e: Can't cd to (/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/) e: No such file or directory
[Tue Jul  1 11:38:44 2014] -e:  at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 204.
[Tue Jul 01 11:38:44 2014] [error] [Tue Jul  1 11:38:44 2014] -e: Can't cd to /opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/f/a: No such file or directory\n
The "Can't cd" happened all the time, while the ajax popup only appeared when the last line ([error]) appeared in the log.

This is the very meaningful popup:
image1.png
image2.png
Best regards,
Rolf

(Note: This happened on 3.3.5, 3.3.7 and 3.3.8 on three different VMs, all using Ubuntu)
You do not have the required permissions to view the files attached to this post.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ajax error because of cache subdir level

Post by crythias »

permissions
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ajax error because of cache subdir level

Post by crythias »

permissions. Specifically, the caching location is stored while the folder is not created.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Ajax error because of cache subdir level

Post by RStraub »

There were no messages about files not being able to be created. The folder has rights "otrs:www-data" and the otrs.SetPermissions.pl was run.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ajax error because of cache subdir level

Post by crythias »

You will not get errors on write for folders not found. But either file system problems (space/permissions) or corrupt data.
DeleteCache.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked