janus-cloud icon indicating copy to clipboard operation
janus-cloud copied to clipboard

Unable to get the recorded file!

Open muthuaravind opened this issue 2 years ago • 3 comments

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!

muthuaravind avatar Mar 14 '22 11:03 muthuaravind

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

jamken avatar Mar 26 '22 06:03 jamken

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

muthuaravind avatar Mar 28 '22 05:03 muthuaravind

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

jamken avatar Mar 28 '22 09:03 jamken