SERVICE_FORBIDDEN error when adding entries on dropfolders

ingestanduploadmedia

#1

I have configured a Local Drop folder for an account on my Kaltura CE On-prem. It is configured to ingest on content (not xml). When I copy a File to the drop folder, the file gets listed on the DropFolder Ingestion list but I always got an error as the Drop Folder File cannot be updated.

I have check the logs and found a SERVICE_FORBIDDEN error for the dropfolder_dropfolderfile->updateStatus action.

I’v looked at the database and permissions for dropFolder are active for the partner_id.

I have checked the permissions_item table and also permissions_to_permissions_item but there are no records related to the partner_id on those two tables

Is there anything else I am missing?

@jess, could you give us a hand on this?

Regards,

Felipe Borrero
Operations Director
Calipso Comunicaciones S.A.


#2

Forgot to add the evidence

This is my drop folder config:

select * from drop_folder where id=5\G;
*************************** 1. row ***************************
                   id: 5
           partner_id: 107
                 name: AmericaTV
          description:
                 type: 1
               status: 1
                   dc: 0
                 path: /opt/kaltura/web/dropfolders/AmericaTV
conversion_profile_id: 23
   file_delete_policy: 2
    file_handler_type: 1
   file_name_patterns: *
  file_handler_config: O:34:"DropFolderContentFileHandlerConfig":3:{s:54:" DropFolderContentFileHandlerConfig contentMatchPolicy";i:1;s:45:" DropFolderContentFileHandlerConfig slugRegex";s:30:"/(?P<referenceId>.+)[.]\w{2,}/";s:14:" * handlerType";i:1;}
                 tags:
           error_code: 0
    error_description:
           created_at: 2018-08-02 16:41:41
           updated_at: 2018-08-02 19:14:25
          custom_data: a:10:{s:24:"file_size_check_interval";i:10;s:21:"auto_file_delete_days";i:0;s:25:"ignore_file_name_patterns";s:9:"*.partial";s:11:"incremental";b:0;s:19:"last_file_timestamp";i:0;s:19:"metadata_profile_id";i:0;s:30:"categories_metadata_field_name";s:0:"";s:19:"enforce_entitlement";b:0;s:18:"should_validate_ks";b:0;s:16:"last_accessed_at";i:1533255265;}

Here is the entry on the drop_folder_file table:

select * from drop_folder_file where id=6\G;
*************************** 1. row ***************************
                         id: 6
                 partner_id: 117
             drop_folder_id: 6
                  file_name: PesebreTimeLapse.mov
                       type: 1
                     status: 1
                  file_size: 49439374
      file_size_last_set_at: 2018-08-02 17:07:17
                 error_code: 8
          error_description: Failed to update the drop folder file record in Kaltura.
                parsed_slug: NULL
              parsed_flavor: NULL
   lead_drop_folder_file_id: NULL
deleted_drop_folder_file_id: 0
              md5_file_name: 67d4b1c11e0a93df9035512c84398004
                   entry_id: NULL
                 created_at: 2018-08-02 17:07:17
                 updated_at: 2018-08-02 19:16:26
   upload_start_detected_at: 2018-08-02 17:07:17
     upload_end_detected_at: 2018-08-02 19:16:26
          import_started_at: NULL
            import_ended_at: NULL
                custom_data: a:1:{s:22:"last_modification_time";s:10:"1533247623";}

and here is the error log fragment:

    2018-08-02 19:17:27 [0.000106] [2037070628] [1063] [BATCH] [KalturaClientBase->doCurl] INFO: post: {"format":"3","ignoreNull":true,"clientTag":"batch: web01.cloudvideo.com.co KAsyncDropFolderWatcher index: 0 sessionId: 2037070628","apiVersion":"3.3.0","dropFolderFileId":"4","status":"9","partnerId":"107","ks":"====OMITED====","kalsig":"====OMITED===="}
2018-08-02 19:17:27 [0.015646] [2037070628] [1064] [BATCH] [KalturaClientBase->doQueue] INFO: server: [====OMITED====], session: [1692642584]
2018-08-02 19:17:27 [0.000139] [2037070628] [1065] [BATCH] [KalturaClientBase->doQueue] INFO: result (serialized): a:4:{s:4:"code";s:17:"SERVICE_FORBIDDEN";s:7:"message";s:76:"The access to service [dropfolder_dropfolderfile->updateStatus] is forbidden";s:10:"objectType";s:19:"KalturaAPIException";s:4:"args";a:1:{s:7:"SERVICE";s:39:"dropfolder_dropfolderfile->updateStatus";}}
2018-08-02 19:17:27 [0.000137] [2037070628] [1066] [BATCH] [KalturaClientBase->doQueue] INFO: result (object dump): Array
(
    [code] => SERVICE_FORBIDDEN
    [message] => The access to service [dropfolder_dropfolderfile->updateStatus] is forbidden
    [objectType] => KalturaAPIException
    [args] => Array
        (
            [SERVICE] => dropfolder_dropfolderfile->updateStatus
        )

)

Regards,

Felipe Borrero
Operations Director
Calipso Comunicaciones S.A.