New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error uploading big video file to Kaltura with chunked upload #3549
Comments
Hi @moskiteau, Thank for you reporting an issue and helping improve Kaltura! To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):
and paste the output.
For general troubleshooting see: If you only have a general question rather than a bug report, please close this issue and post at: Thank you in advance, |
Hello, Can you please attach the full code so we can try to reproduce? Also, what ver of the clientlibs are you using? You should generate the clientlibs on the server you are working against. php /opt/kaltura/app/generator/generate.php javaIn addition, Kaltura SaaS refers to the version on www.kaltura.com, the version you work against is either an OnPrem or CE install of Hercules, I gather, correct? |
It's also possible that chunk upload was not yet introduced in Hercules as it's a rather old version. Please check the clientlibs generated on the server you work against to make sure. Sent from Outlook Mobilehttps://aka.ms/blhgte On Wed, Nov 25, 2015 at 11:45 AM -0800, "Jess Portnoy" <notifications@github.commailto:notifications@github.com> wrote: Hello, Can you please attach the full code so we can try to reproduce? Also, what ver of the clientlibs are you using? You should generate the clientlibs on the server you are working against. php /opt/kaltura/app/generator/generate.php javaIn addition, Kaltura SaaS refers to the version on www.kaltura.comhttp://www.kaltura.com, the version you work against is either an OnPrem or CE install of Hercules, I gather, correct? Reply to this email directly or view it on GitHubhttps://github.com//issues/3549#issuecomment-159712045. |
@jessp01 @KalturaCommunity I will attach the code in a bit. |
If you are using one upload request (instead of uploading chunk by chunk) you will be limited to 2GB by the php code on the server. Eran From: Sébastien Testeau notifications@github.com @jessp01https://github.com/jessp01 @KalturaCommunityhttps://github.com/KalturaCommunity I will attach the code in a bit. Reply to this email directly or view it on GitHubhttps://github.com//issues/3549#issuecomment-159716912. |
I know that, it's the reason why I am using the chunk by chunk upload |
I did not mean the upload API is not present is Hercules, it has been present forever. I meant that the chunk option may not yet been introduced. Sent from Outlook Mobilehttps://aka.ms/blhgte On Wed, Nov 25, 2015 at 12:02 PM -0800, "Sébastien Testeau" <notifications@github.commailto:notifications@github.com> wrote: @jessp01https://github.com/jessp01 @KalturaCommunityhttps://github.com/KalturaCommunity I will attach the code in a bit. Reply to this email directly or view it on GitHubhttps://github.com//issues/3549#issuecomment-159716912. |
@KalturaCommunity |
ok, here is the code You just need to change the video file to a bigger one |
Could you also share the logs, or the exact exception stack and message? |
@tan-tan-kanarek But, when I try to download the contribution file I get this error:
|
@moskiteau, can you please open a free trial account on our SaaS and see if this happens to you when uploading there? It will be easier for us to debug. If it does happen, can you provide the entry ID? |
@jessp01 entryId: 1_n5a1qqvy |
Thanks, @moskiteau. |
I see nothing wrong with this entry: http://www.kaltura.com/tiny/lvz6a |
It is indeed working on the SaaS |
Is the server you are working against OnPrem or CE? if it is OnPrem, please have the customer open a ticket for support. If it is CE, then we will need the logs to try and help further. |
It is onPrem, thank you for you help guys |
Most welcome. Please open a support ticket and they can further assist you. |
@moskiteau - I was able to reproduce the issue on SOME machines/JRE versions. Changing: and the addChunk() method signature to: Solved the issue and I was able to upload a 3G file. In order to test it from CLI, I created this little class here:
} Can you change the code in stesteau/KalturaGeneratedAPIClientsJava@22f4545 accordingly and run a simple test from CLI with: And let me know as to the results? of course, change -cp to where ever you've got the Kaltura classes and required deps.. |
Indeed, that will work better. Ok, so It does work now. But... That brings another problem which is why it worked on the SAAS and the 2.4G file was uploaded successfully!? My guess is the overflow doesn't break the upload and although it is an error in the code it is still luckily working. But that's in you hand now :) Cheers |
The reason it works with the latest code base stems from changes made to: alpha/apps/kaltura/lib/kUploadTokenMgr.php
If you take the latest file from https://github.com/kaltura/server/blob/Kajam-11.4.0/alpha/apps/kaltura/lib/kUploadTokenMgr.php and override the original, it will work even if readSum is declared as an int. However, since: Long.MAX_VALUE = 9223372036854775807 Declaring readSum as long is better anyhow. No good reason to overflow, even if it does work in newer Kaltura server versions. |
- fix typo
Hello,
We use Kaltura SAAS Hercule hosted on rackforcecloudvideo.com
I posted on the KalturaGeneratedAPIClientsJava, but I guess this is the right place.
I am trying to upload a big file using chunked upload. I litterally copied and pasted the code from the android project
https://raw.githubusercontent.com/kaltura/AndroidReferenceApp/master/DemoApplication/src/com/kaltura/services/UploadToken.java
I just removed unused code such as
The upload and converting works well with small/medium size files, anything under 2G actually.
But with a 3.1G file, the upload is still working, I can see the file in the admin «converting». But after a while It falls in error and the contibution file (the uploaded file) hasn't been rebuilt into an mp4; it's a .dat
Thank you
The text was updated successfully, but these errors were encountered: