Hi Jess, I’ve been able to go trough the process to configure the remote storage in AWS S3 but im not able to see the files in my bucket and Im receiving a 404 when trying to reproduce the video on the preview player.
Delivery Profile is
Status: Active
ID: 1005
Name: HTTP CF
Type: HTTP
Streamer Type: HTTP
Url: http://d3kkizspw968.cloudfront.net/kaltura
And the Remote Storage Profile is:
Status: Automatic
ID: 1
Name: Amazon S3
Protocol: Amazon S3
URL: http://d3kkizspw968.cloudfront.net
Publisher ID: 101
Path Manager: Kaltura Path
Trigger: Flavor Ready
Ready Behavior: No Effect
S3 Bucket Policy:
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “AddPerm”,
“Effect”: “Allow”,
“Principal”: {
“AWS”: “"
},
“Action”: [
“s3:PutObject”,
“s3:PutObjectAcl”,
“s3:GetObject”,
“s3:GetObjectAcl”,
“s3:DeleteObject”
],
“Resource”: "arn:aws:s3:::mmtmd/”
}
]
}
and also tried with
{
“Version”:“2012-10-17”,
“Statement”:[{
“Sid”:“AddPerm”,
“Effect”:“Allow”,
“Principal”: {
“AWS”: “"
},
“Action”:[“s3:GetObject”],
“Resource”:["arn:aws:s3:::Bucket-name/”
]
}
]
}
While doing the upload I get this on the kaltlog:
2018-01-09 21:52:24 [0.000115] [190.17.36.242] [548696055] [59] [PS2] [kFileSyncUtils::getReadyFileSyncForKey] NOTICE: FileSync was not found
2018-01-09 21:52:24 [0.000273] [190.17.36.242] [548696055] [60] [PS2] [kCoreException->__construct] ERR: exception 'kFileSyncException' with message 'no ready filesync on current DC' in /opt/kaltura/app/alpha/apps/kaltura/lib/myEntryUtils.class.php:845
Stack trace:
#0 /opt/kaltura/app/alpha/lib/model/entry.php(3515): myEntryUtils::resizeEntryImage(Object(entry), 0, 120, 90, 2, 'F7F7F7', NULL, 0, 0, 0, 0, 0, -1, '-1', '-1')
--
2018-01-09 21:52:24 [0.000092] [190.17.36.242] [548696055] [68] [PS2] [kFileSyncUtils::getReadyFileSyncForKey] NOTICE: FileSync was not found
2018-01-09 21:52:24 [0.000111] [190.17.36.242] [548696055] [69] [PS2] [entry->getLocalThumbFilePath] ERR: exception 'Exception' with message 'No ready fileSync found on any DC.' in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/alpha/lib/model/entry.php(3532): KalturaLog::err('No ready fileSy...')
--
#16 {main}
2018-01-09 21:52:24 [0.000163] [190.17.36.242] [548696055] [70] [PS2] [KExternalErrors::dieError] ERR: exception 'Exception' with message 'exiting on error 10 - missing thumbnail fileSync for entry' in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/KExternalErrors.class.php(136): KalturaLog::err('exiting on erro...')
--
[tmp_name] => /opt/kaltura/web/content/uploads/phpNeWpe3
[error] => 0
[size] => 874507
--
[tmp_name] => /opt/kaltura/web/content/uploads/phpNeWpe3
[error] => 0
[size] => 874507
--
==> /opt/kaltura/log/batch/extractmedia-0-2018-01-09.err.log <==
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
--
==> /opt/kaltura/log/batch/extractmedia-0-2018-01-09.err.log <==
PHP Warning: Creating default object from empty value in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 246
--
==> /opt/kaltura/log/batch/storageexport-2-2018-01-09.log <==
2018-01-09 21:53:01 [0.646729] [78461873] [37] [BATCH] [s3Mgr->doPutFileHelper] ERR: exception 'Exception' with message 'error uploading file /opt/kaltura/web/content/entry/data/0/1/0_ej6wj27l_0_wnghzbyq_12.mp4 s3 info: Access Denied' in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/infra/storage/file_transfer_managers/s3Mgr.class.php(178): KalturaLog::err('error uploading...')
--
==> /opt/kaltura/log/batch/storageexport-2-2018-01-09.log <==
2018-01-09 21:53:01 [0.868523] [78461873] [40] [BATCH] [s3Mgr->doPutFileHelper] ERR: exception 'Exception' with message 'error uploading file /opt/kaltura/web/content/entry/data/0/1/0_ej6wj27l_0_wnghzbyq_12.mp4 s3 info: Access Denied' in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/infra/storage/file_transfer_managers/s3Mgr.class.php(178): KalturaLog::err('error uploading...')
Is clear for me that there is an issue with the access, but I tried with root credentials and user credentials and I get the same issue. Another thing here is that if I switch the Remote Storage Settings to First Kaltura, Im able to reproduce the video.
Do you have any tip for looking into S3 or the remote storage settings?
Thanks in advance.
JP