• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

haproxy weired error

Scheduled Pinned Locked Moved Cache/Proxy
7 Posts 3 Posters 2.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    rajbps
    last edited by Jun 10, 2018, 9:23 PM

    Hi Team,

    Can anyone please advise on this one. I have haproxy running for a while. Had exchange before and now have iredmail. My iphone sync and works well but can`t get my android phone to see the same server. According to syslog, here is the msg :

    Message: ip.addr.of.android:61105 [10/Jun/2018:22:10:38.434] HTTPS-merged Mail_https_ipvANY/mail 1/1/2 0 SD 2/2/2/2/0 0/0

    Can anyone advise please as I can`t work this one out

    Rajbps

    P 1 Reply Last reply Jun 10, 2018, 9:53 PM Reply Quote 0
    • P
      PiBa @rajbps
      last edited by Jun 10, 2018, 9:53 PM

      Well.. haproxy manual says this for your SD state..:

           SD   The connection to the server died with an error during the data
                transfer. This usually means that haproxy has received an RST from
                the server or an ICMP message from an intermediate equipment while
                exchanging data with the server. This can be caused by a server crash
                or by a network issue on an intermediate equipment.
      

      As for the 2 millisecond total connection time and 0 byte reply from the server.. it doesn't look like much happened there..

      I think your haproxy does not do anything with the traffic like offloading/re-encrypting right? Just plain 'tcp' through frontend>backend>server

      What do the iredmail logs say.?
      When not going through haproxy the phone can connect to the iredmail directly without issue?

      1 Reply Last reply Reply Quote 0
      • R
        rajbps
        last edited by Jun 11, 2018, 12:02 AM

        Hi PiBa,

        There is no error on Iredmail logs hence I am going crazy. I know that haproxy is stable and working as the iphone goes through fine. If I go on the lan and then connect the android phone, it works so most likely the issue is something between the way the android phone is trying to get the data :-(

        The proxy is set to plain tcp through. Would you like me to pm you the config just in case you can spot an error. Iredmail uses SOGo for eas for the phones connection.

        1 Reply Last reply Reply Quote 0
        • P
          PiBa
          last edited by Jun 11, 2018, 5:26 PM

          Hi rajbps,

          If you can PM me the config thats okay ill take a look at it. (not sure yet how PM works in this new forum..)

          As for diagnosing the issue, perhaps try and tcpdump the traffic, on both wan and lan sides of haproxy and see if any 'data' passed in is also being send out on the other side? (check tcp data lengths, not just the 'packet count', as that could validly be different..)

          1 Reply Last reply Reply Quote 0
          • J
            joebarrero
            last edited by Nov 23, 2019, 3:20 PM

            @PiBa Did you ever resolve the SD errors?

            P 1 Reply Last reply Nov 24, 2019, 5:55 PM Reply Quote 0
            • P
              PiBa @joebarrero
              last edited by Nov 24, 2019, 5:55 PM

              @joebarrero
              i dont recall the specifics about rajbps his issue.. its been over a year! , but afaik there is no issue with haproxy itself..

              J 1 Reply Last reply Nov 24, 2019, 9:49 PM Reply Quote 0
              • J
                joebarrero @PiBa
                last edited by Nov 24, 2019, 9:49 PM

                @PiBa Thank you for your response. I was asking because I am experiencing a similar issue using PostgreSQL 11 on the back end. Every time we close the session, HAProxy logs an error with a termination state of SD. I'm just curious if it's a configuration issue with either HAProxy or PostgreSQL. If it's a harmless error, then is there any way to suppress the error in the log?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  [[user:consent.lead]]
                  [[user:consent.not_received]]