FFMPEG probs overread skip

Hello. When encoding a video for my android phone with ffmpeg I get a lot of overread-messages and a blurred playback. I use this command: ffmpeg -i myfile.avi -vcodec mpeg4 -s 480x262 myoutputfile.mp4. I don't need to convert sound. The sound is mp3.

When running command from first answer I get a video with acceptable video. Trying to use DrZaius twopass command fails.
Pass 1 runs to an end but when pass 2 starts I get this output:
Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 23.98 (24000/1001)
Input #0, avi, from 'Amarcord1.avi':
  Duration: 01:08:19.84, start: 0.000000, bitrate: 1443 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 496x272 [PAR 1:1 DAR 31:17], 23.98 tbr, 23.98 tbn, 30k tbc
    Stream #0.1: Audio: mp3, 24000 Hz, 2 channels, s16, 56 kb/s
[libx264 @ 0x1b3a1e0]width or height not divisible by 16 (480x262), compression will suffer.
[libx264 @ 0x1b3a1e0]using SAR=214/215
[libx264 @ 0x1b3a1e0]frame MB size (30x17) > level limit (396)
[libx264 @ 0x1b3a1e0]VBV buffer (3000) > level limit (2000)
[libx264 @ 0x1b3a1e0]MB rate (12227) > level limit (11880)
[libx264 @ 0x1b3a1e0]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x1b3a1e0]direct=auto not used on the first pass
[libx264 @ 0x1b3a1e0]profile Baseline, level 1.3
[mp4 @ 0x1b31fe0]track 1: codec frame size is not set
Output #0, mp4, to 'amar1.mp4':
    Stream #0.0: Video: libx264, yuv420p, 480x262 [PAR 214:215 DAR 10272:5633], q=10-51, pass 2, 512 kb/s, 24k tbn, 23.98 tbc
    Stream #0.1: Audio: libmp3lame, 24000 Hz, 2 channels, s16, 56 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
[jan@acer Amarcord]$

