GenericAgent.pl No such file...
Moderator: crythias
-
- Znuny newbie
- Posts: 18
- Joined: 21 Oct 2010, 21:02
- Znuny Version: 3.1.0
- Company: PointPub Media Communications
GenericAgent.pl No such file...
Hi,
Since a while, we are having this error sometimes...
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Tue Apr 17 14:20:02 2012
Message: Can't open '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/b11562902f3f9a315bc81a55339efe5b': No such file or directory
Traceback (6488):
Module: Kernel::System::Main::FileRead (v1.63) Line: 337
Module: Kernel::System::Cache::FileStorable::Get (v1.9) Line: 117
Module: Kernel::System::Cache::Get (v1.21) Line: 157
Module: Kernel::System::DynamicField::DynamicFieldGet (v1.50) Line: 289
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.50) Line: 964
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs//bin/otrs.GenericAgent.pl (v1.6) Line: 89
OTRS: 3.1.2
Since a while, we are having this error sometimes...
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Tue Apr 17 14:20:02 2012
Message: Can't open '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/b11562902f3f9a315bc81a55339efe5b': No such file or directory
Traceback (6488):
Module: Kernel::System::Main::FileRead (v1.63) Line: 337
Module: Kernel::System::Cache::FileStorable::Get (v1.9) Line: 117
Module: Kernel::System::Cache::Get (v1.21) Line: 157
Module: Kernel::System::DynamicField::DynamicFieldGet (v1.50) Line: 289
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.50) Line: 964
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs//bin/otrs.GenericAgent.pl (v1.6) Line: 89
OTRS: 3.1.2
OTRS 3.2.9
OS: Debian Linux, MySql 5.1.x
OS: Debian Linux, MySql 5.1.x
Re: GenericAgent.pl No such file...
Hi,
this morning we had this problem, too. Are there any news about this error? Bad configuration? Bug in the software?
Looking forward to get any response and by the way - a BIG THANK YOU to the developers and all other contributors of OTRS!
this morning we had this problem, too. Are there any news about this error? Bad configuration? Bug in the software?
Looking forward to get any response and by the way - a BIG THANK YOU to the developers and all other contributors of OTRS!
Re: GenericAgent.pl No such file...
*PING*
Anything I can do?
Todays mail:
Anything I can do?
Todays mail:
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Thu Sep 6 06:40:01 2012
Message: Can't open
'/opt/otrs/var/tmp/CacheFileStorable/DynamicField/b11562902f3f9a315bc81a55339efe5b': No
such file or directory
Traceback (14300):
Module: Kernel::System::Main::FileRead (v1.63) Line: 337
Module: Kernel::System::Cache::FileStorable::Get (v1.9) Line: 117
Module: Kernel::System::Cache::Get (v1.21) Line: 157
Module: Kernel::System::DynamicField::DynamicFieldGet (v1.56.2.2) Line: 272
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.56.2.2) Line: 940
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs//bin/otrs.GenericAgent.pl (v1.6) Line: 89
Re: GenericAgent.pl No such file...
*PONG*
(Couldn't resist)
Does this directory exist:
/opt/otrs/var/tmp/CacheFileStorable/DynamicField/
If it does, what are the permissions on it? The error looks like it's trying to find a cache file that isn't there. This could be because it can't write to that location.
(Couldn't resist)
Does this directory exist:
/opt/otrs/var/tmp/CacheFileStorable/DynamicField/
If it does, what are the permissions on it? The error looks like it's trying to find a cache file that isn't there. This could be because it can't write to that location.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Re: GenericAgent.pl No such file...
Yes it exists:CSL wrote:Does this directory exist:
/opt/otrs/var/tmp/CacheFileStorable/DynamicField/
Code: Select all
drwxrwsr-x 2 otrs www-data 4096 Sep 18 08:20 DynamicField
drwxrwsr-x 2 otrs www-data 12288 Sep 18 08:29 DynamicFieldValue
The newest files have this owner and permissions:CSL wrote:If it does, what are the permissions on it? The error looks like it's trying to find a cache file that isn't there. This could be because it can't write to that location.
Code: Select all
-rw-rw-r-- 1 www-data www-data 2137 Sep 18 08:20 538867e23daf5723d184469a0e16613b
-rw-rw-r-- 1 www-data www-data 41 Sep 18 08:16 55296f4090c134bb28e5b3d80783f7d2
Code: Select all
-rw-rw-r-- 1 otrs www-data 298 Sep 18 08:10 b11562902f3f9a315bc81a55339efe5b
Re: GenericAgent.pl No such file...
From section 7 of the INSTALL file in the OTRS directory:
Wbserver with www-data user (e. g. Debian, Ubuntu):
shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
The owner (first name listed) of the directory and all files should be otrs, not www-data. www-data should be the group (the second name listed). Try running the above to see if it corrects the issue.
Wbserver with www-data user (e. g. Debian, Ubuntu):
shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
The owner (first name listed) of the directory and all files should be otrs, not www-data. www-data should be the group (the second name listed). Try running the above to see if it corrects the issue.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Re: GenericAgent.pl No such file...
I did this during the install of 3.1.8 and today during the update to 3.1.10. I'll see, if this issue is fixed in one of two patches and came back to tell you.shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
But I had to use the real folder and not the link: /opt/otrs-3.1.10 and not /opt/otrs.
I created the link using:
Code: Select all
shell:/opt/> ln -s otrs-3.1.10 otrs
Eike
Re: GenericAgent.pl No such file...
Here, we go again:
This morning in /opt/otrs/var/tmp/CacheFileStorable/DynamicField/:
The file that cause the problem is today owned by the right user and group, I think. All files in the dir /opt/otrs/var/tmp/CacheFileStorable/DynamicField/ are touched today and the two in the quote above have not the right owner and group. What can cause this?
Code: Select all
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Tue Sep 25 14:40:01 2012
Message: Can't open
'/opt/otrs/var/tmp/CacheFileStorable/DynamicField/20aa1d07d0cc84b17bd7ad64056623ea': No
such file or directory
Traceback (14408):
Module: Kernel::System::Main::FileRead (v1.63) Line: 337
Module: Kernel::System::Cache::FileStorable::Get (v1.9) Line: 117
Module: Kernel::System::Cache::Get (v1.21) Line: 157
Module: Kernel::System::DynamicField::DynamicFieldGet (v1.56.2.2) Line: 272
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.56.2.2) Line: 940
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs//bin/otrs.GenericAgent.pl (v1.6) Line: 89
Code: Select all
-rw-rw-r-- 1 otrs www-data 296 Sep 26 08:40 20aa1d07d0cc84b17bd7ad64056623ea
[...]
-rw-rw-r-- 1 www-data www-data 2.1K Sep 26 08:54 538867e23daf5723d184469a0e16613b
-rw-rw-r-- 1 www-data www-data 41 Sep 26 08:47 55296f4090c134bb28e5b3d80783f7d2
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent.pl No such file...
Apache runs as user www-data and OTRS wants to run as user otrs.52nEHJ wrote:What can cause this?
How to fix? well, you could make sure apache runs as otrs, but there appears to be another group issue ...
It seems weird, but apparently www-data user isn't a member of the www-data group. The reason I say that is that the group is writable for the can't open directory but the context of apache can't see it.
It's possible that I'm backwards in this assessment, but the more reasonable scenario of otrs not being a member of www-data and therefore being unable to read would mean that 20aa* should be able to be read and 538* and 552* would not be.
also, selinux enabled causes this. Disable selinux.
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
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
Re: GenericAgent.pl No such file...
This morning, it was another file:
Regarding the group memberships:
Do I need to add user www-data to group otrs?
I'll give it a try.
Code: Select all
Message: Can't open
'/opt/otrs/var/tmp/CacheFileStorable/DynamicField/6732332f2164b22a374a2cd7c080aea3': No
such file or directory
Code: Select all
:~# groups www-data
www-data : www-data [...]
vServerB2:~# groups otrs
otrs : otrs www-data
I'll give it a try.
Are you sure, that disabling security in such a case is the right decision? I would like to fix the configuration of the components first.crythias wrote:also, selinux enabled causes this. Disable selinux.
Re: GenericAgent.pl No such file...
Sounds like crythias has got to the bottom of it; you need to disable selinux on your OTRS server, it's part of the INSTALL file instructions. Selinux only provides enhanced security if you have set it up correctly and know what you are doing with it, otherwise it will only cause problems.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL