Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Add content to media: localFilePath cannot be null

$
0
0

I'm trying to use the addContent method of Media Service through the Test Console of my Kaltura CE in order to add a video file to media entry.

I've initiated an admin session, and can successfuly create a media entry via the Test Console.

Then, I take the ID of the created media entry, and along with the session, I set the KalturaResource to be KalturaServerFileResource with localFilePath of /tmp/sample.mp4 .

The error I recieve is this:

<xml><result><error><code>PROPERTY_VALIDATION_CANNOT_BE_NULL</code><message>The property "KalturaServerFileResource::localFilePath" cannot be null</message><objectType>KalturaAPIException</objectType><args><item><objectType>KalturaApiExceptionArg</objectType><name>PROP_NAME</name><value>KalturaServerFileResource::localFilePath</value></item></args></error></result><executionTime>0.026979923248291</executionTime></xml>

The log from the server (/opt/kaltura/log/kaltura_api_v3.log) is:

2016-05-09 12:16:28 [0.001858] [xx.xxx.xxx.xxx] [1960359633] [1] [API] [global] DEBUG: >------------------------------------- api_v3 -------------------------------------
2016-05-09 12:16:28 [0.000109] [xx.xxx.xxx.xxx] [1960359633] [2] [API] [global] INFO: API-start pid:27359
2016-05-09 12:16:28 [0.000212] [xx.xxx.xxx.xxx] [1960359633] [3] [API] [KalturaFrontController->run] DEBUG: Params [Array
(
[ks] => YjhkZWMyZjA4NmZlMWZjZjY0YzIwOGJmZWYzMzE2NjljOTUyMTljZXwxMDE7MTAxOzE0NjI4NzQ2NzM7MjsxNDYyNzg4MjczLjY1NjQ7Ozs7
[clientTag] => testme
[service] => media
[action] => addcontent
[entryId] => 0_fezsq9uh
[resource:objectType] => KalturaServerFileResource
[resource:localFilePath] => /tmp/sample.mp4
)
]
2016-05-09 12:16:28 [0.001242] [xx.xxx.xxx.xxx] [1960359633] [4] [API] [KalturaDispatcher->dispatch] DEBUG: Dispatching service [media], action [addcontent], reqIndex [1] with params Array
(
[0] => 0_fezsq9uh
[1] => KalturaServerFileResource Object
(
[localFilePath] => /tmp/sample.mp4
[relatedObjects] =>
)

)

2016-05-09 12:16:28 [0.002551] [xx.xxx.xxx.xxx] [1960359633] [5] [API] [KalturaPDO->__construct] DEBUG: conn took - 0.00038886070251465 seconds to mysql:host=localhost;port=3306;dbname=kaltura;
....
....
2016-05-09 12:16:28 [0.000872] [xx.xxx.xxx.xxx] [1960359633] [28] [API] [KalturaObject->validateForUsage] ERR: exception 'Exception' with message 'KalturaServerFileResource-localFilePath error: Current user does not have permission to use property "KalturaServerFileResource::localFilePath"' in /opt/kaltura/app/infra/log/KalturaLog.php:83

I don't know if the line 'user does not have permission to use property...' is related. Can anyone shed some light on the problem?


Viewing all articles
Browse latest Browse all 7410

Trending Articles