coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: cmigliorini on August 23, 2007, 09:40:52 AM

Title: Batch Upload: too many threads or config issue???
Post by: cmigliorini on August 23, 2007, 09:40:52 AM
When batch uploading, I get the following behavior (see attached screen shot):
- only three (3) thumbnails show in the "search_new.php" screen; these are not necessarily the first three.
- if I continue to the "insert" phase, only three images are generally imported; again, not necessarily the first three.
- if I repeat the process, I will finally get all images inserted, three at a time.

To the best of my knowledge, this is not documented anywhere, but then there are so many docs... So forgive me if I missed the one.

My guess is that it has to do with the max number of simultaneous SQL connections allowed by my provider (OVH.COM), which happens to be 3!

I did not find a configuration option that would tell Coppermine how to handle that. is there one?
Title: Re: Batch Upload: too many threads or config issue???
Post by: Hein Traag on August 23, 2007, 09:57:39 AM
You could try to use CPGMassimport from the CPG Contrib site. http://cpg-contrib.org/index.php (http://cpg-contrib.org/index.php)
It just keeps on going untill all pictures have been added to your cpg.
Title: Re: Batch Upload: too many threads or config issue???
Post by: cmigliorini on August 23, 2007, 02:29:18 PM
Sounds good, I'll give it a shot.
Now, would there not be a (simple?) fix if each thread would, should the connection fail, retry after a random delay?  It does makes sense to my (limited, semi-educated) brain.
Title: Re: Batch Upload: too many threads or config issue???
Post by: cmigliorini on August 24, 2007, 10:43:01 AM
Guess what? CPG batch upload works fine with Safari and Camino on my Mac.
So it seems to be browser-dependent (I was using IE 6).

Does anybody now how I could make IE6 work?
Title: Re: Batch Upload: too many threads or config issue???
Post by: Nibbler on August 24, 2007, 03:06:22 PM
It's related to the number of connections the browser is set to open to the server. I doubt you can configure that in IE.
Title: Re: Batch Upload: too many threads or config issue???
Post by: cmigliorini on August 24, 2007, 03:31:26 PM
Nibbler, thank you. I'll use my Mac then :), and perhaps try CPGMassimport.

Out of curiosity, I still wonder whether Coppermine's connection scheme could be changed so that it works in any case (see above comment).

Other than that, I'm happy with what I got so far and would not mind seeing this topic Solved.
Title: Re: Batch Upload: too many threads or config issue???
Post by: Nibbler on August 24, 2007, 03:44:03 PM
Maybe in the future.