greenstatic/bigbluebutton-exporter

API down — Errno111: Connexion refused — Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection

Closed this issue · 1 comments

Hi
My bbb server is running in 2.4.2 version and I'm having issues with the api and the prometheus exporter. It's down when queried from prometheus, but fine with curl.

Logs of the container:

bbb-exporter    | 2022-06-01 16:22:23,750 [ERROR]: Failed to perform API call
bbb-exporter    | 2022-06-01 16:22:23,751 [ERROR]: HTTPSConnectionPool(host='bbb.example.com', port=443): Max retries exceeded with url: /bigbluebutton/api/getMeetings?checksum=60dfdd23f2d5179a1568af398c60c58b3674ce8a (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f05d6af4880>: Failed to establish a new connection: [Errno 111] Connection refused'))

When I query the api (base url in the env file), I get a "Success" :

$ curl -v https://bbb.example.com/bigbluebutton/api
* Connected to bbb.example.com (1.2.3.4) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [325 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [15 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [4295 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [520 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=bbb.example.com
*  start date: Apr  9 21:01:42 2022 GMT
*  expire date: Jul  8 21:01:41 2022 GMT
*  subjectAltName: host "bbb.example.com" matched cert's "bbb.example.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x13a811400)
> GET /bigbluebutton/api HTTP/2
> Host: bbb.example.com
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< server: nginx
< date: Wed, 01 Jun 2022 16:34:34 GMT
< content-type: text/xml;charset=utf-8
< x-application-context: application:production:8090
< cache-control: no-cache
< p3p: CP="No P3P policy available"
<
{ [138 bytes data]
100   138    0   138    0     0    971      0 --:--:-- --:--:-- --:--:--  1029
* Connection #0 to host bbb.example.com left intact
<response>
<returncode>SUCCESS</returncode>
<version>2.0</version>
<apiVersion>2.0</apiVersion>
<bbbVersion></bbbVersion>
</response>

Any help is appreciated !
Thanks.

I found a solution while sleeping, then confirmed reading the docker-compose.yml. FQDN got translated to 127.0.0.1.
Sorry for the issue.