Mysteriously Missing Main.asc

Have any of you ever heard of a main.asc file being
"mysteriously" deleted from an application's directory?
I'm working on a client project that was being developed on
an in-house Fedora Core 5 server where I'd installed FMS. I
uploaded the client's video streams and coded main.asc's for two
separate applications. One of them, the larger of the two, had some
very important code in there that took me several all nighter's to
get right.
Long story short, the project got put on hold for a while and
now I'm taking another look at it, and moving it to a server live
on the internet. In doing so, I'm seeing that the main.asc file I
wrote for one of the projects is just plain GONE, like it never
existed. The other application is fine, untouched, but the more
important of the two has another strange twist: a directory called
"http" that I never created. Inside it are some streams (placed in
their own subdirectories) from the application's "streams"
directory that I never moved in there. And of course like I said,
the main.asc file is just plain gone.
Looking at /var/log/messages doesn't give me any information
(looks like the logs just rotated a day or two ago). Does anyone
have any ideas how I can find out:
a) how the hell this was deleted,
b) if there's a backup somewhere on the system (already tried
updatedb/locate main.asc, no help)
c) how to prevent it from happening again
Thanks in advance for any assistance you can provide.

I'm wondering if you've got some security holes there. Did
you look at any of the streams? Are they something that would have
been published by an authorized user, or does it appear that
someone has been adding their own streams and leeching your
bandwidth/connections?
The missing main.asc is what makes me suspicious. FMS
wouldn't remove its own files like that, and since other files are
where they should be, it sort of rules out the file missing as a
result of a system restore. Removing the main.asc would make the
application wide open to abuse, so if someone wanted to leech
effectively, removing the main.asc would be helpful to them.
What do your server logs (not the FMS logs, the network level
logs) tell you? Do you see anything odd? If someone broke into the
server and deleted your main.asc, it wouldn't show up in the FMS
logs.

Similar Messages

  • How to implement server side methods in client side player from main.asc?

    Hi,
    I am developing video player using RTMP NetConnection and NetStream object but it is giving me below Error. Can you please tell me how can I handle this. I have main.asc file form FMS server side but I don't know how to use it. 
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback setUserID.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback syncChat.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback playingNotComplete.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback nowPlaying.
    Can anyone please help me ot solve this issue?
    Best regards,
    Sunil kumar

    javascript are run on the client side.. but i think what you actually mean is getting some validation to your database without submitting the form?. yes it doesn't consumes time and memory of server.. why not use ajax so you can only submit a little request.. rather than submitting the whole page..

  • Secure Flash Remoting from main.asc not returning a result

    Hi, Iv got a problem here that could be Flash Remoting or
    Flash Media Server related
    I have created an application that uses flash media server
    and flash remoting.
    For authentication in my app I used Kevin Towes suggested
    method "Secure Authentication with Flash Communication Server:
    Using Tickets and Flash Remoting MX." His article is here
    Download
    PDF Here
    Now to the problem...
    My application has no problem connecting to coldfusion using
    flash remoting with the defaultGateway url set to
    "https://www.mysite.com" (ie over SSL)
    However In main.asc, on the Flash Media Server
    When Flash Media server attempts to validate the login by
    connecting to CFMX using flash remoting it gets no response when
    using a secure gateway url. If I set the default gateway url to
    just
    http://www.mysite.com it works
    great.
    Why do I not get any response when using https as my gateway
    url from Flash Media Server?
    thanks

    Sounds like you need to enable mappings for your remoting
    gateway. I'm not sure if it's the same as Flex, but here's what you
    might need to do, or something similar...
    In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
    wherever CF is installed) look for the <use-mappings> node
    and set the value to true. You will need to restart CF

  • It seem a bug in flash server " main.asc is not working well"

    i did download the latest version of flash media server , but it seam the /live/main.asc did not work at all ,
    i did create a main.asc in :
    C:\Program Files\Adobe\Flash Media Server 3\applications\live\
    to be :
    C:\Program Files\Adobe\Flash Media Server 3\applications\live\main.asc
    now i did add to main.acs this code :
    application.onConnect = function(client, name) {
         trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");
    as the help files said :
    The output of the trace() statements used by a main.asc file are sent to a log file, typically:
    RootInstall/logs/_defaultVHost_/yourApplicationName/yourInstanceName/application .xx.log
    Where yourInstanceName is _definst_ by default, and xx is the instance number, 00 for the most recent log file, 01
    for the previous instance, and so forth.
    You can view a log file with any text editor.
    i opened "Flash Media Live Encoder 3" and point the stream to "rtmp://localhost/live/stream" hist start , traming is start well,
    i went to the log to see if it true that FMS will write the trace !
    C:\Program Files\Adobe\Flash Media Server 3\logs\_defaultVHost_\live\stream\application.00.log
    where the "stream" is the the name of the "instance"
    i did not found any thing regarding the "trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");"
    Please advice

    It seem no one in the world have this broblem !Please if you have a plan to help us (if).
    Do the following :
    ·        Download the latest version of flash media server , linux or windows never mind
    ·        Install flash media server , as usual with standard settings , in linux use Nobody user
    ·        Now the FMS is run and active .
    ·        Go to the application directory in the “C:\Program Files\Adobe\Flash Media Server 3\applications\live”
    ·        The content of this directory will be as the list below :
    main.far
    Application.xml
    allowedHTMLDomains.txt
    allowedSWFDomains.txt
    So there is NO main.asc file , create a new text file . rename it to be “main.asc”
    o  Open the main.asc code , it will be empty for sure .
    o  Put the following command :
    o  trace(‘--------------- Test The Log Out Put -------------’);
    ·        Now Open the “fms_adminConsole.htm” and Login as admin
    ·        Select View Applications Tap
    ·        Now , form “New Instance” select the “LIVE” and insert “test”
    ·        Click on the name of the Instance in the right window and click the restart application icone in the toolbar , and see the live log , there is no out put of the trace command:
    o  Found wildcard (*) entry: disabling authentication for HTML file domains
    o  Found wildcard (*) entry: disabling authentication for SWF file domains
    o  Unloaded application instance live/test
    ·        Any way , Now Open the “Adobe Flash Media Live Encoder 3”
    ·        Point the FMS to “rtmp://localhost/live/test”
    ·        Stream: test_str
    ·        Click on start
    ·        Go to “fms_adminConsole.htm”
    ·        Select View Applications Tap
    ·        Go to live loge window ,
    ·        There is nothing regarding the trace command that we set in the main.asc ate the 1st place, but we did restart the app! strange !!!!
    ·        We can see just “Accepted a connection from IP:127.0.0.1”
    ·        Is there any thing wrongs with the steps ! is it a bug or what ?
    ·        If trace command did not run so any command will not load .
         ·        Why is that ?

  • Invoking external AS from Main.asc?

    Hi all,
    I'm hoping anyone can point me in some intelligent direction.
    I have a main.asc in my FMS3.5 application. I'd like to be able to import things like AS3Crypto, com.adobe.serialization, etc, to be used in main.asc.
    However, there seems to be no clear way to do so.
    2 possibilities come to mind:
    1) I'm not seeing something in the docs that is super obvious.
    2) I'm attempting to use server-side AS for something that it is not intended for..
    All I'm trying to do is verify url signature in my onConnect, however, I can't even get access to simple things like byteArrays, let alone invoke AS3Crypto. I can load other ASC files via global load() method, but this seems to bleed to death if I attempt to convert complex AS3 classes to ASC.
    Is it intended that this sort of functionality be soley offloaded to another application via webservice/whatever? Or am I simply looking at this all wrong?
    Any leads or advice would be tremendously appreciated.
    Thanks all.
    j

    Pardon me if I am trivial here but server-side AS is plain simple AS-1 code to me so loads of things integrated with AS-2 & 3 versions are not avaible.
    Using services like AS3-Crypto will need loads of rewriting to make them compliant with AS-1 capabilities.
    Sorry if I misunderstood your need, hope I get useful here for you.
    Regards,
    IFZen

  • Who Publish "file.flv" in Live Application By main.asc

    I want the now if is possible:
    FILE.FLV ----> TO ---> LIVE APPLICATION
    SOMTING LIKE
    Stream.play("file.flv")
    stream.get("live.flv_file_name_when_is_published")
    Tanks all

    Hi. Assuming you downloaded and installed Adobe Media Server ( formerly Flash Media Server ) ..... On Windows ....  You create a folder named whatever you want like "videos" in  C:\Program Files\Adobe\Adobe Media Server 5\applications   Then put the main.asc file in videos folder.   Then create a folder in videos named media.  So you have a full path like C:\Program Files\Adobe\Adobe Media Server 5\applications\videos\media  Put your .flv in the media folder.  Restart AMS/FMS using the adminConsole C:\Program Files\Adobe\Adobe Media Server 5\tools\ams_adminConsole.htm   Then insert an flv
    You may need to run the html from localhost rather than live preview or preview in browser because of security crap in flashplayer.
    HTH

  • My solution to missing main user/admin acct...

    Well, here's how I fixed my missing main user (me)/admin account.
    After doing an *Archive & Install*, I was quite surprised to see that my account was not transferred. My wife's and sons' accounts were there, but nothing else. Logged into my wife's account, but her account was Standard and my sons' account was Managed. So, I couldn't download the two updates. But I did see that my "old" Home folder was still in the Previous Systems' Users folder. So, I moved it back into the "new" Users folder.
    First off, I was unable to use Single User Mode (Command-S). It booted into Single User mode, but I never got any echo when typing?!?! And yes, I was using a wired keyboard.
    So, I booted off the Leopard DVD and performed the Password Reset from the Utility Menu, as mentioned in other threads. I selected System Administrator (root) changed the password.
    And to top it off, we just had an EARTHQUAKE... Preliminary 5.6 magnitude, centered 9 mi NE of San Jose, CA.
    Continuing...
    Restarted and logged in via the "Other" user login and used Root and the new password. This allow me to get back and download the new updates. However, the updates didn't help.
    So, I went back and tried to created a new user with Admin privileges. I used the same user name, short name, and password as my previous account. I got the message about using the existing folder for the "new" user and I clicked Yes/OK. After a wait, the new account was created! YEAH!
    So, all is well...after approx. 3-4 hours.
    So, how do I get rid of the "Other" user login?

    Please mark this post and the other one you posted on the same subject as solved.

  • FMS don't read main.asc. I'm going to crazy. Somebody help me.

    Hi. All.
    I've search enough. and I've did my best for 3 days. 
    Unfortunately, I could not solve this problem.
    If you help me, you can be my sunshine.
    I'm developing Text Chat App using Flex4.6 & FMS 4.5.
    I wanna count how many on-line users in.   I found some infomation by googling.
    As a result of googling, I figured out I need SSAS(Server Side Action Script)
    http://www.fmsguru.com/showtutorial.cfm?tutorialID=48
    I followed what he did pecfectly. This source code is what I made.
    UserCount.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009http://ns.adobe.com/http://ns.adobe.com/mxml/2009mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          minWidth="955" minHeight="600" currentState="LogIn">
    <s:states>
      <s:State name="LogIn"/>
      <s:State name="LoggedIn"/>
    </s:states>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       private var nc:NetConnection;
       protected function button1_clickHandler(event:MouseEvent):void{
        nc = new NetConnection();
        nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
        nc.client = this;
        nc.connect("rtmp://192.168.0.5:80/livepkgr/");
       public function setUserCount(userCount:Number):void{
        userCountText.text =  userCount.toString();
       private function onNetStatus(e:NetStatusEvent):void{
        if(e.info.code.indexOf("Success") != -1){
         currentState = "LoggedIn";
      ]]>
    </fx:Script>
    <s:Panel includeIn="LogIn" x="10" y="10" width="250" height="200" title="Log in to my app">
      <s:Button x="89" y="64" label="Login Now!" click="button1_clickHandler(event)"/>
    </s:Panel>
    <s:Label includeIn="LoggedIn" x="150" y="136" color="#0E55F6" fontSize="20" text="You are now logged in!"/>
    <s:Label includeIn="LoggedIn" x="151" y="94" width="214" color="#8C2222"  id="userCountText" text=""/>
    </s:Application>
    main.asc
    application.onConnect = function(client)
      application.acceptConnection(client);
      userCount = application.clients.length;
      client.call("setUserCount", null, userCount);
    1.  I released this project.
    2. I got released files.
    3. I copied these files to FMS's webroot and main.asc file also.
    4. I connected this server by remoted PC. I could connect. And I clicked the button.
    http://xxx.xxx.x.x:8134/UserCount/UserCount.html
                         NO REACTION
    5. So, I checked break-point setUserCount. This method is called by SSAS.  I wanna know  this method is called or not. But There's no break. That means main.asc is not working.
    Pls let me know what is my mistake.
    Thanks in advanced
    Kevin.

    Thank you for reply. Nitin.
    I followed your explain.
    But I can't connect to server.
    When remote users connect to server, they connect http://<server-ip>/<app-name>/<app-main.html>/
    This path is /fms/webroot/<app-name>/
    NOT /fms/application/<app-name>/
    I'm very confusing.  Please give me a favor.
    Thanks.
    Kevin.

  • How to create main.RSA from main.asc

    Dear All !
    I'm using Adobe Flash Media Server 4.5. I'm testing on Live applications. I have modified some code in the file main.asc Live app.
    - How to create file main.RSA from file main.asc?.
    Can anyone please help me. I using Adobe Flash Media Server 4.5.

    Hi!
    Like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_top_of_page            = 'TOP_OF_PAGE'
    *      Form top_of_page
    FORM top_of_page.   "ALV GRID megjelenítéséhez
      DATA: lv_fejlec(100) TYPE c,
            lv_statuszok(200) TYPE c.
      REFRESH gt_top_of_page.
    * LIST HEADING LINE: TYPE H
      CONCATENATE sy-repid ' --- ' sy-title INTO lv_fejlec.
      CLEAR gs_line.
      gs_line-typ  = 'H'.
      gs_line-info = lv_fejlec.
      APPEND gs_line TO gt_top_of_page.
    * STATUS LINE: TYPE S
      CLEAR gs_line.
      gs_line-typ  = 'S'.
      gs_line-key  = text-501.
      CONCATENATE sy-datum(4) '.' sy-datum+4(2) '.' sy-datum+6(2)
             INTO gs_line-info.
      APPEND gs_line TO gt_top_of_page.
      gs_line-key  = text-502.
      CONCATENATE p_devdat(4) '.' p_devdat+4(2) '.' p_devdat+6(2)
             INTO gs_line-info.
      APPEND gs_line TO gt_top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = gt_top_of_page
    *     I_LOGO                   =
    *     I_END_OF_LIST_GRID       =
    ENDFORM.
    Regards
    Tamá

  • Camera.get(); in the main.asc file...

    I have an mpeg card on the same machine as the Flash Media
    Server.
    Does anyone know of a way I can have the mpeg card's "Camera"
    object available without having to create a Broadcaster type swf?
    I'd like to serve it via the main.asc if I can. Any suggestions?
    Thank you,
    Clint

    Hello , the Camera opject is a client Side i dont think it
    will work at the Server side

  • Main.asc server side script not working

    Here the simple script i put at server seem like is not working also enclosed screenshot for the adminconsole
    my server side file main.asc save at /opt/adobe/fms/application/playtechmnflive/
    my doing FMS edge server.
    application.allowDebug= true;
    application.onAppStart = function(){
            this.eventTime = (new Date().valueOf() + 10000);
            this.timer_int = setInterval(checkForEvent, 1000, this);
    function checkForEvent(app){
            var now = new Date().valueOf();
            if(now > app.eventTime) {
                    trace("something");
            }else{
                    trace("damn");

    The script is fine (at least i assume u want the timer working with no errors). The thing is that u can't put any code nor apps on the edge node. Put it on the origin and hook up your edge to that origin.

  • FMS -  Main.asc

    Hello,
    I have an application I created, it`s a video recording applications and one audio recording application.
    like this:
    rtmp://localhost/recorder
    What main.asc file I need to put in this folder? do I need to do modifications to the file to work with my application?
    On the samples folder I know there are one main.asc for eache application. is it OK to use one of that?
    Thanks

    Hey Jeff,
    You can make changes to the sample main.asc files provided to suit your requirments or you can create your own. And place it in the folder that you created.

  • Where do I place main.asc?

    Hi~ all.
    I placed main.asc in /FMS/webroot/main.asc
    This is not working.
    so I placed here.
    /FMS/webroot/MyApplication/main.asc
    This also is not working.
    The path is correct?
    How can FMS recognize main.asc file?
    Thanks in advanced.

    To connect to an application, the server must know that the application exists. This process is called registering the application with the server. To register an application with the server, create a folder for the application in the applications folder. For example, create the following folder to register an application called "myApplication":
    RootInstall/applications/myApplication

  • Missing main?

    I get an error when I run this program that says "missing method body or declare abstract", and the arrow points to the m in main. I can't seem to figure out what the problem is. I've tried switching the order of the main and the method, and that didn't help (just though I'd try it; I had no idea what to do).
    import java.io.*;
    import java.lang.Math;
    import java.text.DecimalFormat;
    class Powers {
    public static void main(String[] args)
        throws IOException;
      BufferedReader inKeyBoard;
      inKeyBoard = new BufferedReader(new InputStreamReader(System.in));
      DecimalFormat fmt = new DecimalFormat("0.##");
      int base, exp;
      do{
       System.out.print("Enter the base: (or 0 to exit) ");
       base = Integer.valueOf(inKeyBoard.readLine()).intValue();
       System.out.print("Enter the exponent: ");
       exp = Integer.valueOf(inKeyBoard.readLine()).intValue();
       System.out.println("Built-in funtion: " + fmt.format(Math.pow(base, exp)));
       System.out.println("MyPow: " + fmt.format(MyPow(base, exp)));
       while(base != 0);
      static double MyPow(double base, int exp){
        double answer;
        answer = Math.exp(exp * Math.log(base));
        return(answer );
    }

    Do you take the error when you run or when you compile? Frankly, I'm not sure that this class will compile as it is. Check the extraneous semi-colon at the end of
    public static void main(String[] args) throws IOException;
    This throws the compiler off and makes it think it is an abstract method.

  • Mysterious missing project.

    This never happened in 5 years of using FCP7 and I am sure I have done nothing wrong. I opened a library from Sept 2014 and went to an event to open a project which I know I edited because I exported t to disc as a Pro Res file. Anyway the project has completely vanished into thin air. All the other projects in that library are all intact. Is there anyway of searching for a "lost" or has anyone got any idea where it could have gone project?
    Thanks for any advice or theories?

    The mystery now deepens. I have a new library with 10 or so events, each one represents a Part1 and a Part 2 of a show. I have just looked at a show (Pt 1 &2 events) and found the project blank for Part 1 and no clips showing and Part 2 project is perfect with all the clips in the project, BUT NO CLIPS showing  in the box underneath, but they all exist in the time line. All the other events in the library are perfect. I just edited the missing one 2 days ago. Luckily I always export the master immediately after I have edited it. I cannot see what I am doing wrong, since surely the problem would repeat itself, but it seems so random.

Maybe you are looking for

  • Error in Bootstrap

    Hi, I have J2EE add-in will install a own Abap stack on the NW04S. Step "start Java Engine" error on the bootstrap DWEBMGS\work\....bootstrap.log. Detail log ; Exception occurred: com.sap.engine.bootstrap.SynchronizationException: Database initializa

  • Is it possible to Create Material Master without Profit Center ?

    Hai,       1) Is it possible to Create Material Master without Profit Center ?        2) How SAP System Validate Profit Center in material master. ? is it material Type wise ?       3) Whether PO Order Creation,GRN & MIRO Possible for those material

  • MAudio Delta 1010 PCI Digital Recording Rack Mount and Mac Pro

    A great digital audio rack-mount converter is MAudio's Delta 1010. It uses a PCI card for which I heard one could get a replacement PCI-X interface card, but such is not available for PCI-Express slots which are all the Mac Pro workstations have. Doe

  • Will Mac X 10.3 work on old Emac?

    I have a an old emac with Mac OS X 10.2.8 However, i need to put 10.3 or higher on and just wondered whether it would work? Emac 1Ghz PowerPC G4 Memory 512 MB Ram Hard Drive currently have 60G left Will it work?

  • Passing data from JAVASCRIPT to SAP database

    Hi Experts, Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table. Is it possible to pass data from JAVASCRIPT to SAP database table? Thanks in advance. Regards, Arindam