Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  (#16) Old
milksama Offline
New Member
 
Posts: 2
Join Date: May 2008
27-05-2008, 02:29 PM

We are also encountering this problem with our setup.

It is fortunate to see this has been addressed (or that the lock file is automatically removed after a given period), though we still have a concern:

This problem with the introduction of the lock file occurred near the beginning of a holiday weekend here. Although we are fetching email now, the "Posted on:" field (within the ticket view) has an incorrect time stamp -- using the date parsed rather than the date submitted. Is there a setting to have tickets instead use the date on which the email was submitted rather than have it as it is now, with 1000 emails apparently submitted simultaneously? If not, could such a feature be introduced? For a setup that better addresses our customers' needs, it would really be preferable to time stamp the date a given email was submitted, not parsed.

Also, around what time might 3.20.03 be available?

Thank you.


Mike
   
  (#17) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 821
Join Date: May 2005
Location: Boise, Idaho
29-05-2008, 12:55 AM

DO NOT FOLLOW THESE INSTRUCTIONS ANYMORE. THEY ARE NO LONGER CORRECT.


If you are experiencing problems with the parser lock file that are disrupting business, you can apply the following patch to your desk instead of waiting for 3.20.03 (which, by the way, will likely be called 3.30.00)

Take the following files from the latest CVS build and replace the ones on your server with them (make sure to take a backup in case it does not work):

/modules/parser/cron_parser.php
/locale/en-us/emailparser.php

These files also address bug #463 (parser.lock file should automatically expire)


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---

Last edited by John Haugeland; 11-07-2008 at 09:25 PM..
   
  (#18) Old
milksama Offline
New Member
 
Posts: 2
Join Date: May 2008
29-05-2008, 03:36 PM

Ryan: Great! Thank you. I will have these updated.
   
  (#19) Old
Geert-Jan Offline
New Member
 
Geert-Jan's Avatar
 
Posts: 6
Join Date: May 2008
Location: Netherlands
29-05-2008, 09:41 PM

Quote:
Originally Posted by Ryan Lederman View Post
If you are experiencing problems with the parser lock file that are disrupting business, you can apply the following patch to your desk instead of waiting for 3.20.03 (which, by the way, will likely be called 3.30.00)

Take the following files from the latest CVS build and replace the ones on your server with them (make sure to take a backup in case it does not work):

/modules/parser/cron_parser.php
/locale/en-us/emailparser.php

These files also address bug #463 (parser.lock file should automatically expire)
Just uploaded the two files, and check the next few days.

In our case:
- v 3.20.02 Zend
- IMAP
- PHP5.2.6
- 2nd esupport, not yet in production yet..
   
  (#20) Old
jbsolutios Offline
New Member
 
Posts: 13
Join Date: Jun 2004
Location: London, UK
10-06-2008, 12:39 PM

Hi Ryan

When I installed the 2 files you recommended on to our production system (3.20.02) from Version: 3.20.03 (CVS) - 10 Jun 2008 06:10 AM, I got the following error: -

Warning: require_once(./modules/parser/functions_parser_loopcontrol.php) [function.require-once]: failed to open stream: No such file or directory in C:\Inetpub\http://www.help.solutios.com\modules...ron_parser.php on line 129

Fatal error: require_once() [function.require]: Failed opening required './modules/parser/functions_parser_loopcontrol.php' (include_path='.;c:\php\includes') in C:\Inetpub\http://www.help.solutios.com\modules...ron_parser.php on line 129

I then installed the following from CVS: -

/modules/functions_parser_loopcontrol.php

When I did this, emails were imported, but I got the following error: -

Total messages in inbox: 1
Fetching message #1
Account is IMAP
Fetching message UID: 2042
Invalid SQL: select length from swemailloopthreshholds order by length desc limit 1 (Table 'kayako_suite.swemailloopthreshholds' doesn't exist)Invalid SQL: delete from swemailloopcontacttimes where contacttime < 1213098370 (Table 'kayako_suite.swemailloopcontacttimes' doesn't exist)Invalid SQL: delete from swemailloopcutsinplace where restoretime < 1213098370 (Table 'kayako_suite.swemailloopcutsinplace' doesn't exist)Invalid SQL: select count(*) from swemailloopcutsinplace where address like ' jbredcar@mac.com: John Benson ' (Table 'kayako_suite.swemailloopcutsinplace' doesn't exist)Invalid SQL: insert into swemailloopcontacttimes(address, contacttime) values(' jbredcar@mac.com: John Benson ', 1213098370); (Table 'kayako_suite.swemailloopcontacttimes' doesn't exist)Invalid SQL: select contacttime from swemailloopcontacttimes where address like ' jbredcar@mac.com: John Benson ' (Table 'kayako_suite.swemailloopcontacttimes' doesn't exist)Invalid SQL: select length, maxhits, restoreafter from swemailloopthreshholds (Table 'kayako_suite.swemailloopthreshholds' doesn't exist)Total messages in inbox: 0
0 Total messages
Rejected messages: 0
Accepted messages: 0

Many thanks

JB

Last edited by jbsolutios; 10-06-2008 at 12:46 PM.. Reason: Additional info
   
  (#21) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
Post Temporary Fix - 10-06-2008, 07:53 PM

DO NOT FOLLOW THESE INSTRUCTIONS ANYMORE. THEY ARE NO LONGER CORRECT.



Quote:
Originally Posted by jbsolutios View Post
When I installed the 2 files you recommended on to our production system (3.20.02) from Version: 3.20.03 (CVS) - 10 Jun 2008 06:10 AM, I got the following error: -
Sorry. This is one of the risks of hybridizing systems, and one of the reasons we try not to do it when possible. You've managed to acquire about one quarter of the code involved in the new loop cutter system, a defense against a more generic class of those 10-million-in-a-row loops that happen once every blue moon.

That new system is dependant on the 3.30 upgrade script putting several new tables into the database and populating one of them with defaults. It is, unfortunately, not an option to upgrade you to 3.30 now, as we still have a few different tables to add for a different thing, and it would just be a mess.

What I'm going to advise you to do is to comment out two lines in that file, which should effectively disable the loop cutting system. When next stable comes out, please upgrade to get a unified tested release.





On line 129, you should see this line:

Code:
require_once ("./modules/parser/functions_parser_loopcontrol.php");
Please comment it out by placing two forward slashes and a space before that line, as follows:

Code:
// require_once ("./modules/parser/functions_parser_loopcontrol.php");


Also, on line 234, you should see the following line:

Code:
$isLoopBlocked = StartLoopBlockCheck($fixedheader);
Comment it out, and then write $isLoopBlocked = false; on the next line (must not be on the same line!), as follows:

Code:
//              $isLoopBlocked = StartLoopBlockCheck($fixedheader);     
                $isLoopBlocked = false;


Those two modifications should moot the loop cutter until you can upgrade to a unified release.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---

Last edited by John Haugeland; 11-07-2008 at 09:26 PM..
   
  (#22) Old
jbsolutios Offline
New Member
 
Posts: 13
Join Date: Jun 2004
Location: London, UK
10-06-2008, 08:12 PM

Dear John

Many thanks for your prompt reply! We have never used any CVS files before for this very reason, but are finding that we have stale lock files at least once per day.

For the help of others, the modifications above need to be carried out in: -

/modules/parser/cron_parser.php

Regards

John
   
  (#23) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
Talking Indeed - 10-06-2008, 11:29 PM

Quote:
Originally Posted by jbsolutios View Post
We have never used any CVS files before for this very reason
A wise long-term policy. Kayako is making effort to move to shorter release cycles, to reduce the reason to want to do things like this.

As far as the fast reply, it's Ryan you should thank, not me; he pointed this thread out to me.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
  (#24) Old
Geert-Jan Offline
New Member
 
Geert-Jan's Avatar
 
Posts: 6
Join Date: May 2008
Location: Netherlands
19-06-2008, 09:22 PM

Quote:
Originally Posted by John Haugeland View Post
Sorry. This is one of the risks of hybridizing systems, and one of the reasons we try not to do it when possible. You've managed to acquire about one quarter of the code involved in the new loop cutter system, a defense against a more generic class of those 10-million-in-a-row loops that happen once every blue moon.

That new system is dependant on the 3.30 upgrade script putting several new tables into the database and populating one of them with defaults. It is, unfortunately, not an option to upgrade you to 3.30 now, as we still have a few different tables to add for a different thing, and it would just be a mess.

What I'm going to advise you to do is to comment out two lines in that file, which should effectively disable the loop cutting system. When next stable comes out, please upgrade to get a unified tested release.





On line 129, you should see this line:

Code:
require_once ("./modules/parser/functions_parser_loopcontrol.php");
Please comment it out by placing two forward slashes and a space before that line, as follows:

Code:
// require_once ("./modules/parser/functions_parser_loopcontrol.php");


Also, on line 234, you should see the following line:

Code:
$isLoopBlocked = StartLoopBlockCheck($fixedheader);
Comment it out, and then write $isLoopBlocked = false; on the next line (must not be on the same line!), as follows:

Code:
//              $isLoopBlocked = StartLoopBlockCheck($fixedheader);     
                $isLoopBlocked = false;


Those two modifications should moot the loop cutter until you can upgrade to a unified release.

John,

You want this on the 20.02 stable file or on the 20.03 cvs file?? We still got the problem whit the 20.03 cvs files...

Thanks.
   
  (#25) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
Exclamation Neither. - 21-06-2008, 12:06 AM

Quote:
Originally Posted by Geert-Jan View Post
You want this on the 20.02 stable file or on the 20.03 cvs file?? We still got the problem whit the 20.03 cvs files...
The fix didn't exist until the repository was renamed to 3.30.00. What you have is out of date and does not have the required code.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
  (#26) Old
Geert-Jan Offline
New Member
 
Geert-Jan's Avatar
 
Posts: 6
Join Date: May 2008
Location: Netherlands
22-06-2008, 12:47 PM

Yep, i've seen. But what wil the solution to fix this issue then..???
   
  (#27) Old
GoneShootin Offline
Member
 
GoneShootin's Avatar
 
Posts: 215
Join Date: Jan 2008
23-06-2008, 02:18 PM

Yeah but WHEN will it be released?


I'm kidding I'm kidding!
   
  (#28) Old
FrightFactor Offline
Member
 
Posts: 41
Join Date: Jun 2008
Location: NRW, Germany
23-06-2008, 10:47 PM

I just ran into the same problem.

I appreciate that you're taking your time to make sure that everything is stable and works fine before you release any new Versions. And i encourage you to do so, great job btw.

but when it comes down to a point, where a lot of users complaining about a lockfile, which takes down the entire email communication of your company (if someone just uses the helpdesk), than you should at least stop working on your next Release and put a working fix together which eliminates the problem in 3.20.02 and not just putting it on the bug tracker and fix it with the next release. Or handing out files from a newer version which results into error messages.

just my opinion.
   
  (#29) Old
GoneShootin Offline
Member
 
GoneShootin's Avatar
 
Posts: 215
Join Date: Jan 2008
24-06-2008, 09:35 AM

On that.

What I ended up doing was educating the users. If they found that they didn't have any emails come in the morning, I'd get them to run the cron php file, and check for any link that say's "Delete lock file".

All with the promise that a new version of Kayako was on the way to resolve the issue.

I think educating the users is certainly the first step, especially if you can identify IT savvy ones within the group.
   
  (#30) Old
Geert-Jan Offline
New Member
 
Geert-Jan's Avatar
 
Posts: 6
Join Date: May 2008
Location: Netherlands
24-06-2008, 03:03 PM

So, for the time being, can I make a cron whit

http://bla.bla.bla/cron/index.php?_t=parser&deletelockfile=1

@ every hour or is there a other temparary solution, downgrade to version 3.xx.xx?


Thanks.

Last edited by Geert-Jan; 24-06-2008 at 03:10 PM..
   
Closed Thread

Tags
blocking, fetching, parserlockfile, pop3 or imap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48