[horde] Kronolith ical hangs Imp / Kronolith

Jan Schneider jan at horde.org
Tue Feb 12 10:57:50 UTC 2013


Zitat von Simon Wilson <simon at simonandkate.net>:

> Latest H5.0.3, Kronolith 4.0.3
>
> Issue starts with an appointment sent to me by my wife from the old  
> H4 system. When I try and open the appointment email in Imp, Imp  
> hangs. Eventually it presents a red box with server communication  
> error. Httpd logs indicate php running out of memory:
>
> [Mon Feb 11 20:03:13 2013] [error] [client 192.168.1.155] PHP Fatal  
> error:  Allowed memory size of 134217728 bytes exhausted (tried to  
> allocate 512 bytes) in /var/www/horde/kronolith/lib/Kronolith.php on  
> line 498, referer:  
> https://server.simonandkate.net/imp/dynamic.php?page=mailbox
>
> Boosted php to 512MB from 128MB, and try again. Same, just takes  
> longer to give up:
>
> [Mon Feb 11 20:27:07 2013] [error] [client 192.168.1.155] PHP Fatal  
> error:  Allowed memory size of 536870912 bytes exhausted (tried to  
> allocate 77 bytes) in /var/www/horde/kronolith/lib/Kronolith.php on  
> line 498, referer:  
> https://server.simonandkate.net/imp/dynamic.php?page=mailbox
>
> Whilst eventually timing out, CPU hits 100% and stays there, httpd process.
>
> I then tried loading Kronolith on H5 - same thing happens, it hangs  
> on "Loading Calendars" in the sidebar.

With the same error in the logs?

> Horde error log, when set to INFO, gives up some useful information:
>
> 2013-02-11T20:27:43+10:00 WARN: HORDE [kronolith] The remote server  
> at  
> https://mail.simonandkate.net/rpc.php/kronolith/katie/OPAyfdJO7vlN37eRNqEXFcA.ics doesn't support an WebDAV protocol version 3. [pid 15869 on line 626 of  
> "/var/www/horde/kronolith/lib/Driver/Ical.php"]

This is unrelated and just a warning.

> mail.simonandkate.net is the old one, and I have Katie's calendar  
> published from H4 as an ical. That has been working fine. I can open  
> the .ics file that link presents with Outlook and it works fine. But  
> now for some reason trying to open an appointment from her in Imp,  
> or trying to open Kronolith at all, kills Horde when trying to  
> retrieve and access the ical.
>
> Fixed it by removing share permissions in Katie's calendar (h4),  
> then trying to open Kronolith again (h5), and it immediately gives  
> me an error, and successfully loads Kronolith.
>
>
> So my thoughts -
>
> 1. This is really ugly. If it can't open a remote calendar, it  
> should fail gracefully, and go around the roadblock.

This is a fatal PHP error. Like the name implies, there is no way to  
handle those gracefully.

> 2. You should be able to remove a remote calendar somehow if it does  
> fail to access it.

Again, if PHP fatals, there isn't anything we could do.

> Is this a known issue, or have I stuffed something up?

No idea. Sounds like a infinite loop. You could try installing xdebug  
to stop php execution earlier if nesting goes too deep, plus you would  
get a backtrace in your error message.
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list