Closed jiasenwu closed 1 year ago
I try to get more information from "Couldn't contact ...". It turns out to be an SSL error.
How do you get this information? I have the same problem.
yeah, I had to hack the addons to inject a 'try.. catch..' block and print the exception there.
Can you give us a bit more context about the environment where you are running this?
$ snap version
snap 2.49.1-1
snapd 2.49.1-1
series 16
manjaro -
kernel 5.10.30-1-MANJARO
I first tried microk8s v1.21, but it failed for some other reason (but I canoot recall now). So I switch to 1.22-alpha, and the k8s is deployed successfully. But I cannot enable the kubeflow.
Unfortunately, I have deleted my local Kubernetes, so will be hard to reproduce all details. Let me know if any other information I can provide.
These are some information from my VM:
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.50 11081 latest/stable canonical✓ core
core18 20210507 2066 latest/stable canonical✓ base
microk8s v1.20.7 2228 1.20/edge canonical✓ classic
$ microk8s.inspect
Inspecting Certificates
Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
Service snap.microk8s.daemon-containerd is running
Service snap.microk8s.daemon-apiserver is running
Service snap.microk8s.daemon-apiserver-kicker is running
Service snap.microk8s.daemon-control-plane-kicker is running
Service snap.microk8s.daemon-proxy is running
Service snap.microk8s.daemon-kubelet is running
Service snap.microk8s.daemon-scheduler is running
Service snap.microk8s.daemon-controller-manager is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy current linux distribution to the final report tarball
Copy openSSL information to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
Inspecting juju
Inspect Juju
Inspecting kubeflow
Inspect Kubeflow
Building the report tarball
Report tarball is at /var/snap/microk8s/2228/inspection-report-20210528_074433.tar.gz
$ curl -v https://api.jujucharms.com/charmstore/v5/~kubeflow-charmers/ambassador-88/icon.svg
* About to connect() to api.jujucharms.com port 443 (#0)
* Trying 162.213.33.78...
* Connected to api.jujucharms.com (162.213.33.78) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* subject: CN=api.jujucharms.com
* start date: Mar 15 06:50:43 2021 GMT
* expire date: Jun 13 06:50:43 2021 GMT
* common name: api.jujucharms.com
* issuer: CN=R3,O=Let's Encrypt,C=US
> GET /charmstore/v5/~kubeflow-charmers/ambassador-88/icon.svg HTTP/1.1
> User-Agent: curl/7.29.0
> Host: api.jujucharms.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 28 May 2021 07:49:00 GMT
< Server: Apache/2.4.29 (Ubuntu)
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Headers: Bakery-Protocol-Version, Macaroons, X-Requested-With
< Access-Control-Allow-Methods: DELETE,GET,HEAD,PUT,POST,OPTIONS
< Access-Control-Allow-Origin: *
< Access-Control-Cache-Max-Age: 600
< Access-Control-Expose-Headers: WWW-Authenticate
< Cache-Control: public, max-age=3600
< Content-Type: image/svg+xml
< Set-Cookie: SRVNAME=; Expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/charmstore/
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="0 0 149.66988 248.04199"
xml:space="preserve"
sodipodi:docname="ambassador.svg"
width="149.66988"
height="248.04199"
inkscape:version="0.92.4 (33fec40, 2019-01-16)"><metadata
id="metadata216"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs214" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1712"
inkscape:window-height="908"
id="namedview212"
showgrid="false"
inkscape:zoom="2.4557823"
inkscape:cx="19.65904"
inkscape:cy="124.021"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" />
<style
type="text/css"
id="style133">
.st0{opacity:0.2038;filter:url(#filter-1);enable-background:new ;}
.st1{fill:#FFFFFF;}
.st2{fill:#333333;}
.st3{fill:none;stroke:#000000;}
.st4{fill:#F5A623;}
.st5{fill:#E54733;}
.st6{fill:#E64934;stroke:#000000;}
.st7{fill:#FFFFFF;fill-opacity:0.2;stroke:#FFFFFF;stroke-width:2;}
.st8{fill:none;stroke:#FFFFFF;stroke-width:2;}
</style>
<filter
filterUnits="objectBoundingBox"
height="3.6670001"
id="filter-1"
width="1.3"
x="-0.15000001"
y="-1.3330001">
<feGaussianBlur
in="SourceGraphic"
stdDeviation="4"
id="feGaussianBlur135" />
</filter>
<g
id="Page-1"
transform="translate(-70.53012,-3.9640047)">
<g
id="Ambassador"
transform="translate(-25,-10)">
<g
id="Group-4"
transform="translate(0,4)">
<g
id="Group-2"
transform="translate(12)">
<g
id="Group-17-Copy-2"
transform="translate(0,54)">
<g
id="Group-16">
<g
id="Oval-8-Copy-10"
class="st0"
style="opacity:0.20379998;filter:url(#filter-1);enable-background:new">
<ellipse
cx="153.39999"
cy="187.5"
rx="40"
ry="4.5"
id="ellipse138" />
</g>
<g
id="Group-12-Copy-8"
transform="translate(52,164)">
<path
id="Line-Copy-18"
d="m 83.5,4.2 c -0.7,0 -1.2,0.6 -1.2,1.2 l 0.5,14 c 0,0.7 0.6,1.2 1.2,1.2 l 5.6,-0.2 c 0.7,0 1.2,-0.6 1.2,-1.2 L 90.3,5.2 C 90.3,4.5 89.7,4 89.1,4 Z"
inkscape:connector-curvature="0" />
<path
id="Rectangle-7-Copy-15"
d="m 70.4,17.4 c 0,-1.3 1.1,-2.4 2.4,-2.4 H 83 c 1.3,0 2.4,1.1 2.4,2.4 v 1.1 c 0,0.6 -0.4,1 -1,1 l -11.6,0.3 c -1.3,0.1 -2.4,-1 -2.4,-2.4 z"
inkscape:connector-curvature="0" />
</g>
<g
id="Group-12-Copy-10"
transform="matrix(-1,0,0,1,117,164)">
<path
id="Line-Copy-18_1_"
d="m -57.4,4.2 c -0.7,0 -1.2,0.6 -1.2,1.2 l 0.5,14 c 0,0.7 0.6,1.2 1.2,1.2 l 5.6,-0.2 c 0.7,0 1.2,-0.6 1.2,-1.2 l -0.5,-14 C -50.6,4.5 -51.2,4 -51.8,4 Z"
inkscape:connector-curvature="0" />
<path
id="Rectangle-7-Copy-15_1_"
d="m -70.4,17.4 c 0,-1.3 1.1,-2.4 2.4,-2.4 h 10.2 c 1.3,0 2.4,1.1 2.4,2.4 v 1.1 c 0,0.6 -0.4,1 -1,1 L -68,19.8 c -1.4,0.1 -2.4,-1 -2.4,-2.4 z"
inkscape:connector-curvature="0" />
</g>
<path
id="Combined-Shape"
d="m 145.8,3 c 3.4,4.2 12.7,9.7 24.3,13.9 12,4.4 23,6.1 28.1,4.9 7,9.4 10.4,21.6 8.9,35 l -11,92.4 c -1.4,12.1 -12.5,21.9 -24.6,21.9 h -36 c -12.1,0 -23.2,-9.8 -24.6,-21.9 L 99.9,56.8 C 96.4,27.7 116.8,4 145.8,3 Z m 10.8,0 h 2.7 c 12.3,0 23.1,4.1 31.4,10.9 -1,2.5 -9.4,1.7 -18.8,-1.8 C 164.2,9.3 158.1,5.6 156.6,3 Z"
inkscape:connector-curvature="0" />
<g
id="Group"
transform="translate(42,27)">
<g
id="Group-3"
transform="translate(43)">
<path
id="Oval-3-Copy-4"
class="st1"
d="m 95.2,29.6 c 7.8,-4.5 10.5,-14.5 6,-22.3 -4.5,-7.8 -28.3,16.4 -28.3,16.4 0,0 14.5,10.4 22.3,5.9 z"
inkscape:connector-curvature="0"
style="fill:#ffffff" />
<ellipse
id="Oval-3-Copy-5"
cx="82.199997"
cy="19.299999"
rx="5.3000002"
ry="5.1999998" />
</g>
<g
id="Group-3-Copy"
transform="matrix(-1,0,0,1,39,0)">
<path
id="Oval-3-Copy-4_1_"
class="st1"
d="m -45.7,29.6 c 7.8,-4.5 10.5,-14.5 6,-22.3 -4.5,-7.8 -28.3,16.4 -28.3,16.4 0,0 14.5,10.4 22.3,5.9 z"
inkscape:connector-curvature="0"
style="fill:#ffffff" />
<ellipse
id="Oval-3-Copy-5_1_"
cx="-58.700001"
cy="19.299999"
rx="5.3000002"
ry="0" />
</g>
</g>
<path
id="Combined-Shape-Copy-13"
d="m 106.9,122.5 -5.7,-10.7 1.8,-0.9 5,9.5 1,-2.1 -4.8,-9.1 1.8,-0.9 4.1,7.8 1,-2.1 -3.9,-7.4 1.8,-0.9 3.3,6.1 4.4,-8.8 c 0,0 -7.1,-17.9 -8.4,-22.2 C 106,73.5 85,76 83.6,88.2 c -1.4,12.3 18.7,43.4 18.7,43.4 z"
inkscape:connector-curvature="0" />
<path
id="Combined-Shape-Copy-4"
d="m 232.9,65.2 -10.1,6.8 1.1,1.7 8.9,-6 -0.1,2.3 -8.5,5.7 1.1,1.7 7.3,-4.9 -0.1,2.3 -6.9,4.7 1.1,1.7 5.7,-3.9 -0.3,9.8 c 0,0 -14.6,12.4 -17.8,15.6 C 208.9,108.1 191.6,96 196.1,84.5 200.8,73 233.2,55 233.2,55 Z"
inkscape:connector-curvature="0" />
<polygon
id="Rectangle-2-Copy-18"
class="st1"
points="194.3,156.7 114.8,157.6 102.4,69 154,114.7 204.9,66.3 "
style="fill:#ffffff" />
<g
id="Rectangle-2-Copy-17">
<g
id="g159">
<polygon
id="path-2"
class="st2"
points="154.6,172.6 145.8,177.4 131.8,179.4 112.8,165 108,126.6 102.6,72.2 155.3,150.8 204.2,74.5 199.7,120 195.6,164.1 179.8,179.4 164.7,178.4 "
style="fill:#333333" />
</g>
<path
class="st3"
d="m 108.5,126.5 4.8,38.2 18.6,14.1 13.7,-2 8.9,-4.8 10.3,5.8 14.8,1 15.5,-14.9 4.1,-43.9 4.3,-43.5 -48.2,75.2 -52,-77.6 z"
id="path161"
inkscape:connector-curvature="0"
style="fill:none;stroke:#000000" />
</g>
<path
id="Rectangle-4-Copy-7"
class="st4"
d="m 152.2,59.4 c 0.8,-0.8 2,-0.8 2.8,0 l 9.9,9.9 c 0.8,0.8 0.6,1.8 -0.4,2.3 l -8.6,4.3 c -1,0.5 -2.6,0.5 -3.6,0.1 l -9.6,-4.4 c -1,-0.5 -1.2,-1.5 -0.4,-2.2 z"
inkscape:connector-curvature="0"
style="fill:#f5a623" />
</g>
</g>
<g
id="Group_1_"
transform="rotate(20,46.247574,262.28303)">
<path
id="Shape"
d="m 115.2,21.5 c 0.1,1.4 0.2,2.9 0.4,4.3 0,2.6 -8.2,4.8 -18.3,4.8 C 87.2,30.6 79,28.5 79,25.8 v 0 c 0.2,-1.4 0.3,-2.8 0.4,-4.3 -7.4,1.4 -12.2,3.7 -12.2,6.3 0,4.3 13.5,7.9 30.1,7.9 16.6,0 30.1,-3.5 30.1,-7.9 -0.1,-2.6 -4.8,-4.9 -12.2,-6.3 z"
inkscape:connector-curvature="0" />
<path
id="Shape_1_"
class="st5"
d="m 116.5,-7.5 c -0.6,2.8 -7.9,5 -19.2,5 -11.4,0 -18.7,-2.2 -19.2,-5 0,0 2.2,17.3 1.4,34 0.8,2.4 8.5,4.2 17.8,4.2 9.3,0 17,-1.9 17.8,-4.2 -0.8,-16.8 1.4,-34 1.4,-34 z"
inkscape:connector-curvature="0"
style="fill:#e54733" />
<path
id="Shape-Copy"
d="m 118.5,-14.2 c -0.6,2.8 -9.9,5 -21.2,5 -11.4,0 -20.7,-2.2 -21.2,-5 0,0 4.2,17.3 3.4,34 0.8,2.4 8.5,4.2 17.8,4.2 9.3,0 17,-1.9 17.8,-4.2 -0.8,-16.7 3.4,-34 3.4,-34 z"
inkscape:connector-curvature="0" />
<path
id="Shape_2_"
d="m 118.6,-15.5 c 0,0.1 0,0.2 0,0.3 -0.6,2.8 -9.9,5 -21.2,5 -11.4,0 -20.7,-2.2 -21.2,-5 0,-0.1 0,-0.2 0,-0.3 0,-2.9 9.5,-5.3 21.3,-5.3 11.5,0 21.1,2.4 21.1,5.3 z"
inkscape:connector-curvature="0" />
</g>
<path
id="Path-8-Copy"
class="st6"
d="m 132.6,139.7 c -0.9,-0.6 -1.6,-0.2 -1.5,0.9 l 2.1,26 c 0.1,1.1 0.9,1.5 1.8,0.9 L 174.7,140 c 0.9,-0.6 1.6,-0.2 1.6,0.9 v 25.3 c 0,1.1 -0.8,1.5 -1.7,0.9 z"
inkscape:connector-curvature="0"
style="fill:#e64934;stroke:#000000" />
<g
id="Group-2-Copy"
transform="translate(81,174)">
<circle
id="Oval-10-Copy"
cx="72.400002"
cy="5"
r="2" />
<circle
id="Oval-10-Copy-2"
cx="72.400002"
cy="13"
r="2" />
</g>
<g
id="SR-71-Copy-4"
transform="rotate(-56,108.8957,180.16374)">
<g
id="g177">
<path
id="path-3"
class="st2"
d="m 133.7,239.1 v -0.6 c 0,-0.6 0.2,-1.1 0.5,-1.4 0.4,-0.3 0.8,-0.5 1.4,-0.5 0.3,0 0.5,0 0.8,0 0.9,0 1.7,0.1 2.3,0.4 v 1.5 c -0.6,-0.1 -1.4,-0.1 -2.4,-0.1 -0.3,0 -0.5,0 -0.6,0.1 -0.1,0 -0.2,0.2 -0.2,0.4 v 0.1 c 0,0.2 0,0.3 0.1,0.4 0.1,0.1 0.2,0.1 0.5,0.1 h 0.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st7"
cx="135.39999"
cy="97"
r="19"
style="fill:#ffffff;fill-opacity:0.2;stroke:#ffffff;stroke-width:2" />
<path
id="Path-9"
class="st8"
d="m 116.9,93 c 0,0 -4.9,11.4 3.6,32.9 8.5,21.5 6.6,31.3 6.6,31.3"
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:2" />
</g>
</g>
</g>
</g>
* Connection #0 to host api.jujucharms.com left intact
$ snap version
snap 2.50-1.el7
snapd 2.50-1.el7
series 16
centos 7
kernel 3.10.0-957.12.2.el7.x86_64
By the way, juju can not be installed successfully:
$ sudo snap install juju --classic
error: cannot perform the following tasks:
- Run hook connect-plug-peers of snap "juju" (run hook "connect-plug-peers":
-----
error: error running snapctl: cannot perform the following tasks:
- Run service command "start" for services ["fetch-oci"] of snap "juju" ([start snap.juju.fetch-oci.service] failed with exit status 1: Job for snap.juju.fetch-oci.service failed because a timeout was exceeded. See "systemctl status snap.juju.fetch-oci.service" and "journalctl -xe" for details.
)
-----)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I try to get more information from "Couldn't contact ...". It turns out to be an SSL error.
However, I find it totally fine to curl the url "https://api.jujucharms.com/charmstore/v5/~kubeflow-charmers/ambassador-88/icon.svg" on my host OS. I don't understand why there is a SSL error when enabling the kubeflow.