GithubHelp home page GithubHelp logo

Comments (28)

graygnuorg avatar graygnuorg commented on August 30, 2024 1

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024 1

In the lack of further info, I'm closing that as completed.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

For that host, I can see them only twice, at 30 seconds from each other, but after those there are no more of them.

Regards,
Alessandro

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

Hello Sergey,
Sep 3 07:07:42 pound-101 pound[969]: (7fe30fca7640) connect_nb: error after getsockopt: Connection refused
Sep 3 07:08:12 pound-101 pound[969]: (7fe312ce5640) connect_nb: error after getsockopt: Connection refused

and after that timestamp no more.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

Yes, it is (apparently) the only one.
We have other services that get restarted daily but the work fine.
The main difference is that this is a Tomcat on a Windows system and not on Linux.
The configuration is utterly simple:

        Service
                HeadRequire "Host: .*REDACTED*"
                URL ".*/XXX/YY/ZZZ.*"

                BackEnd
                        Address REDACTED
                        Port 8280
                End
        End

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

I indeed have Control configured but never used poundctl.
If you agree, you can close this issue as "not planned" while I'll be monitoring the problem and eventually get back to you.

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024

I ran into the same issue recently. It was a linux backend. Had to restart pound for the fix.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024

In my case this is pound (pound) 4.6.90.
Have 9 backend services in total, each with one backend configured.
The affected part of the config:

ListenHTTP
	Service
		Host "my.domain.tld"
		Redirect 301 "https://my.domain.tld"
	End
End

Service
	Host "my.domain.tld"
	BackEnd
		Address 192.b.x.y
		Port    zzzzz
		WSTimeOut	60
	End
End

It happened that the host at 192.b.x.y (a qemu VM) was unproperly killed. After a reboot, pound didn't see it anymore.
Could be something tricky probably from the network side, as there was surely no proper announcement to the network that the host is going down. I only noticed after several days, that although the host is up and reacheable by is internal IP, it's not accessible through pound.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

Was there anything in the pound log? Things of interest are messages beginning with "connect_nb", or any error messages?

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

After many attempts I had finally been able to reproduce this behavior. To make sure I'm on the right track, I need the following info:

  1. Is pound running as daemon or foreground program (the Daemon configuration setting)?
  2. The value of LogLevel setting
  3. Command line options with which pound is started.

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024
  1. No Daemon configuration specified in the config file (according to the doc, it runs as daemon as default)
  2. LogLevel 0
  3. no command line options, it's invoked by the rc.d script as /usr/local/sbin/pound

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

Thanks. Then, I suppose, you should have seen several connect_nb: messages in your pound log, and then nothing up to the moment of pound restart. Is that so?

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024

Yep indeed, hundreds of them:

Time Process PID Message
Sep 12 15:45:28 pound 9032 (800a79d00) connect_nb: error after getsockopt: Connection refused
Sep 12 15:45:13 pound 9032 (800a79d00) connect_nb: error after getsockopt: Connection refused
Sep 12 15:44:58 pound 9032 (800a79d00) connect_nb: error after getsockopt: Connection refused
Sep 12 15:44:43 pound 9032 (800a79d00) connect_nb: error after getsockopt: Connection refused
Sep 12 15:44:28 pound 9032 (800a79d00) connect_nb: error after getsockopt: Connection refused
...

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

Ok. Last (hopefully) question: what was the time difference between last of them and the time when you restarted pound?

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

I have a (maybe) new insight: the backend that does not get resurrected is used multiple times in different listeners.
Today, I got the following status (grepped from poundctl):

    0. backend http 192.168.0.61:8280 5 alive active
    0. backend http 192.168.0.61:8280 5 alive active
    0. backend http 192.168.0.61:8280 5 dead active
    0. backend http 192.168.0.61:8280 5 alive active

As always I had to restart pound to get it 'alive' again. Using 'poundctl disable/enable' did not work.

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024

Ok. Last (hopefully) question: what was the time difference between last of them and the time when you restarted pound?

Didn't catch that info. Logs rotated since then...

But I guess it was continuous flood until restart.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

from pound.

StomproLARL2023 avatar StomproLARL2023 commented on August 30, 2024

Hello, I think I'm also noticing this issue.

pound 4.9
Launched from systemd

One interesting thing is that the websocketd backend was redetected as alive once its server was brought back up, but the http and https services were not.

Set 3 backends for 3 services, https, http and websockets on port 7682.

Only had one live backend server but entries for the future ones were added. Only the active ones showed as alive. Brought up the new backend server and pound only detected that the websockd service was back up. http and https just showed "dead active".

Tried using poundctl to disable and enable them, but that didn't seem to help.

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

Yes, at least one of them responded to requests while the other was dead.
The web server hosting the backends is restarted every morning at about 7AM so the connect_nb message is always at that time, regardless of when I restart pound.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

Thanks for the feedback. Please try commit bfd8c1d.

from pound.

graygnuorg avatar graygnuorg commented on August 30, 2024

@abaldoni , @nagyrobi , Any news?

from pound.

nagyrobi avatar nagyrobi commented on August 30, 2024

Not yet, as I need to set up environment to compile under bsd.

from pound.

abaldoni avatar abaldoni commented on August 30, 2024

I deployed the commit last saturday and, as of today, we experienced no problems at all. 👍

from pound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.