Skip to main content
December 7, 2010
Question

FMS Error - Connection Rejected, No Scope?

  • December 7, 2010
  • 3 replies
  • 3786 views

We recently made a copy of our FMS server and moved it to a new machine. Now, when I try to connect to our application, I receive the following from the interactive media server:

event.info.code: NetConnection.Connect.Rejected
event.info.description: No scope "app_name" on this server.
Connection to rtmp://domain.com:1935/app_name rejected

Can anyone provide some insight into what this error means and what I can do to fix it?

Thanks!

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    December 8, 2010

    Please check your conf/fms.ini file to make sure that "VHOST.APPSDIR" is correctly pointing to your applications folder. Let me know where exactly you are finding this error "event.info.description: No scope "app_name" on this server." whether in edge.00.log file or somewhere else. Going through log files and also the application.00.log may help you to narrow down the problem. Please give it a try and let me know your observations. Also, if you have successfully corected your porblem then I wil appreciate if you can make a post about the problem resolution so that it may help other users too in future  ...

    Thanks!!

    December 8, 2010

    I looked in fms.ini, and here is the value you mentioned:

    VHOST.APPSDIR = /opt/adobe/fms/applications

    That is the correct location.

    I am receiving the error when I launch my client-side application in Flash. The application attempts to connect to the server, and the connection is rejected with the following reason:

    event.info.level: error

    event.info.code: NetConnection.Connect.Rejected

    event.info.description: No scope "app_name" on this server.

    Participating Frequently
    December 8, 2010

    Well, this is what you are getting at client-side, I am more interested in server logs. Can you please go to your server at /opt/adobe/fms/logs folder and see what are you getting inside edge.00.log file each time you try to connect to the application. Also, it would be helpful if you can create a blank folder (i.e. a blank application with no script or anything inside it) inside /opt/adobe/fms/applications folder and try to connect with string "rtmp://fmsserver/your_blank_app_name" using your client-side application.

    Also, inside /opt/adobe/fms/logs folder navigate to _defaultVHost_/application and find application.00.log file and try to see if you are receiving any kind of error or issue in that log file.

    December 7, 2010

    Correction... I am in the admin console. I select my application and attempt to load it on the server. It appears to load correctly... But when I sign out and sign back into the admin console, it is gone.

    Graeme Bull
    Community Expert
    Community Expert
    December 8, 2010

    Just to confirm, in the applications folder you've created a folder called "app_name"? If so, is there a main.asc file in there? If so, what kind of code is in there?

    December 8, 2010

    Yes. I should reiterate... The application on the server is very basic, and was working just fine on a previous server. It only began to do this when we made a copy of the server and moved it to a new location.

    Here is the code of the server-side app:


    application.onConnect = function(p_client, p_autoSenseBW) {
            // Invoked when NetConnection.connect() is called from the client.
            application.acceptConnection(p_client);
    }

    application.onUnpublish = function(client, myStream) {
            // Invoked when a client stops publishing a stream to an application.

            var my_xml = new XML("<data><user_id>1</user_id><project_id>1</project_id><question_id>1</question_id><stream_name>" + myStream.name + "</stream_name></data>");
            my_xml.contentType = "text/xml";
            my_xml.send("http://mydomain.com/flash/adobe_post.php");

    }

    December 7, 2010

    Additional notes... The server does appear to be running correctly. I can access the admin console. And it also appears from the admin console that the app in question is also running.