[kronolith] Reminders not sending and script not exiting
Michael Menge
michael.menge at zdv.uni-tuebingen.de
Tue Jan 22 08:01:28 UTC 2008
Bringing this back to the list.
Quoting Gareth McCumskey <gmccumskey at gmail.com>:
> I thought I might just add as additional information. The problem happens
> within kronolith/lib/Scheduler/kronolith.php and specifically once the code
> reaches the block within the run() method that looks as follows:
>
> if ($this->_runtime - $this->_listtime > 3600) {
> global $shares;
>
> $this->_listtime = $this->_runtime;
> $this->_calendars = $shares->listAllShares();
> }
>
> is where it hangs. It does not seem able to get the list of calendars. We
> do admittedly have a very large number of users on the system (upwards of
> 100 000) so perhaps it is simply that Horde is unable to get the details of
> all the calendars in a reasonable time frame? If so, could someone point me
> in the right direction to take a look at the code that gets the calendars so
> I can perhaps find a way to optimise it?
>
This is the same problem here, see
http://lists.horde.org/archives/kronolith/Week-of-Mon-20070319/006476.html
for the details
> In the meantime I am going to be working on a horribly hackish solution, i.e.
> adding a feature into add_event to insert another record in a seperate table
> and writing a seperate script to process those entries every few minutes to
> send the SMS reminders we are trying to achieve. At least then if I can't
> find a way to make the built-in horde functionality work for us I have
> something that will at the least get the job done.
>
I thought of that too, i think kronolith_events contains all
information needed.
i added a bugreport see http://bugs.horde.org/ticket/?id=5240
> All the help so far is appreciated. I honestly hope some solution can be
> found as I would far prefer to use existing Horde functionality which we
> should get operational anyway than trying to implement a solution that
> duplicates it.
>
I think the reminderfunctionality has been totaly rewritten in Horde
3.2 but i had no time to check if this will work with many users. I
will test this when the final of Horde 3.2 is released so i don't have
to do it twice.
> Regards
>
> Gareth McCumskey
>
> On 1/21/08, Michael Menge <michael.menge at zdv.uni-tuebingen.de> wrote:
>>
>> Hi,
>>
>> i think i have reported the same problem some time ago. If you have
>> many share/kalenders,
>>
>> $this->_calendars = $shares->listAllShares(); in
>> horde-3.1.4/kronolith-h3-2.1.5/lib/Scheduler/kronolith.php takes very
>> long and returns nothing. I hope this will be solved in Horde 3.2
>>
>>
>>
>> Quoting Gareth McCumskey <gmccumskey at gmail.com>:
>>
>> > Well, I have now tried to see where the reminders hang. I was able to
>> find
>> > it got to Horde_Scheduler_kronolith::run() but from there it stops. It
>> > doesnt even get into the for loop. Any ideas?
>> >
>> > Gareth McCumskey
>> >
>> > On 1/17/08, kronolith-request at lists.horde.org <
>> > kronolith-request at lists.horde.org> wrote:
>> >>
>> >>
>> >> Message: 4
>> >> Date: Thu, 17 Jan 2008 10:14:50 +0100
>> >> From: Jan Schneider <jan at horde.org>
>> >> Subject: Re: [kronolith] Reminders not sending and script not exiting
>> >> To: kronolith at lists.horde.org
>> >> Message-ID: <20080117101450.3458604swi6qn24g at neo.wg.de>
>> >> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
>> >> format="flowed"
>> >>
>> >> Zitat von Gareth McCumskey <gmccumskey at gmail.com>:
>> >>
>> >> > Greetings all....
>> >> >
>> >> > I needed some help with a Kronolith setup we currently run. We are
>> >> trying to
>> >> > setup the reminders but are having trouble as all instructions say
>> >> create a
>> >> > cron and yet when we do the reminders.php file (v 1.17.10.7) runs but
>> >> never
>> >> > exits.
>> >> >
>> >> > I had thought this may be a daemon because of code found at the
>> bottom
>> >> of
>> >> > that file:
>> >> >
>> >> > $reminder =
>> &Horde_Scheduler::unserialize('Horde_Scheduler_kronolith');
>> >> >
>> >> > // Start the daemon going.
>> >> > $reminder->run();
>> >>
>> >> No, it's not really a daemon. Try to trace the code in reminders.php
>> >> and lib/Scheduler/kronolith.php to see where it hangs.
>> >>
>> >> Jan.
>> >>
>> >> --
>> >> Do you need professional PHP or Horde consulting?
>> >> http://horde.org/consulting/
>> >>
>> >>
>> >>
>> > --
>> > Kronolith mailing list - Join the hunt:
>> http://horde.org/bounties/#kronolith
>> > Frequently Asked Questions: http://horde.org/faq/
>> > To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>> >
>>
>>
>>
>>
>> --------------------------------------------------------------------------------
>> M.Menge Tel.: (49) 7071/29-70316
>> Universitaet Tuebingen Fax.: (49) 7071/29-5912
>> Zentrum fuer Datenverarbeitung mail:
>> michael.menge at zdv.uni-tuebingen.de
>> Waechterstrasse 76
>> 72074 Tuebingen
>>
>> --
>> Kronolith mailing list - Join the hunt:
>> http://horde.org/bounties/#kronolith
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>>
>>
>>
>
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
Bringing this back to the list.
Quoting Gareth McCumskey <gmccumskey at gmail.com>:
> I thought I might just add as additional information. The problem happens
> within kronolith/lib/Scheduler/kronolith.php and specifically once the code
> reaches the block within the run() method that looks as follows:
>
> if ($this->_runtime - $this->_listtime > 3600) {
> global $shares;
>
> $this->_listtime = $this->_runtime;
> $this->_calendars = $shares->listAllShares();
> }
>
> is where it hangs. It does not seem able to get the list of calendars. We
> do admittedly have a very large number of users on the system (upwards of
> 100 000) so perhaps it is simply that Horde is unable to get the details of
> all the calendars in a reasonable time frame? If so, could someone point me
> in the right direction to take a look at the code that gets the calendars so
> I can perhaps find a way to optimise it?
>
This is the same problem here, see
http://lists.horde.org/archives/kronolith/Week-of-Mon-20070319/006476.html
for the details
> In the meantime I am going to be working on a horribly hackish solution, i.e.
> adding a feature into add_event to insert another record in a seperate table
> and writing a seperate script to process those entries every few minutes to
> send the SMS reminders we are trying to achieve. At least then if I can't
> find a way to make the built-in horde functionality work for us I have
> something that will at the least get the job done.
>
I thought of that too, i think kronolith_events contains all
information needed.
i added a bugreport see http://bugs.horde.org/ticket/?id=5240
> All the help so far is appreciated. I honestly hope some solution can be
> found as I would far prefer to use existing Horde functionality which we
> should get operational anyway than trying to implement a solution that
> duplicates it.
>
I think the reminderfunctionality has been totaly rewritten in Horde
3.2 but i had no time to check if this will work with many users. I
will test this when the final of Horde 3.2 is released so i don't have
to do it twice.
> Regards
>
> Gareth McCumskey
>
> On 1/21/08, Michael Menge <michael.menge at zdv.uni-tuebingen.de> wrote:
>>
>> Hi,
>>
>> i think i have reported the same problem some time ago. If you have
>> many share/kalenders,
>>
>> $this->_calendars = $shares->listAllShares(); in
>> horde-3.1.4/kronolith-h3-2.1.5/lib/Scheduler/kronolith.php takes very
>> long and returns nothing. I hope this will be solved in Horde 3.2
>>
>>
>>
>> Quoting Gareth McCumskey <gmccumskey at gmail.com>:
>>
>> > Well, I have now tried to see where the reminders hang. I was able to
>> find
>> > it got to Horde_Scheduler_kronolith::run() but from there it stops. It
>> > doesnt even get into the for loop. Any ideas?
>> >
>> > Gareth McCumskey
>> >
>> > On 1/17/08, kronolith-request at lists.horde.org <
>> > kronolith-request at lists.horde.org> wrote:
>> >>
>> >>
>> >> Message: 4
>> >> Date: Thu, 17 Jan 2008 10:14:50 +0100
>> >> From: Jan Schneider <jan at horde.org>
>> >> Subject: Re: [kronolith] Reminders not sending and script not exiting
>> >> To: kronolith at lists.horde.org
>> >> Message-ID: <20080117101450.3458604swi6qn24g at neo.wg.de>
>> >> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
>> >> format="flowed"
>> >>
>> >> Zitat von Gareth McCumskey <gmccumskey at gmail.com>:
>> >>
>> >> > Greetings all....
>> >> >
>> >> > I needed some help with a Kronolith setup we currently run. We are
>> >> trying to
>> >> > setup the reminders but are having trouble as all instructions say
>> >> create a
>> >> > cron and yet when we do the reminders.php file (v 1.17.10.7) runs but
>> >> never
>> >> > exits.
>> >> >
>> >> > I had thought this may be a daemon because of code found at the
>> bottom
>> >> of
>> >> > that file:
>> >> >
>> >> > $reminder =
>> &Horde_Scheduler::unserialize('Horde_Scheduler_kronolith');
>> >> >
>> >> > // Start the daemon going.
>> >> > $reminder->run();
>> >>
>> >> No, it's not really a daemon. Try to trace the code in reminders.php
>> >> and lib/Scheduler/kronolith.php to see where it hangs.
>> >>
>> >> Jan.
>> >>
>> >> --
>> >> Do you need professional PHP or Horde consulting?
>> >> http://horde.org/consulting/
>> >>
>> >>
>> >>
>> > --
>> > Kronolith mailing list - Join the hunt:
>> http://horde.org/bounties/#kronolith
>> > Frequently Asked Questions: http://horde.org/faq/
>> > To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>> >
>>
>>
>>
>>
>> --------------------------------------------------------------------------------
>> M.Menge Tel.: (49) 7071/29-70316
>> Universitaet Tuebingen Fax.: (49) 7071/29-5912
>> Zentrum fuer Datenverarbeitung mail:
>> michael.menge at zdv.uni-tuebingen.de
>> Waechterstrasse 76
>> 72074 Tuebingen
>>
>> --
>> Kronolith mailing list - Join the hunt:
>> http://horde.org/bounties/#kronolith
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>>
>>
>>
>
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5339 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.horde.org/archives/kronolith/attachments/20080122/3787460e/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5339 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.horde.org/archives/kronolith/attachments/20080122/3787460e/attachment-0003.bin
More information about the kronolith
mailing list