Skip to main content
Known Participant
September 29, 2011
Question

ERROR "Application (vod) is not defined." when creating new vhosts

  • September 29, 2011
  • 2 replies
  • 2132 views

I'm testing FMS 4.5 using the developer edition before upgrading our FMS 3.5 servers to 4.5 but for some reason creating new vhosts doesn't seem to work.

I'm following the exact same steps I would take using v3.5 but 4.5 gives this error:

Sep 29 03:34:24 eventstreaming Javascript[31564]: Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, vhost1.somedomain.com) : Application (vod) is not defined.

Here are the steps I've taken:

  1. Made a copy of folder   _defaultVHost_/   named   vhost1.somedomain.com/     ( inside conf/_defaultRoot_ )
  2. Made an exact copy of the default FMS4.5 applications/  folder  at  /home/vhost1/public_html/applications
  3. Edited  vhost1.somedomain.com/vhost.xml and changed

    <AppsDir>${VHOST.APPSDIR}</AppsDir>

    TO

    <AppsDir>/home/vhost1/public_html/applications</AppsDir>

  4. Edited /home/vhost1/public_html/applications/vod/Application.xml and changed the path to the media files. i.e.

    <Streams>/;${VOD_COMMON_DIR}</Streams>
    <Streams>/;${VOD_DIR}</Streams>

    TO

    <Streams>/;${VOD_COMMON_DIR}</Streams>
    <Streams>/;/home/vhost1/public_html/applications/vod/media</Streams>

  5. Restarted FMS

The VOD application in the default FMS applications folder works fine but the one for the new vhost doesn't. When I try to connect to rtmp://vhost1.somedomain.com/vod/media/sample.flv I get the error

Sep 29 03:34:24 eventstreaming Javascript[31564]: Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, vhost1.somedomain.com) : Application (vod) is not defined.

No other errors are reported in the logs when I strart FMS. Why is the VOD application not working for new vhosts? Either I'm missing something obvious or the developer edition is restricted to one vhost perhaps?

    This topic has been closed for replies.

    2 replies

    bobakbAuthor
    Known Participant
    September 30, 2011

    Found the problem. It was a permission issue. FMS was installed as user 'fms' which did not have access to files in those folders. Reinstalling fms as user 'nobody' gave access to the folders. In future releases maybe it would nice to add an error if fms can't access a folder.

    Adobe Employee
    September 29, 2011

    I tried same scenario at my end and its working for me. Probably there is something wrong which you are doing. For developer edition you should be able to have 3 vhosts.

    Why are you using URI like this: rtmp://vhost1.somedomain.com/vod/media/sample.flv --> it should be rtmp://vhost1.somedomain.com/vod/sample.flv