Service Temporarily Unavailable
Hi,
I have znephoto version 1.4.5.9 on a shared hosting server.
I have 321 photos and videos.
when I do a Refresh metadata in Overview admin page, I obtain a crash, at the ID=318 in the url.
I don't know if the behavior is normal. the page reload itself and increment the ID number, with a step of 5.
here is the crash report :
"The server closed the connection without sending any data.
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Due to heavy load on the server, connections may be temporarily blocked from locations that fetch an unusually high number of pages.
We apologize for the inconvenience."
the crash report, sometime :
"Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 245620674 bytes) in /home/u686322407/public_html/zen/zp-core/zp-extensions/class-video/getid3/getid3.php on line 1663"
how can I turn around that ? may be I would like to decrease the refresh time between 2 refresh, in the page. but how can I do it ?
thanks
Olivier
Comments
There is no memory limit to the video, only the space on the server. However if reading meta data the server has to process the actual file. How big is this videos (dimensions and file size)?
I ran into this as well, a while ago. From what I could figure out, my video file was too large. I was able to increase the PHP memory limit to a value larger than the video file, at which time the error went away.
I haven't looked deeply into it, but my guess is that when ZenPhoto processes the video, it tries to load the entire file into memory. I'm not sure why, but this may be something that needs to be looked into.
Regards,
...jim
the file size is 245 MB.
I have video which are 1 or 3 GB (familly video)
php limit is 256 MB, I tried to increase to 512 MB, by adding a line in the .htaccess file in root of my web site.
then, php info report I can have 512 MB, but I am not sure it works.
anyway, my website goes further with that option.
now, when I try to see my album containing the video, I have this error after 5 seconds :
Service Temporarily Unavailable
The server closed the connection without sending any data.
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Due to heavy load on the server, connections may be temporarily blocked from locations that fetch an unusually high number of pages.
We apologize for the inconvenience.
I tried to remove all metadata, like advised in my other post (which is slightly different, it is why I have 2 posts)
thanks for any idea
Olivier
Again, if you try to load a 245MB video to get the meta data with 256 PHP memory that is most likely not possible for the same reasons images of that size won't work. In short your server cannot do what you wish to do.
IF you don't have your own server and on shared hosting you most likely are not allowed to change the memory limit, no matter what it displays.
yes I have a shared hosting. I think the limit comes from this.
but what I don't understand is : if I disable all metadata, why the video should be loaded ?
thanks
Olivier
If it does this although the video/audio meta data fields are disabled it might be a bug.
In that case please open a ticket.
thanks
Olivier