You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
502 error occurred after modifying the '/data/record' directory using 'ln'.
A 502 error occurred after modifying the "/data/record" directory using "ln".
Version
OS: Ubuntu 20.04.6 LTS x86_64(Py3.7.9)
Pagoda: Linux Official Version (Free Version) 8.0.2 (2023/08/23)
srs-stack/v5.8.31
To Reproduce
Install the system, install Pagoda.
Pagoda homepage pop-up box installs Nginx 1.22.1, MySQL 5.7.43, PHP-7.4.33, phpMyAdmin 5.2, etc.
After success, install Docker Manager 3.9.2 from the Pagoda software store.
After success, install SRS Audio and Video Server from the Pagoda software store, click on settings => input domain name => install, wait for completion.
Pagoda homepage scans a bunch of "security risks" and fixes them according to the prompts.
After clicking on "SRS Stack Management Panel" in the "SRS Audio and Video Server" panel, enter the password to log in to /mgmt/zh/routers-scenario normally.
Application Scenario => Recording => Set Recording Rules => Check "Record All Streams" and submit.
Phenomenon 1:
After setting the streaming address with EV screen recording, start streaming, and stop streaming after about 1 minute.
Relevant recording files can appear in the system "/data/record" directory, this phenomenon is normal.
Phenomenon 2:
After setting the "Service Status" to "Stop" in the "SRS Audio and Video Server" panel,
In the Baota "File", cut and paste the "/data/record" directory as the "/www/wwwroot/srsDir/record" directory,
In the Baota "File", use the Baota's "New => Soft Link File" function in the "/data/" directory to create a "record" link to "/www/wwwroot/srsDir/record".
After setting the "Service Status" to "Start" in the "SRS Audio and Video Server" panel,
Click on the "SRS Stack Management Panel" to open the mgmt page, an error message "You got an error!" appears,
Click the browser refresh button to refresh the page, a "502" error message appears, other pages also have errors,
Start streaming with EV screen recording, an error message "Error number -10053 occurred" appears indicating streaming failure.
Phenomenon 3:
After setting the "Service Status" to "Stop" in the "SRS Audio and Video Server" panel,
In the Baota "File", delete the "/data/record" directory and cut and paste the "/www/wwwroot/srsDir/record" directory back to the "/data/record" directory.
In the Baota "File", cut and paste the "/data" directory as the "/www/wwwroot/srsDir/data" directory,
In the Baota "File", use the Baota's "New => Soft Link File" function in the "/" directory to create a "data" link to the "/www/wwwroot/srsDir/data" directory.
After setting the "Service Status" to "Start" in the "SRS Audio and Video Server" panel,
Click on the "SRS Stack Management Panel" to open the mgmt page normally, refresh the page normally, and click on other pages normally,
Streaming with EV screen recording is normal, stop streaming after about 1 minute,
In the Baota "File", there is a recorded folder in the "/www/wwwroot/srsDir/data/record" directory and the recorded video files can be played normally.
Expected behavior
The 14th, 15th, and 16th steps of the expected Phenomenon 2 should be consistent with the 22nd, 23rd, and 24th steps of Phenomenon 3.
Screenshots
Screenshot of Step 12:
Screenshot of Step 13:
Screenshot of Step 14:
Screenshot of Step 15:
Screenshot of Step 16:
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered:
winlinvip
changed the title
使用"ln"修改"/data/record"目录后出现502错误。502 error occurred after modifying the '/data/record' directory using 'ln'.
A 502 error occurred after modifying the '/data/record' directory using 'ln'.
Sep 14, 2023
In simple terms, because the /data directory is a mounted host machine's disk directory, after modifying the /data/record soft link to another directory, it cannot be accessed in the docker container.
If docker is started directly, you can mount the /data and /data/record directories, for example:
docker run -v $HOME/data:/data -v /tmp/record:/data/record ......
If it is installed via BaoTa, aaPanel, image, or script, you need to modify the /usr/local/srs-stack/mgmt/bootstrap startup script, which is not easy.
Need to modify the text prompt for the recording, you cannot directly create a symbolic link to the /data/record directory.
Since you can't directly modify /data/record in Docker, a simpler way is to directly modify the /data directory. The text prompt has already been updated.
Of course, if you're using Docker, you can also use the -v /tmp/record:/data/record command to mount the directory. That works too.
Describe the bug
502 error occurred after modifying the '/data/record' directory using 'ln'.
A 502 error occurred after modifying the "/data/record" directory using "ln".
Version
To Reproduce
Expected behavior
The 14th, 15th, and 16th steps of the expected Phenomenon 2 should be consistent with the 22nd, 23rd, and 24th steps of Phenomenon 3.
Screenshots
Screenshot of Step 12:
Screenshot of Step 13:
Screenshot of Step 14:
Screenshot of Step 15:
Screenshot of Step 16:
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: