Results 1 to 10 of 10

Thread: Query a httpprovider after the session is rejected

  1. #1
    Join Date
    Aug 2012
    Posts
    25

    Default Query a httpprovider after the session is rejected

    hi,

    I've built up a simple silverlight player to stream some videos from wowza(ver. 3.1.2), and I'm currently trying to identify the source which causes player failing to receive subsequent data, such as broken network connection or being rejected by a custom authentication module hooked on wowza.

    When the player meets this failure, it makes an additional http request to a simple http provider which records rejected sessions to ask if current session is rejected. But the request seems to fail to reach the provider. To clarify, I made another request to "HTTPServerVersion", and it also failed without any logs showed up. I don't think these requests arrived, http port 80 somehow seemed not available at this certain point.
    At first I thought it was the player state "closed" that cause the availability, but I tried to send the request at the player initialization, which is also in "closed" state, it worked fine. Then I tried changing the destination to an IIS server, it worked fine too.

    Finally I tried another port 554, it worked...

    I'm wondering if port 80 would be in some kind of unavailable state after current session was rejected, cause I cannot request any http providers at that time point.

    Any ideas about this weird situation?


    weichung
    Last edited by weichung; 09-26-2013 at 03:58 AM.

  2. #2
    Join Date
    Aug 2012
    Posts
    25

    Default

    Anyone?

    I used 8080 as the substitution of 80, and currently it works fine.
    But I still wonder why this happened.


    weichung

  3. #3
    Join Date
    Jun 2012
    Posts
    722

    Default

    Hi,

    Do you have some other service running on port 80, on the server where Wowza is installed?
    Did you configure your Wowza server to bind to port 80 as well?
    You can specify additional ports you want yoyr Wowza server to run on, by editing the [wowza-install-dir]/conf/VHost.xml file. Take a look at this article for more detailed information: http://www.wowza.com/forums/content....addtionalPorts

    Zoran

  4. #4
    Join Date
    Aug 2012
    Posts
    25

    Default

    Hi zoran,
    I've checked the ports on the server using netstat, no other services were using port 80 but wowza. And I'm sure that 80 port is correctly bound to wowza.
    Thanks for your help.


    weichung

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    weichung,

    Can you re-start Wowza and show the startup lines in the access log? Wowza will show what ports it binds to in the startup lines. Look at the bottom of the file, at the most recent startup if there are more than one.

    Richard

  6. #6
    Join Date
    Aug 2012
    Posts
    25

    Default

    Hi Richard,

    the latest start-up record is as below, wowza stays on till now.
    hope this helps.

    #Version: 1.0
    #Start-Date: 2013-09-25 15:28:55 TST
    #Software: Wowza Media Server 3.1.2 build1624
    #Date: 2013-09-25
    #Fields: date   time    tz      x-event x-category      x-severity      x-status        x-ctx   x-comment       x-vhost x-app  
    
     x-appinst       x-duration      s-ip    s-port  s-uri   c-ip    c-proto c-referrer      c-user-agent    c-client-id     cs-
    
    bytes        sc-bytes        x-stream-id     x-spos  cs-stream-bytes sc-stream-bytes x-sname x-sname-query   x-file-name     
    
    x-file-ext      x-file-size     x-file-length   x-suri  x-suri-stem     x-suri-query    cs-uri-stem     cs-uri-query
    2013-09-25      15:28:55        TST     server-start    server  INFO    200     Wowza Media Server 3 Perpetual Edition 3.1.2 
    
    build1624  -       -       -       -       0.674   -       -       -       -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Server License Key: SVRP3-XXXXX-XXXXX-XXXXX-
    
    XXXXX-EAXHW -       -       -       0.676   -       -       -       -       -       -       -       -       -       -       -  
    
         -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Maximum Connections: Unlimited  -       -      
    
     -       0.676   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Transcoder Streams Available: 0 -       -      
    
     -       0.681   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Transcoder Watermark: Yes       -       -      
    
     -       0.682   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       nDVR Available: No      -       -       -      
    
     0.683   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       DRM Available: No       -       -       -      
    
     0.683   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Hardware Available Processors: 8        -      
    
     -       -       0.684   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Hardware Physical Memory: 177MB/3017MB  -      
    
     -       -       0.686   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Hardware Swap Space: 3813MB/4000MB      -      
    
     -       -       0.686   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Max File Descriptor Count: 20000        -      
    
     -       -       0.687   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Open File Descriptor Count: 62  -       -      
    
     -       0.688   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       OS Name: Linux  -       -       -       0.688  
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       OS Version: 2.6.18-308.8.1.el5  -       -      
    
     -       0.689   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       OS Architecture: amd64  -       -       -      
    
     0.69    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Name: Java HotSpot(TM) 64-Bit Server VM   
    
     -       -       -       0.69    -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Vendor: Oracle Corporation -       -      
    
     -       0.691   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Version: 1.7.0_21  -       -       -      
    
     0.691   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java VM Version: 23.21-b01      -       -      
    
     -       0.692   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Spec Version: 1.7  -       -       -      
    
     0.693   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Home: /usr/java/jdk1.7.0_21/jre    -      
    
     -       -       0.693   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Max Heap Size: 1777MB      -       -      
    
     -       0.694   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Architecture: 64   -       -       -      
    
     0.695   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Locale[user.language]: zh  -       -      
    
     -       0.695   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Locale[user.country]: TW   -       -      
    
     -       0.696   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Locale[file.encoding]: UTF-8       -      
    
     -       -       0.696   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Timezone[user.timezone]: Asia/Taipei      
    
     -       -       -       0.697   -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[0]: -Xmx2000M -       -       -      
    
     0.698   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[1]: -Djava.net.preferIPv4Stack=true  
    
     -       -       -       0.698   -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[2]: -
    
    Dcom.sun.management.jmxremote=true       -       -       -       0.699   -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[3]: -
    
    Dcom.wowza.wms.runmode=standalone        -       -       -       0.699   -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[4]: -
    
    Dcom.wowza.wms.native.base=linux -       -       -       0.7     -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[5]: -
    
    Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer       -       -       -       0.7     -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[6]: -Dcom.wowza.wms.ConfigURL=       
    
     -       -       -       0.701   -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Java Args[7]: -
    
    Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer    -       -       -       0.701   -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Server runmode: standalone      -       -      
    
     -       0.702   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Server native.platform: linux   -       -      
    
     -       0.703   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:55        TST     comment server  INFO    200     -       Server threads[h/t]: 10/10      -       -      
    
     -       0.703   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:57        TST     comment server  INFO    200     -       CMDInterface now listening: [any]:8083  -      
    
     -       -       2.402   -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     vhost-start     vhost   INFO    200     _defaultVHost_  -       -       -       -      
    
     3.176   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       _defaultVHost_ threads[h/t]:120/80 
    
    home:/usr/local/WowzaMediaServer     -       -       -       3.245   -       -       -       -       -       -       -       - 
    
          -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       
    
    -       -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind attempt 
    
    (xxxxxxxx.xxxxxxxx.xxx:1935:4)     -       -       -       3.249   -       -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  
    
         -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind successful 
    
    (xxxxxxxx.xxxxxxxx.xxx:1935)    -       -       -       3.256   -       -       -       -       -       -       -       -      
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind attempt 
    
    (xxxxxxxx.xxxxxxxx.xxx:80:4)       -       -       -       3.259   -       -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  
    
         -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind successful 
    
    (xxxxxxxx.xxxxxxxx.xxx:80)      -       -       -       3.261   -       -       -       -       -       -       -       -      
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind attempt 
    
    (xxxxxxxx.xxxxxxxx.xxx:554:4)      -       -       -       3.261   -       -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  
    
         -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind successful 
    
    (xxxxxxxx.xxxxxxxx.xxx:554)     -       -       -       3.263   -       -       -       -       -       -       -       -      
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind attempt 
    
    (xxxxxxxx.xxxxxxxx.xxx:8086:1)     -       -       -       3.264   -       -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  
    
         -
    2013-09-25      15:28:58        TST     comment vhost   INFO    200     _defaultVHost_  Bind successful 
    
    (xxxxxxxx.xxxxxxxx.xxx:8086)    -       -       -       3.265   -       -       -       -       -       -       -       -      
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       Server.startShutdownHook: Start server 
    
    shutdown hook    -       -       -       3.269   -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache] Wowza 
    
    MediaCache AddOn 2.0.0 build1789 -       -       -       3.271   -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -    
    
       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache]: Add store: 
    
    path:/home/wowzacache maxSize:214748364800 -       -       -       3.334   -       -       -       -       -       -       -   
    
        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  
    
         -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache]: Add source
    
    [content1]: prefix:content1/ basePath:/usr/local/WowzaMediaServer/content/  -       -       -       3.351   -       -       -  
    
         -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       - 
    
          -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache]: Flushing 
    
    cache: start -       -       -       3.356   -       -       -       -       -       -       -       -       -       -       - 
    
          -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache]: Flushing 
    
    cache: done  -       -       -       3.367   -       -       -       -       -       -       -       -       -       -       - 
    
          -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       MediaCacheImpl.start[MediaCache]: Start 
    
    MediaCache GC   -       -       -       3.367   -       -       -       -       -       -       -       -       -       -      
    
     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2013-09-25      15:28:58        TST     comment server  INFO    200     -       Wowza Media Server is started!  -       -      
    
     -       3.369   -       -       -       -       -       -       -       -       -       -       -       -       -       -     
    
      -       -       -       -       -       -       -       -       -       -       -
    sorry I need to cover up the server domain name.

    thanks for the reply.



    weichung

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You are binding to port 80. If you have specified an IpAddress in the same VHost.xml /HostPort /IpAddress, you will have to use that IP.

    Have you tested the HTTPProvider over port 80 from a browser, instead of from the Silverlight app? It should work over port 80.

    Richard

  8. #8
    Join Date
    Aug 2012
    Posts
    25

    Default

    Hi Richard,

    I've tested the HTTPServerVersion provider over port 80, and it worked as you said.
    What's bothering me is that the unavailability only happens after the rejection takes place, and neither silverlight app nor browser requests work.


    weichung

  9. #9
    Join Date
    May 2013
    Posts
    680

    Default

    Some questions to follow up:

    - When the rejection takes place, does Wowza have any correlating logs?
    - Is it still running otherwise?
    - Can you add more logging to your HTTP Provider to ensure its just not stopping before any action occurs?
    - When requesting via the browser, are you getting a 404 error (or what status code)?

  10. #10
    Join Date
    Aug 2012
    Posts
    25

    Default

    Hi matt,

    When rejection takes place, Wowza prints logs of stream stop/destroy as usual, so I'm sure Wowza is still alive.
    I didn't see any response in browser, and neither any logs in Wowza at that time, requests to provider didn't seem to arrive. It seemed there were something wrong with Wowza or its providers. But this only happens when I use 80 as the port of HTTP providers, other ports such as 1935, 554 and 8080 all work fine.


    weichung

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •