[Python] AWS target group health check fails for Jupyter Notebook application

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm running the Jupyter Notebook service on an EC2 and am trying to add it to a target group in AWS. However, health checks are failing. I saw this GitHub issue and used the /api endpoint to no avail. If I go on the EC2, I see the jupyter-notebook running on port 8888, and am able to do this in the EC2.

    $ curl -v localhost:8888/api
    * Host localhost:8888 was resolved.
    * IPv6: ::1
    * IPv4: 127.0.0.1
    * Trying [::1]:8888...
    * connect to ::1 port 8888 from ::1 port 50380 failed: Connection refused
    * Trying 127.0.0.1:8888...
    * Connected to localhost (127.0.0.1) port 8888
    > GET /api HTTP/1.1
    > Host: localhost:8888
    > User-Agent: curl/8.5.0
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Server: TornadoServer/6.4.1
    < Content-Type: application/json
    < Date: Fri, 18 Apr 2025 19:09:47 GMT
    < X-Content-Type-Options: nosniff
    < Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'
    < Etag: "6c31fb62a67a5b2884dbd208b806589cc45521a5"
    < Content-Length: 21
    <
    * Connection #0 to host localhost left intact


    Any clues?

    Continue reading...

Compartilhe esta Página