OpenSight / janus-cloud

a cluster solution for Janus WebRTC server, by API proxy approach
GNU Affero General Public License v3.0
207 stars 49 forks source link

Unable to get the recorded file! #34

Closed muthuaravind closed 1 year ago

muthuaravind commented 2 years ago

Hi @jamken we have done the janus clustering proxy setup with 2 pods running behind the proxy. when the call in initiated we have received the following error form the pod. kindly assist.

ERROR:

[ERR] [record.c:janus_recorder_create_full:154] mkdir () error: 2 (No such file or directory) [ERR] [plugins/janus_videoroom.c:janus_videoroom_recorder_create:5782] Couldn't open an audio recording file for this publisher!

jamken commented 2 years ago

according to the log of janus-gateway which you provide, the reason is that the given record path does not exists on the pod host

muthuaravind commented 2 years ago

We have also tried by providing the directory which is inside the pod but still it ends with the above error.

We are also looking forward for paid support form you. Is that possible ? if yes kindly provide us the details.

Thanks

jamken commented 2 years ago

errno =2 means ENOENT A directory component in pathname does not exist or is a dangling symbolic link.

this is the error report code from record.c:janus_recorder_create_full:154

                /* Directory does not exist, try creating it */
                if(janus_mkdir(rec_dir, 0755) < 0) {
                    JANUS_LOG(LOG_ERR, "mkdir (%s) error: %d (%s)\n", rec_dir, errno, g_strerror(errno));
                    janus_recorder_destroy(rc);
                    g_free(copy_for_parent);
                    g_free(copy_for_base);
                    return NULL;
                }

please check and give the directory you give to janus-gateway