Similar Messages

  • Probe skipping

    Hello,
    I am running into a rather interesting issue and I was curious if anyone may have seen it before or if anyone had any insight into what the problem could be.  On one of my ACE 4710's (running sw A5(1.2) , I am running a fairly large number of layer 7 probes (71) across both 80 and 443.  At seemingly random points in the day, the system reports that the probes are being skipped due to an internal error.  I have seen this before when the system runs out of sockets for the probes, but I am not seeing any indication that is the case.
    Here is an example probe config:
    probe https CHECK-SOME-SITE
      port 443
      interval 10
      faildetect 2
      passdetect interval 30
      receive 5
      ssl version all
      request method get url /some/url
      header Host header-value "www.somesite.com"
      expect regex "SOMEREGEX"
    Here is the relevant output from ''show probe detail'
         real      : some-rserver
                              x.x.x.x  443 PROBE   3093610 1749563 1344047 SUCCESS
       Socket state        : CLOSED
       No. Passed states   : 49         No. Failed states : 49
       No. Probes skipped  : 479         Last status code  : 200
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err :  -
       Last probe time     : Tue Mar  4 16:45:03 2014
       Last fail time      : Fri Feb 28 13:30:37 2014
       Last active time    : Mon Mar  3 22:08:53 2014
    Here are the log messages that are popping up:
    Mar  4 2014 14:36:41 : %ACE-3-251014: Could not probe server x.x.x.x on port 443 for 4 consecutive tries - Internal error
    The log messages appear for all rservers being probed for about 30 seconds, then they go away until the next event.  Considering the probes are skipped, I do not believe this is actually causing failures at the moment.  I have read that the ACE platform can only run 200 concurrent scripted probes, however I am at a loss as to how to check if that is what I am running into here.  The real confusing thing here is the lack of internal error and out of socket counters. 
    Any help or insight would be very appreciated.  Thanks in advance.
    -Ed

    Hi Ed,
    Two things:
    Number of skipped probes. A skipped probe occurs when the ACE does not send out a probe because the scheduled interval to send a probe is shorter than it takes to complete the execution of the probe; the send interval is shorter than the open timeout or receive timeout interval.
    In your case the interval is 10 which is little aggressive but still less than receive. But if the probe execution is greater than 10 seconds you may see probes getting skipped. Increasing the interval time by another 10 seconds can be helpful for testing to see if this mitigates the issue.
    If you have  UDP probes then you need to check this as well:
    For UDP probes or UDP-based probes, we recommend a time interval value of 30 seconds. The reason for this recommendation is that the ACE data plane has a management connection limit of 100,000. Management connections are used by all probes as well as Telnet, SSH, SNMP, and other management applications. In addition, the ACE has a default timeout for UDP connections of 120 (ACE module) or 15 (ACE appliance) seconds. This means that the ACE does not remove the UDP connections even though the UDP probe has been closed for two minutes. Using a time interval less than 30 seconds may limit the number of UDP probes that can be configured to run without exceeding the management connection limit, which may result in skipped probes
    Are you running any scripted probes?
    It could be a stupid bug as well but i would suggest increasing the interval timeout and see how it goes.
    You can also alo try debug hm errors/events/all etc and see if you get any detailed output there which can be sent to TAC for further investigation.
    Regards,
    Kanwal

  • JMF/FOBS4JMF FramePositioningControl Problem

    Hi everyone...
    i'm really fed up with a bug.. i'm playing video file usinf jmf/fobs4jmf 4.1 on ubuntu 8.04 the problem i face is when i seek or skip using FramePositioningControl
    ... it skips alot of frames does not move to specified frame.. it works fine on windows...
    heres output of a program i wrote
    Fobs Java2DRenderer: stop
    Resetting Thread[Loop thread: com.omnividea.media.parser.video.VideoTrack@1df5a8f,3,system]
    Opening Thread[Loop thread: com.omnividea.media.parser.video.VideoTrack@1df5a8f,3,system]
    599.067First Position: 0, 0 Duration: 599066
    Frame Rate: 15
    Setting position Thread[AWT-EventQueue-0,6,main]
    New position request: 45.9214
    Seeking pos: 45921 - Real: 44921000
    mdb:466, lastbuf:0 skiping granule 0
    mdb:466, lastbuf:0 skiping granule 1
    mdb:478, lastbuf:397 skiping granule 0
    Fobs Java2DRenderer: start
    mdb:461, lastbuf:458 skiping granule 0
    bits_left=189
    bits_left=35
    bits_left=-5
    mdb:509, lastbuf:493 skiping granule 0
    overread, skip -9 enddists: -3 -3
    overread, skip -4 enddists: -2 -2
    bits_left=178
    mdb:474, lastbuf:461 skiping granule 0
    overread, skip -6 enddists: -4 -4
    mdb:503, lastbuf:486 skiping granule 0
    bits_left=47
    Please help
    Edited by: Arsal on Feb 27, 2009 7:20 AM

    Arsal wrote:
    Ok fine i get the point but it is working fine on one system and not on another both Ubuntu 8.04 i dont know what i'm missing in the other system :(I'd reinstall everything on the system that doesn't work (and by everything, I mean JMF, FOBS, possibly Java, possibly your video codecs...) and make sure you're not having a permissions problem with any of the files...

  • Movies skip in drive/like stop-and-go motion; transcoded FFmpeg do same!?

    Hi folks. I have been ripping some DVDs as of late and I am in the midst of transfering them to Apple TV on my network. However I seem to have run into a problem.
    Today I went to rip a DVD and then loaded into iTunes and trans to Apple TV. I was noticing that it was skipping a bit on my TV - not smooth playing in other words.
    So I went back to my Macbook and started playing a disk in the Macbook DVD player and notices that when I play the movie stops and goes. Will play a second or two then stop then play then stop, almost like arecord skipping without missing any music. The drive seems to be a little noisier now too - making churning or turning noise as it reads and plays (skips).
    What could this be from? This wasnt happening yesterday - I was able to rip a couple that didnt have this problem. Is the superdrive bad now? is it a software issue? Do I need ot reset PRAM?
    Come to think of it I also was using FFMpeg to transcode some .avi movies into Apple TV compatible files and they didnt come out very well either, had to trash them. Since this is software based and not drive based, coul dmy issue be some setting or PRAM on Macbook itself rather than the drive?
    OK I'm confused now!
    Your help would be greatly appreciated!! as always...
    Jason

    So I dloaded VLC to play the movies before I rip them and I am getting the following errors for 2 different movies:
    main: decoder is leaking pictures, resetting the heap
    and
    main: INPUTCONTROL_SET_POSITION(OFFSET) 11.2% failed
    What do you think? Since I am not versed in this very wekk, is this a hardware or software issue? And how to remedy?
    Thanks
    Jason

  • Mediasource 5.10.38 mp3 track skipping prob

    Hi !
    I'm having a problem with Mediasource 5 since I upgraded to it.
    I was listening to mp3s of a stand up show by Henry Rollins, and Mediasource kept skipping to the next track even though there was still a minute or so of the track left to play.
    When I skip back to the track and drag the cursor, it plays the track fine, but the problem starts again with the next track...
    It didn't do that on every track, it only did it on tracks that are 7 minutes long minimum.
    I checked if everything was off (svm, crossfade...) and everything was.
    I ripped those mp3s from my CD with Mediasource, so I really have no clue what's going on.
    Any clue ?

    Are you playing the track from MediaSource's PC Music Library or from MediaSource's My Computer?

  • USB Soundblaster Midi skipping prob

    My midi sound in my USB soundblaster makes a crackling sound and when i play it back (after recording it), the crackling is recorded as if the midi file had skipped. Help?

    HAHAHAH BUMP!!!!:robotmad::robotmad::robotmad::robotmad::r obotmad::robotmad::robotmad::robotmad::robotmad::r obotmad::robotmad::robotmad::robotmad::robotmad::r obotmad::robotmad::robotmad::robotmad::robotmad::r obotmad::robotmad:

  • XtremeGamer Fatality Pro - Mic skipping/chopping prob

    Hi,
    Recently purchased the X-Fi XtremeGamer Fatalty Pro and I'm having a weird issue with the mic. Occasionally the microphone will begin to skip or chop, giving my voice a weird effect. It's usually resolved by changing modes back and forth or doing some random stuff in the sound mixer, although I haven't really found any solid solution. It will come back randomly after a few minutes, or several hours.
    I tried the latest drivers, as well as the base drivers included with the cd, and both have the issue. Onboard sound is turned off. Using XP 64. Any ideas?

    hi i getting same problem but iam on vista 64 u found out a fixx?

  • Zen Xtra weird skipping prob

    On my girlfriend's Zen Xtra 40gb, we have a really odd skipping problem. At seemingly random intervals, the player seems to insert split second sections of other songs into whatever's playing. It's really rather disconcerting. I've tried formatting and updating the firmware, but it's made no difference. Any ideas?

    I also have this player and "sometimes" mine has the same problem.
    The way i fix this is take out the "skipping" tracks out of "selected music" then put them back in and that will sort the problem. Well it does for me.
    thats the only thing i know what to do.
    Hope that hel
    ps.
    steven

  • Small prob in ignoring string want to skip 2nd value?

    Hi all,
    here CONSTRAINT Adept_Usr_Login NOT NULL ,
    i have three fixed but 2nd is dynamic how to do this here.
    if( tokens0.equalsIgnoreCase( "CONSTRAINT" ) && tokens2.equalsIgnoreCase( "NOT" ) &&
    tokens3.equalsIgnoreCase( "NULL" ) )
    // dataLines.append( " -- " );
    dataLines.append( "NOT " ).append("NULL ").append(" , ").append(" -- ");
    dataLines.append( dataLine ).append( '\n' );
    Can any one give proper suggestion what to de here.
    thanks
    Vijendra

    i don't know whether i will be properly displayable or not.
    import java.util.Enumeration;
    import java.io.*;
    import java.util.StringTokenizer;
    import java.sql.*;
    public class FileReading{
    public static void main(String args[]){
    String file="C:/Documents and Settings/vijendras/Desktop/sampleApplicationchngd.sql";
    //modified by vijendra for ignoring views and stored procedures on 11 Apr 2006
    try {
    // open the file for reading
    FileReader inputstream = new FileReader (file);
    BufferedReader rdr = new BufferedReader( inputstream );
    // the StringBuilder which stores the processed lines
    StringBuffer dataLines = new StringBuffer();
    // read the file line by line
    String dataLine;
    boolean pending=false;
    while((dataLine = rdr.readLine()) != null ) {
    // split the input data into words upto first 3 words only
    //String[] tokens = dataLine.split( " ", 3 );
    String[] tokens = dataLine.trim().split( " ", 3 );
    StringTokenizer st = new StringTokenizer(dataLine.trim()," ");
                        String tokens0 = "";
                        String tokens1 = "";
    if(st.hasMoreTokens()){
                             tokens0 = st.nextToken();
                        if(st.hasMoreTokens()){
                             tokens1 = st.nextToken();
    if (!pending) {
    // if the line starts with 'create' and a 'view' follows it,
    // then add a "--" to the beginning of the line
    if((tokens0.equalsIgnoreCase( "create" ) && tokens1.equalsIgnoreCase( "view" ) )||
    (tokens0.equalsIgnoreCase( "create" ) && tokens1.equalsIgnoreCase( "procedure" ))
                             //state #2
                             // dataLines.append( "-- " );
                             // dataLines.append( dataLine ).append( '\n' );
                             pending = true;
                   // added by vijendra for modifying CONSTRAINT NAME NOT NULL to NOT NULL on 30 June 2006
                        //System.out.println(tokens[ 0 ].trim()+"::::"+tokens[ 1 ].trim()+"::::"+tokens[ 2 ].trim());
    if( tokens[ 0 ].trim().equalsIgnoreCase( "CONSTRAINT") && tokens[ 2 ].trim().equalsIgnoreCase( "NOT NULL," ) ){
    dataLines.append( " NOT " ).append(" NULL ").append(" , ").append(" -- ");
    dataLines.append( dataLine ).append( '\n' );
              System.out.println( "Executed");
                             else {
                             //state #1
                             // you're not in a[nother] view/proc yet}
                                  //dataLines.append( "-- " );
                                  dataLines.append( dataLine ).append( '\n' );
                   if (pending) { // don't use 'else'
                        //line contains ';'
                   if (!dataLine.endsWith(";")) {
                                  //state #4
                                  // do whatever... you're finished
                             dataLines.append( "-- " );
                             dataLines.append( dataLine ).append( '\n' );
                                  else {
                             //     state #3
                                  //you're in continuation of view/proc
                                  //but haven't found end yet
                                  dataLines.append( "-- " );
                                  dataLines.append( dataLine ).append( '\n' );
                             pending = false;
         /*Note the 'if' I marked "don't use else" which allows the logic to fall through and catch both
         states #2 and #4 (start and end) on the same line.*/
    rdr.close(); // close the file
    inputstream.close();
    // open the file for writing new data to it
    FileWriter outputstream=new FileWriter( file );
    BufferedWriter writer = new BufferedWriter(outputstream);
    // write the new StringBuilder's data back to the file.
    writer.write( dataLines.toString(), 0, dataLines.length() );
    writer.close(); // close the file
    outputstream.close();
    } catch( IOException e ) {
    System.out.println("Exception"+e);
    out put of sql file is now this but it sholud be applied to all.
    CREATE TABLE Adept_User(
    Id NUMBER(10, 0)     NOT NULL,
    Login_Name VARCHAR2(30)
    NOT NULL , -- CONSTRAINT Adept_Usr_Login NOT NULL,
    First_Name VARCHAR2(35)
         CONSTRAINT Adept_Usr_First_name     NOT NULL,
    Last_Name VARCHAR2(35),
    User_Password VARCHAR2(10)
         CONSTRAINT Adept_Usr_Last_name     NOT NULL,
    User_Status NUMBER(10, 0)
         CONSTRAINT Adept_Usr_Status     NOT NULL,
    User_Type NUMBER(10, 0)
         CONSTRAINT Adept_Usr_Type     NOT NULL,
    Customer_Contact NUMBER(10, 0),
    Employee NUMBER(10, 0),
    Organization Number(10,0),
    Password_Modified_Date DATE,
    Currency_Master_Id NUMBER(10, 0),
    CONSTRAINT PK23 PRIMARY KEY (Id)
    CREATE TABLE Adept_User_Group(
    Id NUMBER(10, 0) NOT NULL,
    Adept_Group NUMBER(10, 0)
         CONSTRAINT Adept_Usr_Grp     NOT NULL,
    Adept_User_Name NUMBER(10, 0)
         CONSTRAINT Adept_Usr_name     NOT NULL,
    CONSTRAINT PK157 PRIMARY KEY (Id)
    CREATE TABLE Adept_User_Permission(
    Id NUMBER(10, 0)     NOT NULL,
    Adept_Screens NUMBER(10, 0)
         CONSTRAINT Adept_Usr_Perm_Scren     NOT NULL,
    Adept_User_Group NUMBER(10, 0)
         CONSTRAINT Adept_Usr_Grp     NOT NULL,
    Dashboard char(1),
    CONSTRAINT PK28 PRIMARY KEY (Id)
    sorry for inconvinience for reading this all.
    if there is some better way to show all plese tell me.
    Vjendra

  • 3rd Generation iPod - Connection and Skipping/Freezing Probs

    Over the last few months I've been having more and more problems. The first was the battery life on the iPod seemed dramatically reduced, whereas a fully charged iPod used to be able to be left in standby over night and still have charge in the morning it now doesn't. The next was connecting my iPod to the PC to only have it give me a Blue Screen of Death, with errors such as pagefault_in_nonpagedarea and mmpoolcorrupteddriver. I went online and checked out many articles in the Apple Knowledge Base and on other Mac Sites. I tried resetting my iPod and putting into disk mode, neither of which work.I also tried reinstalling iTunes 4.9 and using 5.0. I've tried it on another computer which crashed it too. More recently I've also been experiencing my iPod freezing and continuing step the progress bar on screen but no sound is produced. I wasn't initially a fan of Apple however the iPod caused me to change my mind. I thought it would be simple enough to talk to a support center however it was going to cost me £35 to just talk to someone. Can anyone help me or is my iPod just broken? I love the design and I am probably going to buy another one if this is broken.
    Note: The HDD also "clicks" and "whirrs" a lot more than usual when playing music
    Thanks in advance,
    Lewis

    The first was the battery life on the iPod seemed dramatically reduced, whereas a fully charged iPod used to be able to be left in standby over night and still have charge in the morning it now doesn't.
    This is reasonably normal. As iPod's get older, the battery life decreases.
    The next was connecting my iPod to the PC to only have it give me a Blue Screen of Death, with errors such as pagefault_in_nonpagedarea and mmpoolcorrupteddriver.
    This is a Windows issue only. The iPod is just a hard drive as far as the computer is concerned. It can't cause a blue screen without something being wrong with the computer itself. The "corrupted driver" is a bit of a giveaway too. Reinstalling Windows is probably the only option to fix this sort of thing.
    More recently I've also been experiencing my iPod freezing and continuing step the progress bar on screen but no sound is produced.
    Now this is more along the lines of a busted iPod. Might look into replacing it or getting it repaired by Apple.

  • ACE 4710 HTTP Probes

    Using the ACE 4710 for loadbalancing a Sharepoint site.
    We currently have a HTTP probe setup to check the port 80 status of the rserver.
    Is there anyway to get the HTTP probe to check a DNS entry for each of the application sites? For instance http://info vs http://site are two different web sites running on the same IP. One site could have a problem but the actual port 80 for the IP may be still alive.
    Thanks for any information.

    Has anyone figure this out?  I am tring to get healthchecks/probes setup in this same fashion.  I have 2 servers with 1 IP but have many sites.  I want to probe each side and ensure I get a 200 code.  I also have to provide credentials to the site.  It seems that if i open IE I can log in just fine to the site with the credentials.  However there is an active x control box that is wanting to be installed.  When I set this up on my ACE it seems I am getting a http 401 unauthorized error.  I have done a wireshark capture while I was browsing and I see the 401 however it also reports a 200 code after that.  Do you think this is a problem because of the active x control wanting to be downloaded?  Or is this an issue with the first http code that is recieved by the probe, that being the 401 and then the 200? Below is my config (cleaned of course).
    probe http HTTP-80-OUR.DOMAIN.COM
      interval 15
      passdetect interval 60
      credentials
      request method get url http://our.domain.com/default.aspx
      expect status 200 200
      header Host header-value "our.domain.com"
      open 1
    rserver host SERVER-A
      ip address X.X.X.47
      inservice
    rserver host SERVER-B
      ip address X.X.X.48
      inservice
    serverfarm host FARM-AB
      predictor leastconns
      probe HTTP-80-OUR.DOMAIN.COM
      rserver SERVER-A
        inservice
      rserver SERVER-B
        inservice
    ACE4710# show probe HTTP-80-OUR.DOMAIN.COM detail
    probe       : HTTP-80-OUR.DOMAIN.COM
    type        : HTTP
    state       : ACTIVE
    description :
       port      : 80      address     : 0.0.0.0         addr type  : -
       interval  : 15      pass intvl  : 60              pass count : 3
       fail count: 3       recv timeout: 10
       http method      : GET
       http url         : http://our.domain.com
       conn termination : GRACEFUL
       expect offset    : 0         , open timeout     : 1
       expect regex     : -
       send data        : -
                    ------------------ probe results ------------------
       associations ip-address      port  porttype probes   failed   passed   health
       ------------ ---------------+-----+--------+--------+--------+--------+------
       serverfarm  : OUR.DOMAIN.COM-10.25.4.12-L3-FARM
         real      : SERVER-A[0]
                    X.X.X.47      80    DEFAULT  414      406      8        FAILED
       Socket state        : CLOSED
       No. Passed states   : 1         No. Failed states : 2
       No. Probes skipped  : 0         Last status code  : 401
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err : Received invalid status code
       Last probe time     : Wed Jun  2 17:44:18 2010
       Last fail time      : Wed Jun  2 13:37:04 2010
       Last active time    : Wed Jun  2 13:34:19 2010
         real      : SERVER-B[0]
                    X.X.X.48      80    DEFAULT  414      406      8        FAILED
       Socket state        : CLOSED
       No. Passed states   : 1         No. Failed states : 2
       No. Probes skipped  : 0         Last status code  : 401
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err : Received invalid status code
       Last probe time     : Wed Jun  2 17:44:20 2010
       Last fail time      : Wed Jun  2 13:37:06 2010
       Last active time    : Wed Jun  2 13:34:21 2010

  • Zen Vision M Track Skipping

    okay, i got my ZVM, 2 days ago, and yesterday i put music on it, i thought.. great!! But then when i was listening to some of my songs, some songs just skipped foward to the next song, with me just lying down on my bed listening to it, ie. not moving..
    I have tryed The clean dri've thing in the reboot menu, i have updated the firmware, and i have took all the music off, and then on again, TWICE! my sister said that it sometimes happens to her Zen Touch 20GB when she puts masses and masses of muic on at one time, so i tryed only putting a few songs on it, but still it happened, does anybody have any suggestions, it might be my computer, but if it is not, i can still get it replaced, is there anything i can do to fix it's
    PLZ help...
    Thanks

    ToolkiT wrote:
    That sounds like problems with your Harddisk
    But it could be an incompatible MP3 too, does it happen to the same song all the time or are they random songs (if random it prob is your HD )
    It happens to the same song every time at the same place each time... which supports my hteory that it is my computer.
    "if all those clicks are all under 5 seconds thats bad. how long does it take for the hdd to stop spinning?"
    Well it take about 6 seconds for my hard dri've to stop spinning... the small clicks are quite rapid, and on the last loud click, thets when the hard dri've stops spinning...
    Any suggestions?

  • Issue with Scripted Probe for LDAP

    I have the script LDAP_PROBE loaded into memory on my ACE 4710 (A4(2.0)) and th Probe is name is configured for the LDAP port the servers are listening on. So here is th econfiguration.
    probe scripted LDAP_PROBE_3389
      port 3389
      interval 5
      passdetect interval 5
      passdetect count 2
      receive 5
      script LDAP_PROBE 3389
    I have tried removing the argument of 3389 at the bottom as well but I continue to get the result:
    real      : LDAP02[3389]
                    10.220.31.81    3389  PROBE    2491     2491     0        FAILED
       Socket state        : RESET
       No. Passed states   : 0         No. Failed states : 1
       No. Probes skipped  : 0         Last status code  : 30002
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err : Probe error: Server did not respond as expected
       Last probe time     : Thu Jul 12 16:24:41 2012
       Last fail time      : Thu Jul 12 12:56:59 2012
       Last active time    : Never
    The server log states this was successful however...
    Admin Acct Status: Not Locked
    AuditV3--2012-07-11-14:18:21.428+00:00DST--V3 anonymous Bind--bindDN: <*CN=NULLDN*>--client: 10.220.31.217:56908--connectionID: 8--received: 2012-07-11-14:18:21.428+00:00DST--Success
    name: <*CN=NULLDN*>
    authenticationChoice: simple
    Admin Acct Status: Not Locked
    Am I missing an argument? I have run debug on LDAP but really don't know what I am looking at...

    To update the script
    ==============
    Extract the Cisco-supplied LDAP script from the tar.gz or zip file. Rename it to something unique. Update it to use the
    new length and offset.
    Import the script into the LDAP contexts on both ACEs. Remember, scripts are not replicated and having mismatched scripts will cause replication to fail.
    ACE1/ldap# copy tftp: disk0:
    Enter source filename[]? UoN-LDAP_PROBE-iLDAP2
    Enter the destination filename[]? [UoN-LDAP_PROBE-iLDAP2]
    Address of remote host[]? [redacted]
    Trying to connect to tftp server......
    TFTP get operation was successful
    ACE2/ldap# copy tftp: disk0:
    Enter source filename[]? UoN-LDAP_PROBE-iLDAP2
    Enter the destination filename[]? [UoN-LDAP_PROBE-iLDAP2]
    Address of remote host[]? [redacted]
    Trying to connect to tftp server......
    TFTP get operation was successful
    script file 13 UoN-LDAP_PROBE-iLDAP2
    If you look at (for example) packet 651 in the capture in wireshark you'll see a
    successful bind response. You will need to tell wireshark to decode the packet as LDAP.
    The payload is:
    30 84 00 00 00 10 02 01 01 61 84 00 00 00 07 0a 01 00 04 00 04 00
    You need to have a basic understanding of ASN.1 and something called Basic Encoding Rules (BER) - whicj comes down to TLV format structures.
    The key to understanding this output is that there are three ways of specifying a length in ASN.1. The first way we have already seen in the Cisco script is to use a single byte. This known as the "definite" form and can be used for lengths of 127 bytes or less. Otherwise if the high bit is set to one, the low seven bits define the length of length. The length is then encoded in that many bytes. This is the "length of the length field" form. It looks like Microsoft Active Directory uses the indefinite form for all length encoding. The third form (for completeness is "indefinite" where the length is coded as x'80' and the end of the content is marked by x'0000'. Deconstructing the data:
    0x30    The start of a universal constructed sequence
    0x84    The length of the sequence in "length of the length" format. The next 4 bytes give the length.
    0x00000010    sequence length of 16 bytes
    0x02    Integer
    0x01    The length of the next field (1 byte)
    0x01    Value (this is the message ID which agrees with the ID in the BIND Request)
    0x61    Application, number 0, use RFC2251 to decode. This is a Bind Response
    0x84    The length of the sequence in "length of the length" format. The next 4 bytes give the length.
    0x00000007    bind response length of 7 bytes   
    0x0a    Enumeration
    0x01    Length 1
    0x03    0 - Success
    0x04    String
    0x00    Length 0 (null string)
    0x04    String
    0x00    Length 0 (null string)
    The patch given takes in 20 bytes from the bitstream,converts it into a hexadecimal string  and finds the 6 hexadecimal characters from the 16th byte onwards   (Tcl uses zero-based arrays). This is the response code.
    Kind Regards
    Cathy

  • HTTP probe issue with expect regex string

    Hello,
    We have a simple cgi status page setup to poll a background service and return a "PASS" or "FAIL" as output.  I've setup an HTTP probe to look for the "PASS" to determine application health.  The issue appears to be that the expect regex is searching the HEADER but not the BODY of the web page.  I can successfully match on any string in the header, but never on anything in the body.
    Here is what the web page returns if you telnet to it:
    HTTP/1.1 200 OK
    Date: Thu, 22 Sep 2011 22:45:07 GMT
    Server: Apache/2.0.59  HP-UX_Apache-based_Web_Server (Unix) DAV/2
    Content-Length: 4
    Connection: close
    Content-Type: text/plain; charset=iso-8859-1
    PASS
    Here is my probe:
    probe http JOE-TEST-CS
      interval 45
      passdetect interval 30
      receive 30
      request method get url /cgi-bin/ERMS-PREP-statusRepo.cgi
      expect status 0 999
      open 20
      expect regex "PASS"
    Here is the output of the show probe:
    ACE1/euhr-test-ace2# sh probe JOE-TEST-CS detail
    probe       : JOE-TEST-CS
    type        : HTTP
    state       : ACTIVE
    description :
       port      : 80      address     : 0.0.0.0         addr type  : -
       interval  : 45      pass intvl  : 30              pass count : 3
       fail count: 3       recv timeout: 30
       http method      : GET
       http url         : /cgi-bin/ERMS-PREP-statusRepo.cgi
       conn termination : GRACEFUL
       expect offset    : 0         , open timeout     : 20
       expect regex     : PASS
       send data        : -
                           --------------------- probe results --------------------
       probe association   probed-address  probes     failed     passed     health
       ------------------- ---------------+----------+----------+----------+-------
       serverfarm  : JOE-TEST-PROBE-CS
         real      : EUHRTDM50.APP[0]
                           192.168.73.71   2          2          0          FAILED
       Socket state        : CLOSED
       No. Passed states   : 0         No. Failed states : 1
       No. Probes skipped  : 0         Last status code  : 200
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err : User defined Reg-Exp was not found in Host Response
      Last probe time     : Thu Sep 22 15:00:36 2011
       Last fail time      : Thu Sep 22 15:00:36 2011
       Last active time    : Thu Sep 22 09:40:19 2011
    If I replace the expect regex "PASS" with anything from the HEADER it succeeds!
    Any thoughts?

    Sorry, I missed it.  The content-length in your request is 4.  I think this may be the issue.  I created a basic HTML page that says PASS in the body and my server is returning a content-length of 224 when I fetch the page.  Here is my HTML request:
    GET /index.html
    http-equiv="Content-Type">
      Probe
    PASS
    Here are my headers that I received:
    (Status-Line)    HTTP/1.1 200 OK
    Content-Length    224
    Content-Type    text/html
    Last-Modified    Tue, 27 Sep 2011 12:05:00 GMT
    Accept-Ranges    bytes
    Etag    "8cca60aed7dcc1:41f"
    Server    Microsoft-IIS/6.0
    Date    Tue, 27 Sep 2011 12:25:59 GMT
    What version of code are you running on your ACE?  I can also look to see if there are any known issues.
    Kris

  • ACE - TCP probe goes into INVALID state

    Hello,
    I have a problem with the following configuration of a sticky serverfarm with a backup serverfarm
    (this setup is ofcourse used only for failover purposes, not loadbalancing):
    probe tcp tcp-8888-probe
      port 8888
      interval 5
      faildetect 2
      passdetect interval 3
      passdetect count 1
    rserver host rsrv1
      ip address 10.1.2.10
      inservice
    rserver host rsrv2
      ip address 10.1.2.11
      inservice
    serverfarm host rfarm-primary
      predictor leastconns
      probe tcp-8888-probe
      rserver rsrv1 8888
        inservice
    serverfarm host rfarm-backup
      predictor leastconns
      probe tcp-8888-probe
      rserver rsrv2 8888
       inservice
    sticky http-cookie RFARM-COOKIE sticky-rfarm-1
      cookie insert browser-expire
      serverfarm rfarm-primary backup rfarm-backup
    etc....
    The problem is that every time probe state changes (from SUCCESS to FAIL or otherwise), the tcp-8888-probe on the server that changed
    the state of service, goes into INVALID state:
    #show probe tcp-8888-probe detail
    probe       : tcp-8888-probe
    type        : TCP
    state       : ACTIVE
    description :
       port      : 8888    address     : 0.0.0.0         addr type  : -
       interval  : 5       pass intvl  : 3               pass count : 1
       fail count: 2       recv timeout: 10
       conn termination : GRACEFUL
       expect offset    : 0         , open timeout     : 10
       expect regex     : -
       send data        : -
                           --------------------- probe results --------------------
       probe association   probed-address  probes     failed     passed     health
       ------------------- ---------------+----------+----------+----------+-------
       serverfarm  : rfarm-backup
         real      : rsrv2[8888]
                           10.1.2.11    291        0          291        SUCCESS
       Socket state        : CLOSED
       No. Passed states   : 1         No. Failed states : 0
       No. Probes skipped  : 0         Last status code  : 0
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err :  -
       Last probe time     : Thu Jun 17 22:12:31 2010
       Last fail time      : Never
       Last active time    : Thu Jun 17 21:48:21 2010
       serverfarm  : rfarm-primary
         real      : rsrv1[8888]
                           10.1.2.10    0          0          0          INVALID
       Socket state        : CLOSED
       No. Passed states   : 0         No. Failed states : 0
       No. Probes skipped  : 0         Last status code  : 0
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err :  -
       Last probe time     : Never
       Last fail time      : Never
       Last active time    : Never
    I have managed to get the probe into FAIL state again for a moment by removing it from serverfarm, and then reapplying, but in a few seconds it goes again from FAIL to INVAILD state, and stays in this state regardless of avaliability of probed TCP port. Only when i'm reapplying it when the port is avaliable/up, it can stay in SUCCESS state, and work till the failure of service, when INVALID state reappears.
    What can be the cause of such behavior ?
    thanks,
    WM

    Hello,
    It looks very similar to this bug: CSCsh74871
    You may need to collect a #show tech-support and do the following:
    -remove the serverfarm in question
    -reboot the ace module under a maintenance window.
    You may upgrade to a higher version since your version is kind of old.
    Jorge

Maybe you are looking for