Vinelab / cdn

CDN Assets Manager Package for Laravel.
MIT License
216 stars 71 forks source link

Exception while uploading "Too many files open" #79

Closed Yavor-Ivanov closed 9 years ago

Yavor-Ivanov commented 9 years ago

I've added my Laravel public folder to be uploaded to an S3 bucket, but get this exception some time into the upload when running ./artisan cdn:push:

  fopen(/var/www/labworm/public/packages/frozennode/administrator/img/ico/apple-touch-icon-144-precomposed.png): failed to open strea  
  m: Too many open files

It seems like the file handles are never released when uploading.

Mulkave commented 9 years ago

If I'm not mistaken, this usually has to do with the allowed files by php.ini. Can you please try updating that?

olimorris commented 9 years ago

Yes this is not an error I've come across with the AWS PHP SDK.

Mulkave commented 9 years ago

@Yavor-Ivanov any update on this issue? Seems like it's an AWS PHP SDK issue as @olimorris mentioned.

Yavor-Ivanov commented 9 years ago

I've tried using the Amazon SDK directly and get the same results when uploading a folder a lot of files in it. I've since switched to calling the s3cmd tool.

Mulkave commented 9 years ago

@Yavor-Ivanov alright, thanks for the feedback. Closing since it is not a CDN issue.