PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Failure of bulkupload with large number of images? (http://www.photopost.com/forum/photopost-pro-installation-upgrades/131271-failure-bulkupload-large-number-images.html)

daily10 April 6th, 2007 02:39 PM

Failure of bulkupload with large number of images?
 
I have created a function to move my images into photopost. I works recursively on subfolders. Everything seems to work fine but it randomly fails after 150 or so images.
My function just automates moveing the images to my upload directory then calls the functions in photopost to create the thumbnails and process the images.

I do not get an error the script just quits like it has finished. I doesn't fail on the same image every time.

I traced the point of failure to the call to the php function ImageCopyResized( ).

Has anyone else had this problem with uploading large number of images?

Anybody know how to handle this problem?

Chuck S April 6th, 2007 03:46 PM

This should help

http://www.photopost.com/forum/showp...74&postcount=2

daily10 April 6th, 2007 07:37 PM

/usr/local/bin/mogrify is path for version 6.
is there a way to enter this without running install.php again?

daily10 April 7th, 2007 12:16 AM

figured out where to place the path to mogrify. It goes further than gd but still breaks . I still have images in my upload directory. can't understand why it get so far then causes the script to fail. still don't get any errors.

i have these instructions at the start of my function

ignore_user_abort(); // run script in background
set_time_limit(0); // run script forever

anyone have any ideas ?

daily10 April 7th, 2007 12:31 PM

I created a simple clock script using a 1 second sleep() it doesn't time out.

I was wondering if there is some kind of timeout built into photoshop?

Chuck S April 7th, 2007 06:28 PM

We get all our settings from PHP and are limited by your servers PHP

I would think your issue is a PHP memory issue which stops the script not execution time

daily10 April 7th, 2007 06:58 PM

I created a simple counter program to see what happens with an endless loop on my server

<?php
ignore_user_abort();
set_time_limit(20000);
$curr = time();
$max=ini_get('max_execution_time');
print"$max<br>";


$b=0;
while(1)
{
$a=time()-$curr;
if($a>$b)
{
print"$a<br>";
$b=$a;

}

}


?>


this just prints the number of seconds the program runs.
under php 4.3.11 i get to 22
under php 5 i get to 23

it just seems to time out.
don't get any errors.

if i place a sleep(1) inside the if(){ } block it makes it to somewhere in the 800's.

tech support says its not being caused by their apache server.

do you know if anyone is having problems moving large numbers of images into photopost from coppermine using your import program?

daily10 April 7th, 2007 08:53 PM

i added the following line to my counter script
print system('ulimit -a');

one of the settings that is returned is
cpu time (seconds, -t) 20

i think this limits any single running process?

Chuck S April 8th, 2007 09:52 AM

Again this has to do with your host's server setup and they would need to fix this issue as it has nothing really to do with our script

If they are setting a script timeout you can not override then they must alter it for you. Using ini_set is the action I can point out there and you have done that

daily10 April 8th, 2007 11:44 AM

yeah i have given up working with my host on this.
i think i have a work around.
use my webbrowser have javascript call my function sending the subfolder names one at a time. my photopost function will have plenty of time to do each folder individually.

Chuck S April 8th, 2007 04:50 PM

You can specify each server path individually on the upload page as well


All times are GMT -5. The time now is 07:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97