AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://airensoft.com/ome.html
GNU Affero General Public License v3.0
2.61k stars 1.06k forks source link

The VirtualHost is read-only: [default] (403) #1621

Closed Nikita-Goncharov closed 6 months ago

Nikita-Goncharov commented 6 months ago

Discussed in https://github.com/AirenSoft/OvenMediaEngine/discussions/1620

Originally posted by **Nikita-Goncharov** May 19, 2024 ### I Have that error in postman: ``` { "message": "[HTTP] The VirtualHost is read-only: [default] (403)", "statusCode": 403 } ``` When i try to create new application, create or delete outputprofile. But getting vhosts, apps and recording streams in files works. ### Example of output profile creation: Link: **myIP:3005/v1/vhosts/default/apps/app/outputProfiles** Right Authorization token in headers. Body: ``` [ { "name": "bypass_profile", "outputStreamName": "stream_bypass", "encodes": { "videos": [ { "bypass": true } ], "audios": [ { "bypass": true } ] } } ] ``` ### OvenMediaEngine Server.xml config: ``` OvenMediaEngine origin * false stun.l.google.com:19302 true true false 2 3005 8082 1 1 1 1935 1 9999 1 4000/udp 3333 3334 1 *:10000/udp *:3478 true 1 9000 1 3333 3334 1 3333 3334 1 *:10000-10005/udp *:3478 true 1 * myUser:myPassword * default ovenmediaengine.com * app live false bypass_stream ${OriginStreamName} stream_${Port} 4000 30000 /mnt/shared_volumes /${VirtualHost}/${Application}/${Stream}/ ${StartTime:YYYYMMDDhhmmss}_${EndTime:YYYYMMDDhhmmss}.ts /${VirtualHost}/${Application}/${Stream}.xml true ./record_info.xml 1 8 30000 false false false 0.2 6 10 * ``` What should i do ?🙏
getroot commented 6 months ago

This is by design and the Virtual Host created from Server.xml is read only. Only virtual hosts created through the API can be modified.