GenericAgent: can't open .../DynamicField/....
Moderator: crythias
-
- Znuny newbie
- Posts: 67
- Joined: 02 Apr 2012, 12:18
- Znuny Version: 3.1.14
- Real Name: Massimo Bianchi
- Company: NPO Sistemi S.p.A.
- Contact:
GenericAgent: can't open .../DynamicField/....
Hello,
I am getting this error, daily, from the cron job:
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Sat Apr 14 03:40:02 2012
Message: Can't open '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/bfdc5f1e460c58d65e1512de4025075e': No such file or directory
Traceback (8588):
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.54) Line: 291
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.54) Line: 960
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs/bin/otrs.GenericAgent.pl (v1.6) Line: 89
I checked at OS level, the file exist, and is readable by the otrs user (owner of cron)
file bfd... content is:
##############################
2012-02-28 14:26:01
ChangeTime2
CreateTime
FieldOrderImpact
ObjectType7%)
13344132024%)
##############################
Questions:
1) what is this file ?
2) how cai I link it to the dynamicfiled in otrs ?
3) since it's a cache, is it safe to delete it and the other files in the directory ?
Kind regards,
Massimo
I am getting this error, daily, from the cron job:
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Sat Apr 14 03:40:02 2012
Message: Can't open '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/bfdc5f1e460c58d65e1512de4025075e': No such file or directory
Traceback (8588):
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.54) Line: 291
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.54) Line: 960
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs/bin/otrs.GenericAgent.pl (v1.6) Line: 89
I checked at OS level, the file exist, and is readable by the otrs user (owner of cron)
file bfd... content is:
##############################
2012-02-28 14:26:01
ChangeTime2
CreateTime
FieldOrderImpact
ObjectType7%)
13344132024%)
##############################
Questions:
1) what is this file ?
2) how cai I link it to the dynamicfiled in otrs ?
3) since it's a cache, is it safe to delete it and the other files in the directory ?
Kind regards,
Massimo
Massimo Bianchi
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
Re: GenericAgent: can't open .../DynamicField/....
I too am seeing the same problem.
I have just upgraded from 3.0.11 --> 3.1.4
I now get a nightly error from a cron job, eg:
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Wed May 9 18:40:01 2012
Message: Can't open '/opt/otrs/otrs_one/var/tmp/CacheFileStorable/DynamicField/f3b7e10730fb6c9cab5ae0e7f7e034f3': No such file or directory
Traceback (14628):
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) Line: 297
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.56) Line: 965
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs/otrs_one/bin/otrs.GenericAgent.pl (v1.6) Line: 89
But if I check the file it exists and is accessible by the otrs user.
Is there a fix for this error?
I have just upgraded from 3.0.11 --> 3.1.4
I now get a nightly error from a cron job, eg:
ERROR: OTRS-otrs.GenericAgent.pl-10 Perl: 5.10.1 OS: linux Time: Wed May 9 18:40:01 2012
Message: Can't open '/opt/otrs/otrs_one/var/tmp/CacheFileStorable/DynamicField/f3b7e10730fb6c9cab5ae0e7f7e034f3': No such file or directory
Traceback (14628):
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) Line: 297
Module: Kernel::System::DynamicField::DynamicFieldListGet (v1.56) Line: 965
Module: Kernel::System::GenericAgent::new (v1.81) Line: 117
Module: /opt/otrs/otrs_one/bin/otrs.GenericAgent.pl (v1.6) Line: 89
But if I check the file it exists and is accessible by the otrs user.
Is there a fix for this error?
-
- Znuny expert
- Posts: 191
- Joined: 05 Jul 2011, 16:10
- Znuny Version: 3.2.2
- Real Name: Micshi
- Location: Beijing
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
Hope you report it to bugs.otrs.org.
micshi
micshi
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Re: GenericAgent: can't open .../DynamicField/....
I've raised this as bug 8470
http://bugs.otrs.org/show_bug.cgi?id=8470
http://bugs.otrs.org/show_bug.cgi?id=8470
-
- Znuny newbie
- Posts: 8
- Joined: 13 Apr 2012, 09:26
- Znuny Version: 3.1.3
- Real Name: Frans Stekelenburg
- Company: NetDialog
Re: GenericAgent: can't open .../DynamicField/....
Interestingly following this topic and bug report, having the same issue.
Re: GenericAgent: can't open .../DynamicField/....
Hi!tc7 wrote:I've raised this as bug 8470
http://bugs.otrs.org/show_bug.cgi?id=8470
I've the same problem. But this problem only shows up on a migrated system (3.0.11 to 3.1.5), not on a fresh installation(3.1.5).
Greetings,
-Subo
Greetings,
-subo
Production: OTRS 3.0.10 @ openSUSE 11.4
-subo
Production: OTRS 3.0.10 @ openSUSE 11.4
-
- Znuny newbie
- Posts: 5
- Joined: 27 Oct 2007, 15:33
- Znuny Version: 2.3.4
Re: GenericAgent: can't open .../DynamicField/....
I have the same problem.
Ubuntu LTS 10.04 - 64bit | Apache 2.2.14 | MySQL 5.1.41 | OTRS 3.1.1
-
- Znuny newbie
- Posts: 90
- Joined: 20 May 2008, 12:50
- Znuny Version: 3.1.X
- Real Name: Felix
- Company: SyroCon Consulting GmbH
- Location: Darmstadt
Re: GenericAgent: can't open .../DynamicField/....
We have this Problem too
production: OTRS 5.0.X | OTRS:ITSM 5.0.X | AWS-RDS MariaDB 10.1.X | CentOS 7
Gibt es im Raum Frankfurt/Darmstadt OTRS/ITSM-Benutzer, die an einem Erfahrungsaustausch interessiert sind? Dann meldet euch um mit Gleichgesinnten über OTRS in der Praxis und den ganzen Rest zu reden.
Gibt es im Raum Frankfurt/Darmstadt OTRS/ITSM-Benutzer, die an einem Erfahrungsaustausch interessiert sind? Dann meldet euch um mit Gleichgesinnten über OTRS in der Praxis und den ganzen Rest zu reden.
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
Relevant code:
There's not much to debug. It's not enough to say, "Yes it does exist", but check path and case sensitivity.
GenericAgent.pl runs otrs/var/cron/cache
The short answer is that the file requested is trying to be deleted but cannot. Check permissions and if that's not good enough, run the commands yourself from a command line:
If all else fails, delete the file from Cache manually. It's in a folder called "tmp", anyway, right?
DISCLAIMER: Don't just delete files because they're erroring, but in this case, it has a high likelihood of being okay to delete. Backup your filesystem before making changes to files.
Code: Select all
335 # return if file can not open
336 if ( !open $FH, $Mode, $Param{Location} ) {
337 $Self->{LogObject}->Log(
338 Priority => 'error',
339 Message => "Can't open '$Param{Location}': $!",
340 );
341 return;
342 }
GenericAgent.pl runs otrs/var/cron/cache
Code: Select all
13 20 0 * * 0 $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null
14 30 0 * * 0 $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
Code: Select all
bin/otrs.DeleteCache.pl --expired
bin/otrs.LoaderCache.pl -o delete
DISCLAIMER: Don't just delete files because they're erroring, but in this case, it has a high likelihood of being okay to delete. Backup your filesystem before making changes to files.
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
-
- Znuny newbie
- Posts: 19
- Joined: 11 Aug 2011, 11:13
- Znuny Version: 4.0.5 (Appliance)
- Real Name: Sven Schaefer
Re: GenericAgent: can't open .../DynamicField/....
Hi,
same issue here, a migrated OTRS as well.
Which sense do these cache files have? Of course I could just delete them, but what is the purpose of this particular files for dynamic fields?
It's really strange the OTRS does not react on this issue. It exists since version 3.1 and when I take a look at the bug report, it's still stated as "New".
Greets,
svs
same issue here, a migrated OTRS as well.
Everything is correct: the path, the case sensitivity and also the permissions. The file, which is mentioned in the email, exists.crythias wrote: There's not much to debug. It's not enough to say, "Yes it does exist", but check path and case sensitivity.
I have executed the commands manually and there were no error message. Everything is working properly. Also the configuration of the cron doesn't match the interval, in which the error mails are sent. The cron job is executed once a week. The error mail comes every day several times.crythias wrote: GenericAgent.pl runs otrs/var/cron/cacheThe short answer is that the file requested is trying to be deleted but cannot. Check permissions and if that's not good enough, run the commands yourself from a command line:Code: Select all
13 20 0 * * 0 $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null 14 30 0 * * 0 $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
Code: Select all
bin/otrs.DeleteCache.pl --expired bin/otrs.LoaderCache.pl -o delete
Which sense do these cache files have? Of course I could just delete them, but what is the purpose of this particular files for dynamic fields?
It's really strange the OTRS does not react on this issue. It exists since version 3.1 and when I take a look at the bug report, it's still stated as "New".
Greets,
svs
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
is there any possibility you have a dev or test box trying to mimic your live data?
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
-
- Znuny newbie
- Posts: 19
- Joined: 11 Aug 2011, 11:13
- Znuny Version: 4.0.5 (Appliance)
- Real Name: Sven Schaefer
Re: GenericAgent: can't open .../DynamicField/....
Not with cron running on the dev system...
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
Start with determining what *EXACT* cron job is sending you the message. You've already determined that the job is blind to the directory structure. Next step is to determine what cron job is doing this, on what machine, and what task it is calling.
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
-
- Znuny newbie
- Posts: 19
- Joined: 11 Aug 2011, 11:13
- Znuny Version: 4.0.5 (Appliance)
- Real Name: Sven Schaefer
Re: GenericAgent: can't open .../DynamicField/....
I'm not sure, but I think the message is telling me the taks/job, which causing the error:
Seems to be the following line in otrs.GenericAgent.pl
Code: Select all
ERROR: OTRS-otrs.GenericAgent.pl-69 (...)
Message: Can't open '(...)/DynamicField/(...)': File or Directory not found.
Traceback (25627):
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: (...)/bin/otrs.GenericAgent.pl (v1.6) Line: 89
Code: Select all
$CommonObject{GenericAgentObject} = Kernel::System::GenericAgent->new(
%CommonObject,
Debug => $Opts{d},
NoticeSTDOUT => 1,
);
-
- Znuny newbie
- Posts: 67
- Joined: 02 Apr 2012, 12:18
- Znuny Version: 3.1.14
- Real Name: Massimo Bianchi
- Company: NPO Sistemi S.p.A.
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
Maybe I find a solution.
Try: /opt/otrs/bin/otrs.DeleteCache.pl (if on linux).
After that I had no longer the problem.
Try: /opt/otrs/bin/otrs.DeleteCache.pl (if on linux).
After that I had no longer the problem.
Massimo Bianchi
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
skype: massimo.bianchi
OTRS:3.1.14, ITSM:3.1.8, httpd, mysql, Centos 6.3 on X86_64
-
- Znuny newbie
- Posts: 19
- Joined: 11 Aug 2011, 11:13
- Znuny Version: 4.0.5 (Appliance)
- Real Name: Sven Schaefer
Re: GenericAgent: can't open .../DynamicField/....
Nice idea, but I'm doing this during every upgrade of OTRS without any effect until now. After the last upgrade I thought that this issue is fixed, as there were an entry in the release notes, which let me hope that this issue is fixed. After the upgrade, there were no more error message...for two days. After two days the emails came back.
svs
svs
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
check for duplicate entries in cron
crontab -l -u otrs
make sure cron isn't running this job as both otrs user and root or another user that did the install.
check /var/spool/cron/crontabs as root and double-verify the job(s) aren't running as another user or twice:
cd /var/spool/cron/crontabs
grep otrs *
make sure cron jobs aren't duplicated in otrs/var/cron (remove or mkdir backup; mv *dist backup/)
restart cron
cd /opt/otrs
bin/Cron.sh stop otrs
bin/Cron.sh start otrs
crontab -l -u otrs
make sure cron isn't running this job as both otrs user and root or another user that did the install.
check /var/spool/cron/crontabs as root and double-verify the job(s) aren't running as another user or twice:
cd /var/spool/cron/crontabs
grep otrs *
make sure cron jobs aren't duplicated in otrs/var/cron (remove or mkdir backup; mv *dist backup/)
restart cron
cd /opt/otrs
bin/Cron.sh stop otrs
bin/Cron.sh start otrs
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
-
- Znuny newbie
- Posts: 3
- Joined: 04 Mar 2013, 19:45
- Znuny Version: 3.1.11
- Real Name: James Sewell
- Company: Westman Communications Group
Re: GenericAgent: can't open .../DynamicField/....
Just to bump crythias post from 10 Aug 2012, 06:14
We have been having these reports from our cron as well. There don't seem to be any actual problems caused by this but we would like to clean it up if possible.
We looked into whether there were duplicates of this job in cron, and there may be some. From crontab -l -u otrs:
*/5 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
They are running different arguments, but with the every 5 and every 10 they will potentially conflict every 10 minutes.
Should we re-think the timing of these so there are no conflicts?
-James
We have been having these reports from our cron as well. There don't seem to be any actual problems caused by this but we would like to clean it up if possible.
We looked into whether there were duplicates of this job in cron, and there may be some. From crontab -l -u otrs:
*/5 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
They are running different arguments, but with the every 5 and every 10 they will potentially conflict every 10 minutes.
Should we re-think the timing of these so there are no conflicts?
-James
OTRS 3.1.11 ITSM and FAQ, CentOS 6 Linux, MySQL
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: GenericAgent: can't open .../DynamicField/....
also grep otrs /etc/passwd and check $HOME directory path
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
-
- Znuny newbie
- Posts: 3
- Joined: 04 Mar 2013, 19:45
- Znuny Version: 3.1.11
- Real Name: James Sewell
- Company: Westman Communications Group
Re: GenericAgent: can't open .../DynamicField/....
/bin/false
Should this be a proper shell?
-James
Should this be a proper shell?
-James
OTRS 3.1.11 ITSM and FAQ, CentOS 6 Linux, MySQL
-
- Znuny newbie
- Posts: 3
- Joined: 04 Mar 2013, 19:45
- Znuny Version: 3.1.11
- Real Name: James Sewell
- Company: Westman Communications Group
Re: GenericAgent: can't open .../DynamicField/....
Home dir is /opt/otrs which in the install location on our system
OTRS 3.1.11 ITSM and FAQ, CentOS 6 Linux, MySQL
-
- Znuny newbie
- Posts: 1
- Joined: 20 Mar 2013, 05:21
- Znuny Version: 3.3.10
- Real Name: Rodney Yeo
- Company: Tayors Education Group
Re: GenericAgent: can't open .../DynamicField/....
Check log for error log entries... "You have more error log entries: Can't open '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/8651eb3fbf23669fa722046d84b46d5e': No such file or directory"
The "$HOME" is set at environment variable to "/root" on CentOS 6.3.
I manually change at Cron job for OTRS user to the below.
#su otrs
Make sure to replace all variable string for "$HOME" to "/opt/otrs" in cron
#crontab -e
# delete expired cache weekly (Sunday mornings)
20 0 * * 0 /opt/otrs/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0 /opt/otrs/bin/otrs.LoaderCache.pl -o delete >> /dev/null
Rodney
The "$HOME" is set at environment variable to "/root" on CentOS 6.3.
I manually change at Cron job for OTRS user to the below.
#su otrs
Make sure to replace all variable string for "$HOME" to "/opt/otrs" in cron
#crontab -e
# delete expired cache weekly (Sunday mornings)
20 0 * * 0 /opt/otrs/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0 /opt/otrs/bin/otrs.LoaderCache.pl -o delete >> /dev/null
Rodney
Re: GenericAgent: can't open .../DynamicField/....
the $HOME of the otrs user should noit be /root
The cronjobs for OTRS need to be run as otrs user, not as root
The cronjobs for OTRS need to be run as otrs user, not as root
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com