Skip to content

SRS 6.0.166 Configuration Error: 'illegal vhost.app' Due to Explicit app Block in vhost #4355

Open
@pickmanmike

Description

@pickmanmike

While configuring SRS version 6.0.166 on an RPi4B, I encountered the following error during configuration testing and could not validate the conf file to proceed:

[2025-05-18 19:49:34.650][INFO][80156][6q14yv84] invalid configcode=1023(ConfigInvalid) : check normal : illegal vhost.app in /opt/srs/trunk/conf/srs.conf

Configuration Snippet:

vhost __defaultVhost__ {
    enabled on;

    app live {
        live on;
    }
}

Investigation & Resolution:

  • The error just references the vhost.app suggesting an accessibility, formatting or syntax issue.
  • Verified the presence and accessibility of srs.conf.
  • Removed potential issues like Windows carriage returns, tabs, and BOMs.

Despite these checks, the error persisted.

Upon further investigation, it appears that SRS 6.0.x has introduced stricter validation rules, moving the app directives to the vhost file and disallowing explicit app blocks within vhost sections in srs.conf. I did not see anything in the release documentation directly addressing this.

Modifying the conf file to remove the app block resolved the issue.

Suggestion:
It would be beneficial to update the documentation to reflect this change in configuration validation. This can help users avoid similar issues and reduce troubleshooting time.

Environment Details:

SRS Version: 6.0.166
Platform: RPi4B (Pi OS Bookworm)
Build: Compiled from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnglishNativeThis issue is conveyed exclusively in English.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions