-
Notifications
You must be signed in to change notification settings - Fork 984
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
install the AWS S3 plugin , not working #3386
Comments
Please check your log file.
|
First, if you are using Amazon S3, remove the endpoint and leave it blank Here is how to find the log |
(123): GuzzleHttp\Handler\CurlMultiHandler->tick() |
also I removed endpoint and left it blank |
[17-Jul-2020 00:38:40 UTC] S3 Uploading /var/www/YouPHPTube/videos/getfvid102379 2116097579629938994871636753649238016n_5edcff63279bd0.10362366.mp4 |
I try to download the new version and uploaded but it;'s not giving me that upload test option. Thanks |
here is the log file [20-Jul-2020 05:47:30 UTC] AVideoLog::DEBUG: avideo.log deleted by update |
delete the AWS_S3 plugin folder then upload it again. |
Below is the log file root@ip-172-31-22-51:/var/www/YouPHPTube/videos# tail -n 200 -f avideo.log GuzzleHttp\Exception\RequestException: cURL error 3: Host name 'tgm-videos.s3.us east (ohio) us-east-2.amazonaws.com' contains bad letter (see http://curl.haxx. se/libcurl/c/libcurl-errors.html) in /var/www/YouPHPTube/plugin/AWS_S3/aws/Guzzl eHttp/Handler/CurlFactory.php:187 GuzzleHttp\Exception\RequestException: cURL error 3: Host name 'tgm-videos.s3.us east (ohio) us-east-2.amazonaws.com' contains bad letter (see http://curl.haxx. se/libcurl/c/libcurl-errors.html) in /var/www/YouPHPTube/plugin/AWS_S3/aws/Guzzl eHttp/Handler/CurlFactory.php:187 GuzzleHttp\Exception\RequestException: cURL error 3: Host name 'tgm-videos.s3.us east (ohio) us-east-2.amazonaws.com' contains bad letter (see http://curl.haxx. se/libcurl/c/libcurl-errors.html) in /var/www/YouPHPTube/plugin/AWS_S3/aws/Guzzl eHttp/Handler/CurlFactory.php:187 |
This is what call my attention...
https://tgm-videos. s3.us east Are you sure your endpoint is blank? |
I see now, your region MUST be us-east-2 only, NOT us east (ohio) us-east-2 |
You can keep this option, but on the plugin, your region MUST be us-east-2 |
Thank you. Upload Result |
This is not an error. that means it is working now. you can check your uploaded test text file here https://tgm-videos.s3.us-east-2.amazonaws.com/test.txt?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJQKZPEG6HYND66KQ%2F20200721%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20200721T014701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=43200&X-Amz-Signature=beabfbb5abe036b8169c3662311be681a7754adf1e468303380d779040841035 |
yes, it does have the test.txt file in the bucket so do you think this will work now? |
Yes it will. Update us here when you test a real video. |
sure thank you, will it up load the current videos to S3 bucket when i click on the upload to S3? |
ok, i try to upload to S3 after videos are not playing from it, it's showing up an error "The media could not be loaded, either because the server or network failed or because the format is not supported." below is the log files : [22-Jul-2020 03:53:54 UTC] AVideoLog::DEBUG: getCaptchaImage: admin - session_name 95a5f5981482dfe55a2a3eadf32c9a8d session_id: 58n3vstsl82k64sfhi0092ednc |
all these videos were working earlier |
Hi I cannot test your videos, it requires a password. Just to make it clear. If your bucket is public you MUST check makeMyFilesPublicRead option, if it is private you MUST uncheck it If you mix it while you were uploading the videos, you may need to fix it manually in your bucket. If you still did not find the issue, follow those steps ...
|
Yes, it;s checked My filespublicread option, i didn't mix the videos. still with the same issue you don;t need user and password for check the videos now
below is the log files root@ip-172-31-22-51:/var/www/YouPHPTube/videos# tail -n 200 -f avideo.log |
Try reboot the server . The videos cache are not created on the cache dir , but on the tmp dir |
rebooted log is below after reboot root@ip-172-31-22-51:/var/www/YouPHPTube/videos# sudo service apache2 restart |
Ok In the log I can see you restart Apache . But I will assume you also reboot the server . On the log I can see only login attempts . What AVideo version are you running? FYI we are in version 9.2 |
Yap, i am using AWS instance, reboot that too. |
Ok I cannot see any clue in your log file . |
details send to this email now |
Ohh Dam, Thank you for your help, |
After install the AWS S3 plugin , it's not working to with AWS S3,
The text was updated successfully, but these errors were encountered: