Now that wp-supercache has some built in support for CDNs, I've tried using the CDN Sync Tool to do an initial upload of files to Cloudfront.
But, I'm getting 2 sets of errors when syncing (I'm having to use force upload, as for some reason CDN Sync Tool thinks all my files have been uploaded already).
cURL error: Failed to open/read local data from file/application (26) This error isn't actually preventing the files from being uploaded though
[function.fopen]: failed to open stream: Too many open files in /var/www/xxxxx/wp-content/plugins/cdn-sync-tool/lib/awssdk/lib/requestcore/requestcore.class.php This error does stop files from being uploaded -> S3.
So, the 2nd error occurs after a certain (changeable) number of files have been uploaded, and then affects all remaining uploads.
Any ideas why or what can be done?
[Update]
After updating to version 0.9, am now getting the following errors repeatedly (after about 2000 files have been synced)
Warning: fclose(): supplied argument is not a valid stream resource in [filepath]/lib/awssdk/lib/requestcore/requestcore.class.php on line 276
The stream size for the streaming upload cannot be determined. done
Syncing [2411/4732] img2343435.jpg
Warning: fopen(/var/www/xx/wp-content/uploads/2010/12/mg2343435.jpg) [function.fopen]: failed to open stream: No such file or directory in [filepath]/lib/awssdk/lib/requestcore/requestcore.class.php on line 527