Hi there,
I am having a strange issue with the video module - I am working with Zencoder, and trying to serve the files from S3. Everything seems to work fine when the node is created, and the video transcoding/upload/callback/playback all works well. However, when I try to edit the node again, it errors out, and the following is written to the logs:
Warning: fopen(): Filename cannot be empty in RequestCore->set_write_file() (line 435 of /vol/var/www/domains/htdocs/sites/all/libraries/awssdk/lib/requestcore/requestcore.class.php).
Warning: fwrite(): supplied argument is not a valid stream resource in RequestCore->streaming_write_callback() (line 577 of /vol/var/www/domains/htdocs/sites/all/libraries/awssdk/lib/requestcore/requestcore.class.php).
Warning: fclose(): supplied argument is not a valid stream resource in RequestCore->__destruct() (line 242 of /vol/var/www/domains/htdocs/sites/all/libraries/awssdk/lib/requestcore/requestcore.class.php).
cURL_Exception: cURL resource: Resource id #205; cURL error: Failed writing body (0 != 6914) (cURL error code 23). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes. in RequestCore->send_request() (line 824 of /vol/var/www/domains/htdocs/sites/all/libraries/awssdk/lib/requestcore/requestcore.class.php).
Any help that you can provide would be much appreciated.
Comments
Comment #1
Jorrit commentedDo you get these errors when you open the node edit screen? Or after you submit the node edit screen?
Comment #2
Jorrit commentedWhat is the value for the "Upload destination" field for your field? (I mean the form at
admin/structure/types/manage/CONTENTTYPE/fields/FIELDTYPE)Comment #3
dwilkinson commentedThe issue appears when you try to edit the node - basically, I can't actually get to /node/edit/[nid]. The "Upload destination" field in the content type is set to "Amazon S3".
Thanks!
Comment #4
Jorrit commentedMy recommendation is to change Upload destination to Public for the moment. It only applies to the storage of the original file anyway, as the transcoded files are always stored on S3 if you are using Zencoder, if you set this up in the Zencoder properties. I will try to fix this bug, but not in the next release, but the one after that.
Comment #5
dwilkinson commentedThanks Jorrit - that appears to have solved the problem for now. I would be looking forward to this bugfix, of course, as storing the originals on the webserver isn't ideal for me. This will help me progress through the development phases, though.
Comment #6
Jorrit commentedGreat. I'm going to mark this as postponed for the moment.
Comment #7
jhrizz commentedI have experienced the same thing - going to try this fix ASAP!
I agree- storing the originals on S3 would be good.
The Sorage API employs some interesting logic- primary upload locations & propagation on cron runs. I was actually going to try to use it with the video module, but the field is not eligible- only file fields.
Cheers!
Comment #8
jhrizz commentedOkay-
So changed from S3 to Public for uploading- all works out as expected, but when I go to edit, screen goes white and I get:
Fatal error: Call to a member function query() on a non-object in /var/www/vhosts/theworkflowengine.com/httpdocs/sites/all/libraries/awssdk/services/s3.class.php on line 2616
Google is not being helpful, any thoughts?
- Josh
Comment #9
Jorrit commentedI see that you are using a later version of the AWS SDK than I use. I'll try to upgrade and see if it still works for me. Am I right that you are using AWS SDK version 1.5.3?
Comment #10
Jorrit commentedAlso, are there any other errors or warnings in the webserver error log or Drupal error log?
Comment #11
jhrizz commentedThis may have been the dreaded Cache- I also disabled and re-enabled the modules and it works!
Again, thanks for your wonderfull support.
Comment #12
Jorrit commentedAhh the cache. Can't live with it, can't live without it. If there are not other problems, please close this issue.
Comment #13
jhrizz commentedWill do. I will check to see if the ability to directly upload is already a feature request, and if not, will start one.
Comment #14
markus61 commentedfollowing - cause hit by same issue :-(
"drush cc all" does not do anything
everything we can do to help fixing this or motivating jorrit to fix it, we'll consider... ehm almost everything ;-) - cheers, /markus
Comment #15
Jorrit commentedMarkus: What is the value for the "Upload destination" field for your field? (I mean the form at admin/structure/types/manage/CONTENTTYPE/fields/FIELDTYPE)
Comment #16
markus61 commentedUpload destination
Amazon S3
that's what you mean?
can we provide you with a screenshot? /m
Comment #17
Jorrit commentedUnfortunately, that value is not supported at this moment. If you change it to Public files the error will disappear. I am working on getting this fixed in the next release but it is a lot of work.
Comment #18
heneryh commentedCan you at least gray out or disable the option? I got hung up on this too.
Comment #19
Jorrit commentedI don't need to, because I have implemented this in 7.x-2.x. Be careful when updating to this new version because it contains a lot of changes. Read the release notes and the change record before you update.
Comment #20
Anonymous (not verified) commentedI am running across this error while running the latest version.
I seem to get this once the video is encoded through zencoder. If I upload the video but don't encode it I can come back to edit the node and also see that the video uploaded to s3.
Is there something I'm missing from the last post?
Thanks.
Comment #21
Jorrit commentedCould you explain your situation a bit more? Are you running 7.x-2.5 or 7.x-2.x-dev? Could you give a list of steps that you take before you get the error? What are the settings of the video module and your field?
Comment #22
Anonymous (not verified) commentedI'm running 7.x-2.5. I think since I'm not on dev that may be my case but here is my setup.
Video field:
Upload destination = Amazon s3
Enable auto video conversion is checked.
Video Module:
Video convert on node submit is checked.
Automatically start video buffering is checked.
Transcoder is set to Zencoder with the Output file base on s3 acct.
Preset made for mp4 and ogv conversion.
I add new video content and click save. It actually doesn't encode on save so when I go back to edit the node I can do so but once I save again I get the messaged of it being queued to encode.
I didn't notice you were pointing to the 7.x-2.x-dev so I am going to move to this version and see if it fixes this problem and my other problem here
Comment #23
Jorrit commentedUpload destination = Amazon s3 is not supported in 2.5, it simply doesn't work. Read the release notes carefully before updating, because some settings have changed, but it should make that setting work.
Comment #24
Anonymous (not verified) commentedI've changed to the dev version and it's all working. Thanks for the help and sorry for my miss understanding.
Comment #25
Jorrit commentedNo problem, thanks for helping to test 7.x-2.x-dev. If you have other problems with this -dev release, please let me know.