WebSocket connection to 'wss://host:8443/' failed: Error during WebSocket handshake: Unexpected response code: 302

Max

Administrator
Staff member
I have downgraded to version 5.2.798 and the recordings are saving to the correct location but its permissions are root user and group and its not accessible by the site user to play the video can you please guide me how we can set the proper permissions for the recorded files.
You can use on_record_hook.sh script for any operations on recording files, including permissions changing, for example
Code:
STREAM_NAME=$1
FILE_NAME=$2
 
echo $STREAM_NAME:$FILE_NAME >> /usr/local/FlashphonerWebCallServer/logs/record.log
chown wwwuser $FILE_NAME
 

junkship

New Member
Hi Max
I am getting desperate here. Our liveStreaming has not functioned since we migrated to a new server three weeks ago. I am caught between my developer, (MojoStreaming on this thread, who is not working today or tomorrow) my Server Host and you guys. All I know is I can't go on like this. The last in the run of actions is that the server manager changed ownership of root for the new files manually, not dynamically. They now say it's up to you guys to change the permissions to what is required. You already have Shell access to the server, I have not changed that yet. Could you go in and change it to what is required?
 

junkship

New Member
This is the reply from the Server Host on my thread with them:
[18:53] Isabella : Our team has been analyze the issue.
[18:53] Isabella : Your script provider can help you in this problem.
[18:53] Isabella : They can help you to set the permissions and ask them
why they are using root user to store the files instead of your cpanel user.
[18:59] Isabella : Actually, our server only permorming actions what
script asking to do. So, in this regards your script provider can
enable the specific permissions from the server side or he can ask us
the direct path from where we need to update the permissions.
[19:00] Isabella : Otherwise, you can share your server root login via
any screen sharing software and ask them to do it themself.
 

Max

Administrator
Staff member
Could you go in and change it to what is required?
Please do the following:
1. Login to the server via SSH as root
2. Execute the following command to edit on_record_hook.sh script
Code:
nano /usr/local/FlashphonerWebCallServer/bin/on_record_hook.sh
3. Comment out two echo strings and add the following strings
Code:
chown wwwmojostreaming $FILE_NAME
chgrp wwwmojostreaming $FILE_NAME
1610940620460.png

4. Press Ctrl+O to save the file changes
5. Press Ctrl+X to exit nano editor
That's all. The subsequent recordings permissions will be changed right after recording stops.
 
Top