Skip to content

support for apple silicon linux/arm64/v8 platform #2763

Closed
@vynu

Description

@vynu

ran v0.38.6 on Apple Silicon chip, observed error/warning : The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

container status Exited (255)

might need to use docker BuildX for multi platform

NOTE

built new image using Dockerfile with buildx --platform linux/arm64/v8 , container spun up successfully, but hitting UI 8080 showing following error:
failed to get container "/" with error: unable to find data in memory cache

Activity

vynu

vynu commented on Dec 14, 2020

@vynu
Author

W1214 18:53:39.531179 1 nvidia.go:61] NVIDIA GPU metrics will not be available: no NVIDIA devices found W1214 18:53:39.537655 1 sysinfo.go:203] Nodes topology is not available, providing CPU topology E1214 18:53:39.538209 1 info.go:114] Failed to get system UUID: open /etc/machine-id: no such file or directory W1214 18:53:39.567902 1 container.go:545] Failed to update stats for container "/dhcpcd": open /sys/fs/cgroup/memory/dhcpcd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.571029 1 container.go:545] Failed to update stats for container "/": open /sys/fs/cgroup/memory/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.579995 1 container.go:545] Failed to update stats for container "/binfmt": open /sys/fs/cgroup/memory/binfmt/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.580167 1 container.go:545] Failed to update stats for container "/006-metadata": open /sys/fs/cgroup/memory/006-metadata/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.580346 1 container.go:545] Failed to update stats for container "/systemreserved": open /sys/fs/cgroup/memory/systemreserved/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.580683 1 container.go:545] Failed to update stats for container "/systemreserved/trim-after-delete": open /sys/fs/cgroup/memory/systemreserved/trim-after-delete/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.581053 1 container.go:545] Failed to update stats for container "/005-dhcpcd": open /sys/fs/cgroup/memory/005-dhcpcd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.581531 1 container.go:545] Failed to update stats for container "/001-sysctl": open /sys/fs/cgroup/memory/001-sysctl/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.581884 1 container.go:545] Failed to update stats for container "/008-mount-docker": open /sys/fs/cgroup/memory/008-mount-docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.582320 1 container.go:545] Failed to update stats for container "/podruntime/docker": open /sys/fs/cgroup/memory/podruntime/docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.572262 1 container.go:545] Failed to update stats for container "/docker/f088db6845f63205dba1ea7901173f6a5127c4e875333003d8b2e06622ea5dd3": open /sys/fs/cgroup/memory/docker/f088db6845f63205dba1ea7901173f6a5127c4e875333003d8b2e06622ea5dd3/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.572704 1 container.go:545] Failed to update stats for container "/docker/buildkit": open /sys/fs/cgroup/memory/docker/buildkit/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.573289 1 container.go:545] Failed to update stats for container "/002-format": open /sys/fs/cgroup/memory/002-format/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.574034 1 container.go:545] Failed to update stats for container "/004-mount": open /sys/fs/cgroup/memory/004-mount/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.574468 1 container.go:545] Failed to update stats for container "/000-sysfs": open /sys/fs/cgroup/memory/000-sysfs/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.575158 1 container.go:545] Failed to update stats for container "/systemreserved/diagnose": open /sys/fs/cgroup/memory/systemreserved/diagnose/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.575881 1 container.go:545] Failed to update stats for container "/systemreserved/socks": open /sys/fs/cgroup/memory/systemreserved/socks/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.576419 1 container.go:545] Failed to update stats for container "/systemreserved/acpid": open /sys/fs/cgroup/memory/systemreserved/acpid/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.577438 1 container.go:545] Failed to update stats for container "/systemreserved/ntpd": open /sys/fs/cgroup/memory/systemreserved/ntpd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.577578 1 container.go:545] Failed to update stats for container "/003-extend": open /sys/fs/cgroup/memory/003-extend/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.578136 1 container.go:545] Failed to update stats for container "/systemreserved/vpnkit-forwarder": open /sys/fs/cgroup/memory/systemreserved/vpnkit-forwarder/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.578787 1 container.go:545] Failed to update stats for container "/podruntime": open /sys/fs/cgroup/memory/podruntime/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.578867 1 container.go:545] Failed to update stats for container "/docker": open /sys/fs/cgroup/memory/docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.584113 1 container.go:545] Failed to update stats for container "/kubepods": open /sys/fs/cgroup/memory/kubepods/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.584518 1 container.go:545] Failed to update stats for container "/007-swap": open /sys/fs/cgroup/memory/007-swap/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.585550 1 container.go:545] Failed to update stats for container "/009-bridge": open /sys/fs/cgroup/memory/009-bridge/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:53:39.585959 1 container.go:545] Failed to update stats for container "/kmsg": open /sys/fs/cgroup/memory/kmsg/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.655839 1 container.go:545] Failed to update stats for container "/systemreserved/socks": open /sys/fs/cgroup/memory/systemreserved/socks/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.677104 1 container.go:545] Failed to update stats for container "/binfmt": open /sys/fs/cgroup/memory/binfmt/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.740769 1 container.go:545] Failed to update stats for container "/dhcpcd": open /sys/fs/cgroup/memory/dhcpcd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.741906 1 container.go:545] Failed to update stats for container "/docker": open /sys/fs/cgroup/memory/docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.777069 1 container.go:545] Failed to update stats for container "/008-mount-docker": open /sys/fs/cgroup/memory/008-mount-docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.778182 1 container.go:545] Failed to update stats for container "/systemreserved/trim-after-delete": open /sys/fs/cgroup/memory/systemreserved/trim-after-delete/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.853075 1 container.go:545] Failed to update stats for container "/kmsg": open /sys/fs/cgroup/memory/kmsg/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.902839 1 container.go:545] Failed to update stats for container "/003-extend": open /sys/fs/cgroup/memory/003-extend/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.924457 1 container.go:545] Failed to update stats for container "/000-sysfs": open /sys/fs/cgroup/memory/000-sysfs/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:39.972342 1 container.go:545] Failed to update stats for container "/001-sysctl": open /sys/fs/cgroup/memory/001-sysctl/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.046739 1 container.go:545] Failed to update stats for container "/systemreserved/acpid": open /sys/fs/cgroup/memory/systemreserved/acpid/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.078703 1 container.go:545] Failed to update stats for container "/podruntime/docker": open /sys/fs/cgroup/memory/podruntime/docker/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.152564 1 container.go:545] Failed to update stats for container "/kubepods": open /sys/fs/cgroup/memory/kubepods/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.244869 1 container.go:545] Failed to update stats for container "/systemreserved/vpnkit-forwarder": open /sys/fs/cgroup/memory/systemreserved/vpnkit-forwarder/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.244869 1 container.go:545] Failed to update stats for container "/009-bridge": open /sys/fs/cgroup/memory/009-bridge/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.289594 1 container.go:545] Failed to update stats for container "/systemreserved/diagnose": open /sys/fs/cgroup/memory/systemreserved/diagnose/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.416221 1 container.go:545] Failed to update stats for container "/006-metadata": open /sys/fs/cgroup/memory/006-metadata/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.436762 1 container.go:545] Failed to update stats for container "/007-swap": open /sys/fs/cgroup/memory/007-swap/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.513122 1 container.go:545] Failed to update stats for container "/docker/f088db6845f63205dba1ea7901173f6a5127c4e875333003d8b2e06622ea5dd3": open /sys/fs/cgroup/memory/docker/f088db6845f63205dba1ea7901173f6a5127c4e875333003d8b2e06622ea5dd3/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.579669 1 container.go:545] Failed to update stats for container "/systemreserved": open /sys/fs/cgroup/memory/systemreserved/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.734436 1 container.go:545] Failed to update stats for container "/005-dhcpcd": open /sys/fs/cgroup/memory/005-dhcpcd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.776231 1 container.go:545] Failed to update stats for container "/": open /sys/fs/cgroup/memory/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.784185 1 container.go:545] Failed to update stats for container "/004-mount": open /sys/fs/cgroup/memory/004-mount/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.998697 1 container.go:545] Failed to update stats for container "/002-format": open /sys/fs/cgroup/memory/002-format/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:40.999043 1 container.go:545] Failed to update stats for container "/systemreserved/ntpd": open /sys/fs/cgroup/memory/systemreserved/ntpd/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:41.053612 1 container.go:545] Failed to update stats for container "/podruntime": open /sys/fs/cgroup/memory/podruntime/memory.numa_stat: no such file or directory, continuing to push stats W1214 18:54:41.343179 1 container.go:545] Failed to update stats for container "/docker/buildkit": open /sys/fs/cgroup/memory/docker/buildkit/memory.numa_stat: no such file or directory, continuing to push stats

cqboyone

cqboyone commented on Dec 22, 2020

@cqboyone

i have the same question too.

triscuitcircuit

triscuitcircuit commented on Dec 24, 2020

@triscuitcircuit

same error here, except when compiling to wasm with rust lang it causes a seg fault. Cargo also wont exit and the fans turn on full blast and wont stop.

My issue could just be an issue with the rust lang compiler itself however, and only related to this thread by the warning

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

qemu: uncaught target signal 11 (Segmentation fault) - core dumped
error: could not compile rustc-demangle

Caused by:
  process didn't exit successfully: rustc --crate-name rustc_demangle /root/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-demangle-0.1.18/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=e06072b379804616 -C extra-filename=-e06072b379804616 --out-dir /deploy/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/deploy/target/wasm32-unknown-unknown/release/deps -L dependency=/deploy/target/release/deps --cap-lints allow (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
thread rustc panicked at invalid terminator state, compiler/rustc_middle/src/mir/mod.rs:1200:34
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.48.0 (7eac88abb 2020-11-16) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C embed-bitcode=no --crate-type lib```
edmondliang

edmondliang commented on Dec 25, 2020

@edmondliang

I have the same problem with M1 as well.
docker run -ti google/cloud-sdk:latest gcloud version

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested Google Cloud SDK 321.0.0 alpha 2020.12.11 app-engine-go 1.9.71 app-engine-java 1.9.84 app-engine-python 1.9.91 app-engine-python-extras 1.9.91 beta 2020.12.11 bigtable bq 2.0.64 cbt 0.9.0 cloud-datastore-emulator 2.1.0 cloud-firestore-emulator 1.11.11 cloud-spanner-emulator 1.1.1 core 2020.12.11 datalab 20190610 gsutil 4.57 pubsub-emulator 0.2.0

iwankgb

iwankgb commented on Dec 27, 2020

@iwankgb
Collaborator

@edmondliang you are trying to run amd64 Linux build on arm64 Mac OS. This is not expected to work.

iwankgb

iwankgb commented on Dec 27, 2020

@iwankgb
Collaborator

@triscuitcircuit why do you think your problem is related to cAdvisor?

triscuitcircuit

triscuitcircuit commented on Dec 28, 2020

@triscuitcircuit

@iwankgb probably not, I am able to view whats going on in the containers without a problem. It seems to be an issue with Qemu or Rustc itself but im not really sure which one.

iwankgb

iwankgb commented on Dec 29, 2020

@iwankgb
Collaborator

@vynu It seems to me that your problem is another issue (see #2743) related to topology detection on ARM systems. I will try to fix it but I need to have another two PRs merged first.

self-assigned this
on Dec 29, 2020
vynu

vynu commented on Dec 29, 2020

@vynu
Author

@iwankgb got it.. could you help me find out exactly where its been failing ?

iwankgb

iwankgb commented on Dec 29, 2020

@iwankgb
Collaborator

@vynu the problems seems to be located in runc that cAdvisor uses to get information from memory.numa_stat file. I think that this function is a culprit.

Fixing it is a bit complicated, because:

  1. One has to fix runc
  2. And then update runc version that cAdvisor uses.
vynu

vynu commented on Dec 29, 2020

@vynu
Author

aah!! gotcha ...

nouaman

nouaman commented on Jan 10, 2021

@nouaman

This is a docker problem in version 20.
Version 19 should work fine.
see docker/for-linux#1170 (comment)

iwankgb

iwankgb commented on Jan 10, 2021

@iwankgb
Collaborator

@nouaman yes, it is part of the problem. Another one is that Apple hardware seem not to expose certain files in sysfs.

iwankgb

iwankgb commented on Jan 11, 2021

@iwankgb
Collaborator

@vynu can you provide me with the following (all from Apple M1 system):

  • a snapshot of cgroup filesystem (usually can be found at /sys/fs/cgroup
  • a snapshot of /sys/devices/system/cpu directory
  • content of /proc/cpuinfo

59 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @spkane@bobbypage@ilpianista@iwankgb@Dinidu

      Issue actions

        support for apple silicon linux/arm64/v8 platform · Issue #2763 · google/cadvisor