httpx.ProxyError: 503 Service Unavailable

Hello,

Ubuntu 20.04.4 LTS juju version:2.9.22 microk8s : v1.21

I have problem in juju - kubeflow deploy. Three services with same problem : hook failed: “install”.

kubeflow-roles/0 error idle 10.1.197.70 hook failed: “install”* metacontroller-operator/0 error idle 10.1.229.106 hook failed: “install”* training-operator/0 error idle 10.1.229.75 hook failed: “install”*

From debug-logs, it is found “httpx.ProxyError: 503 Service Unavailable”.

Traceback (most recent call last):

  • File “/var/lib/juju/agents/unit-training-operator-0/charm/venv/httpx/_transports/default.py”, line 60, in map_httpcore_exceptions*
  • yield*
  • File “/var/lib/juju/agents/unit-training-operator-0/charm/venv/httpx/_transports/default.py”, line 187, in handle_request*
  • resp = self._pool.handle_request(req)*
  • File “/var/lib/juju/agents/unit-training-operator-0/charm/venv/httpcore/_sync/connection_pool.py”, line 248, in handle_request*
  • raise exc*
  • File “/var/lib/juju/agents/unit-training-operator-0/charm/venv/httpcore/_sync/connection_pool.py”, line 232, in handle_request*
  • response = connection.handle_request(request)*
  • File “/var/lib/juju/agents/unit-training-operator-0/charm/venv/httpcore/_sync/http_proxy.py”, line 227, in handle_request*
  • raise ProxyError(msg)* httpcore.ProxyError: 503 Service Unavailable

Please help and give me advise to solve the error. Thank you!!

I had similar issues and was able to fix them by rolling out the service again:

microk8s kubectl rollout restart deployment kubeflow-roles -n kubeflow