superset icon indicating copy to clipboard operation
superset copied to clipboard

ConnectionRefusedError in runlog

Open forvendettaw opened this issue 8 years ago • 10 comments

Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/gunicorn/instrument/statsd.py", line 121, in _sock_send self.sock.send(msg) ConnectionRefusedError: [Errno 111] Connection refused

forvendettaw avatar May 24 '18 06:05 forvendettaw

Hello @forvendettaw, we are having the same error, did you finally managed to understand it ?

JulieRossi avatar Jul 04 '18 14:07 JulieRossi

I'm getting the exact same error while running gunicorn and statsd on the same machine.. However I'm being able to send messages to statsd via command line !

adnanshussain avatar Aug 29 '18 08:08 adnanshussain

OK. Found the issue. I was trying to send stats to port 8126 which is a TCP port, I was supposed to send them to 8125 which is a UDP port.

adnanshussain avatar Aug 29 '18 08:08 adnanshussain

OK. Found the issue. I was trying to send stats to port 8126 which is a TCP port, I was supposed to send them to 8125 which is a UDP port.

I have the exact same problem... do you have any solution..? I am new with this superset...

syafiqdante avatar Jul 22 '19 08:07 syafiqdante

Any who solve this problem?

cryptorevizor avatar Sep 05 '20 21:09 cryptorevizor

@adnanshussain how did you solve this? I am having the same error while running on aws.

tuhinsharma121 avatar Jun 11 '21 14:06 tuhinsharma121

Mine is configured to send stats to 8125, but I still get this error

--statsd-host localhost:8125

fccoelho avatar Jul 30 '21 14:07 fccoelho

Hi there, If you have faced with the same issue:

File "/usr/local/lib/python3.10/site-packages/gunicorn/instrument/statsd.py", line 121, in _sock_send
self.sock.send(msg)
ConnectionRefusedError: [Errno 111] Connection refused

after running next command from https://superset.apache.org/docs/installation/configuring-superset/#running-on-a-wsgi-http-server

      gunicorn -w 10 \
      -k gevent \
      --worker-connections 1000 \
      --timeout 120 \
      -b  0.0.0.0:6666 \
      --limit-request-line 0 \
      --limit-request-field_size 0 \
      --statsd-host localhost:8125 \
      "superset.app:create_app()"

Just use next command:

gunicorn -w 10 \
      -k gevent \
      --worker-connections 1000 \
      --timeout 120 \
      -b  0.0.0.0:8080 \
      --limit-request-line 0 \
      --limit-request-field_size 0 \
      "superset.app:create_app()"

Line --statsd-host localhost:8125 \ needs to be removed. Enjoy:)

yaroshoris avatar May 27 '23 03:05 yaroshoris

I am having the same issue

challenger009 avatar Apr 30 '24 07:04 challenger009

Any solution Im getting the same error

cbrianbet avatar Jun 28 '24 08:06 cbrianbet