https://rancher.com/ logo
#random
Title
# random
a

adamant-kite-43734

12/08/2022, 12:28 PM
This message was deleted.
s

straight-translator-41274

12/08/2022, 12:31 PM
Copy code
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
{"level":"warn","ts":1670502255.8136437,"caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_UNSUPPORTED_ARCH=arm64"}
{"level":"info","ts":"2022-12-08T12:24:15.817Z","caller":"etcdmain/etcd.go:73","msg":"Running: ","args":["/usr/local/bin/etcd"]}
{"level":"warn","ts":"2022-12-08T12:24:15.818Z","caller":"etcdmain/etcd.go:105","msg":"'data-dir' was empty; using default","data-dir":"default.etcd"}
{"level":"info","ts":"2022-12-08T12:24:15.818Z","caller":"embed/etcd.go:123","msg":"configuring peer listeners","listen-peer-urls":["<http://localhost:2380>"]}
{"level":"info","ts":"2022-12-08T12:24:15.826Z","caller":"embed/etcd.go:131","msg":"configuring client listeners","listen-client-urls":["<http://localhost:2379>"]}
{"level":"info","ts":"2022-12-08T12:24:15.830Z","caller":"embed/etcd.go:309","msg":"starting an etcd server","etcd-version":"3.6.0-alpha.0","git-sha":"fb5591050","go-version":"go1.17.6","go-os":"linux","go-arch":"amd64","max-cpu-set":2,"max-cpu-available":2,"member-initialized":false,"name":"default","data-dir":"default.etcd","wal-dir":"","wal-dir-dedicated":"","member-dir":"default.etcd/member","force-new-cluster":false,"heartbeat-interval":"100ms","election-timeout":"1s","wait-cluster-ready-timeout":"5s","initial-election-tick-advance":true,"snapshot-count":100000,"snapshot-catchup-entries":5000,"initial-advertise-peer-urls":["<http://localhost:2380>"],"listen-peer-urls":["<http://localhost:2380>"],"advertise-client-urls":["<http://localhost:2379>"],"listen-client-urls":["<http://localhost:2379>"],"listen-metrics-urls":[],"cors":["*"],"host-whitelist":["*"],"initial-cluster":"default=<http://localhost:2380>","initial-cluster-state":"new","initial-cluster-token":"etcd-cluster","quota-size-bytes":2147483648,"pre-vote":true,"initial-corrupt-check":false,"corrupt-check-time-interval":"0s","auto-compaction-mode":"periodic","auto-compaction-retention":"0s","auto-compaction-interval":"0s","discovery-url":"","discovery-proxy":"","discovery-token":"","discovery-endpoints":"","discovery-dial-timeout":"2s","discovery-request-timeout":"5s","discovery-keepalive-time":"2s","discovery-keepalive-timeout":"6s","discovery-insecure-transport":true,"discovery-insecure-skip-tls-verify":false,"discovery-cert":"","discovery-key":"","discovery-cacert":"","discovery-user":"","downgrade-check-interval":"5s","max-learners":1}
{"level":"panic","ts":"2022-12-08T12:24:15.835Z","caller":"backend/backend.go:182","msg":"failed to open database","path":"default.etcd/member/snap/db","error":"cannot allocate memory","stacktrace":"<http://go.etcd.io/etcd/server/v3/storage/backend.newBackend\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:182\ngo.etcd.io/etcd/server/v3/storage/backend.New\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:156\ngo.etcd.io/etcd/server/v3/storage.newBackend\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:55\ngo.etcd.io/etcd/server/v3/storage.OpenBackend.func1\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:76|go.etcd.io/etcd/server/v3/storage/backend.newBackend\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:182\ngo.etcd.io/etcd/server/v3/storage/backend.New\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:156\ngo.etcd.io/etcd/server/v3/storage.newBackend\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:55\ngo.etcd.io/etcd/server/v3/storage.OpenBackend.func1\n\t/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:76>"}
panic: failed to open database

goroutine 106 [running]:
<http://go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0001020c0|go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0001020c0>, {0xc000026200, 0x2, 0x2})
	/usr/local/google/home/siarkowicz/pkg/mod/go.uber.org/zap@v1.17.0/zapcore/entry.go:234 +0x499
<http://go.uber.org/zap.(*Logger).Panic(0xc000043ea0|go.uber.org/zap.(*Logger).Panic(0xc000043ea0>, {0xfc3524, 0x180}, {0xc000026200, 0x2, 0x2})
	/usr/local/google/home/siarkowicz/pkg/mod/go.uber.org/zap@v1.17.0/logger.go:227 +0x59
<http://go.etcd.io/etcd/server/v3/storage/backend.newBackend({{0xc000043ea0|go.etcd.io/etcd/server/v3/storage/backend.newBackend({{0xc000043ea0>, 0x1b}, 0x5f5e100, 0x2710, {0xfb3105, 0x7}, 0x280000000, 0xc000518820, 0x0, 0x0, ...})
	/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:182 +0x43f
<http://go.etcd.io/etcd/server/v3/storage/backend.New(...)|go.etcd.io/etcd/server/v3/storage/backend.New(...)>
	/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend/backend.go:156
<http://go.etcd.io/etcd/server/v3/storage.newBackend({{0xfb2ece|go.etcd.io/etcd/server/v3/storage.newBackend({{0xfb2ece>, 0x7}, {0x0, 0x0}, {0x0, 0x0}, {{0x0, 0x0}, {0x18c5288, 0x0, ...}, ...}, ...}, ...)
	/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:55 +0x3b8
<http://go.etcd.io/etcd/server/v3/storage.OpenBackend.func1()|go.etcd.io/etcd/server/v3/storage.OpenBackend.func1()>
	/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:76 +0x58
created by <http://go.etcd.io/etcd/server/v3/storage.OpenBackend|go.etcd.io/etcd/server/v3/storage.OpenBackend>
	/tmp/etcd-release-3.6.0-alpha.0/etcd/release/etcd/server/storage/backend.go:75 +0x185
himadri@CSS-V4M0XVY10V bin % ./docker run -it --rm --env <http://gcr.io/etcd-development/etcd:v3.6.0-alpha.0-amd64|gcr.io/etcd-development/etcd:v3.6.0-alpha.0-amd64>
"docker run" requires at least 1 argument.
See 'docker run --help'.
a

agreeable-waiter-30020

12/08/2022, 12:55 PM
I’m not sure if this will fix the problem, but it looks like you are explicitly requesting the
amd64
image. As you stated, you are running this on an M1 Mac, so you should be requesting the
arm64
image.
s

straight-translator-41274

12/08/2022, 3:10 PM
doesn’t the underlying lima vm have the capability to run amd64 binaries on arm64?
a

agreeable-waiter-30020

12/08/2022, 3:41 PM
It does, but I have found that there are strange inconsistencies when doing so.
s

straight-translator-41274

12/08/2022, 3:42 PM
you are right, for some of my peers its working and for some it isn’t
Just noticed that on enabling kubernetes in rancher desktop amd64 image also works. Does rancher bring up different VM with kubernetes as compared to when it is disabled?
336 Views