adamant-kite-43734
09/08/2022, 7:44 AMadamant-kite-43734
09/08/2022, 10:20 AMadamant-kite-43734
09/08/2022, 12:06 PMbrash-planet-10109
09/08/2022, 12:50 PMdazzling-france-77424
09/08/2022, 1:11 PMdazzling-france-77424
09/08/2022, 1:17 PMadamant-kite-43734
09/08/2022, 1:33 PMadamant-kite-43734
09/08/2022, 3:01 PMsquare-dream-42632
09/08/2022, 3:50 PMadamant-kite-43734
09/08/2022, 5:26 PMadamant-kite-43734
09/08/2022, 7:15 PMdazzling-computer-84464
09/08/2022, 7:56 PMadamant-kite-43734
09/08/2022, 8:40 PMadamant-kite-43734
09/09/2022, 7:34 AMworried-rain-56725
09/09/2022, 9:31 AMRancher version: 2.6.8
Installation method: Helm
Helm repo: <https://releases.rancher.com/server-charts/stable>
After installing rancher, I tried to bootstrap it, using rancher terraform provider and next tf configuration:
resource "rancher2_bootstrap" "admin" {
provider = rancher2.bootstrap
initial_password = "Password1"
password = local.rancher_bootstrap_password
telemetry = false
}
For some reason after few minutes, creating of this process fails with the following error log:
│ **Error:** **[ERROR] Updating token: Bad response statusCode [403]. Status [403 Forbidden]. Body: [baseType=error, code=Forbidden, message=<http://settings.management.cattle.io|settings.management.cattle.io> "k8s-version" is forbidden: User "user-bfkj6" cannot get resource "settings" in API group "<http://management.cattle.io|management.cattle.io>" at the cluster scope] from [<https://rancher-internal.foo.bar.com/v3/settings/k8s-version]**>
│
│ with rancher2_bootstrap.admin,
│ on <http://main.tf|main.tf> line 48, in resource "rancher2_bootstrap" "admin":
│ 48: resource "rancher2_bootstrap" "admin" {
That user has GlobalBindingRole to admin role, so it should has access to Setting CRD.
Also there are a lot of such error messages in rancher pod:
2022/09/09 09:07:41 [ERROR] Failed to connect to peer <wss://10.0.3.184/v3/connect> [local ID=10.0.1.59]: websocket: bad handshake
I’ve also tried to bootstrap rancher via UI, but after entering bootstrap password the only thing I see is the white screen.
Any ideas?adamant-kite-43734
09/09/2022, 12:54 PMstale-dinner-99388
09/09/2022, 1:44 PMhelm upgrade --install rancher rancher-latest/rancher --namespace cattle-system --set hostname=url --set ingress.tls.source="letsEncrypt" --set bootstrapPassword=abcdxyz --set letsEncrypt.email="email" --set letsEncrypt.environment="production"
bright-fireman-42144
09/09/2022, 2:06 PMkubectl -n cattle-system get pods -l app=cattle-agent -o wide
No resources found.
but I do see cattle-cluster-agentbright-fireman-42144
09/09/2022, 2:06 PMclever-air-65544
09/09/2022, 6:39 PMflat-balloon-88238
09/10/2022, 4:42 AMalert-fireman-21958
09/10/2022, 7:47 AMadamant-kite-43734
09/10/2022, 7:47 AMalert-fireman-21958
09/10/2022, 7:48 AMfaint-thailand-7471
09/10/2022, 8:00 AM[INFO] Creating container for image: testcontainers/ryuk:0.3.3
[INFO] Credential helper/store (docker-credential-osxkeychain) does not have credentials for <https://index.docker.io/v1/>
[INFO] Container testcontainers/ryuk:0.3.3 is starting: 66a6f578877a5625474812c4587b3910d1e3da7466ea96336516e43aacd42c64
[INFO] Container testcontainers/ryuk:0.3.3 started in PT0.544596S
[WARNING] Can not connect to Ryuk at localhost:49153
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.pollConnect (Native Method)
at sun.nio.ch.Net.pollConnectNow (Net.java:672)
at sun.nio.ch.NioSocketImpl.timedFinishConnect (NioSocketImpl.java:542)
at sun.nio.ch.NioSocketImpl.connect (NioSocketImpl.java:597)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:327)
at java.net.Socket.connect (Socket.java:633)
at org.testcontainers.utility.RyukResourceReaper.lambda$null$0 (RyukResourceReaper.java:92)
at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady (RateLimiter.java:27)
at org.testcontainers.utility.RyukResourceReaper.lambda$maybeStart$1 (RyukResourceReaper.java:88)
at java.lang.Thread.run (Thread.java:833)
I have seen a few discussion around the same problem for people using Docker Desktop. Has someone had/solved the same problem with Rancher?
Any help is highly apprechiated. Thanks so much.clean-butcher-81304
09/10/2022, 11:51 PMadamant-kite-43734
09/11/2022, 6:13 AMadamant-kite-43734
09/11/2022, 9:58 AMhundreds-terabyte-36933
09/11/2022, 3:16 PMhundreds-terabyte-36933
09/11/2022, 3:19 PM