alexandre-abrioux / golem-node

Dockerized Golem Network Provider Node
https://hub.docker.com/r/aabrioux/golem-node
MIT License
17 stars 15 forks source link

need help buillding image for arm64 #44

Open syahpian opened 3 days ago

syahpian commented 3 days ago

hello,

im trying to build the image for arm64 (raspberry pi 4) but encounter an error

1 warning found (use --debug to expand):

using ubuntu server 22.04 lts for arm64

not sure how to solve it since im new to this

regards

alexandre-abrioux commented 2 days ago

Hi @syahpian, I've just added new parameters in the Dockerfile so we can test this (see commit). I don't have access to an AMR environment, but I'm happy to add support if you can confirm that the node runs properly on your end. Try building the Docker image manually:

> cd golem-node
> git pull
> docker build \
  --tag aabrioux/golem-node:latest \
  --build-arg YA_CORE_ARCH=linux_aarch64 \
  --build-arg YA_WASI_ARCH=osx \
  docker

Then, you can run the docker-compose.yml file like described in the README. I'm not sure about the YA_WASI_ARCH argument, if you should use osx or linux. Try with both, see what works, and let me know 🙂

syahpian commented 2 days ago

hello,

done compiling the image without error, but when it use "make up" to run the container,

im getting this error

[2024-07-02T12:41:29Z ERROR golemsp] EOF

Running pre-install script Importing resources Starting Golem [2024-07-02T12:41:36Z ERROR golemsp] EOF Running pre-install script Importing resources Starting Golem [2024-07-02T12:41:49Z ERROR golemsp] EOF

also, which file should i open to change "YA_WASI_ARCH"?

regards

alexandre-abrioux commented 2 days ago

YA_WASI_ARCH can be configured using the command I sent you above, no need to edit any file.

syahpian commented 2 days ago

already try both

docker build \ --tag aabrioux/golem-node:latest \ --build-arg YA_CORE_ARCH=linux_aarch64 \ --build-arg YA_WASI_ARCH=osx \ docker

and

docker build \ --tag aabrioux/golem-node:latest \ --build-arg YA_CORE_ARCH=linux_aarch64 \ --build-arg YA_WASI_ARCH=linux \ docker

same error

[2024-07-02T13:58:05Z ERROR golemsp] EOF

Running pre-install script Importing resources Starting Golem [2024-07-02T13:58:32Z ERROR golemsp] EOF

regards

alexandre-abrioux commented 2 days ago

Thanks. Unfortunately, I won't be able to help you more as I don't have access to an ARM device. I'm not sure which binaries you should use or if it's even possible to run the node on ARM. I'd advise you to reach out to Golem's team, either on GitHub (https://github.com/golemfactory/yagna) or Discord (https://chat.golem.network/). Let me know if you make it work!

syahpian commented 2 days ago

hello,

it run when using old golem node folder (the one before you update with new line)

but now i getting this error on both osx and linux

[2024-07-03 02:18:34.089872 +08:00] INFO [exe-unit/src/runtime/process.rs:134] Executing "/usr/lib/yagna/plugins/ya-runtime-wasi" with ["offer-template"] from path Ok("/root/.local/share/ya-provider/exe-unit/work") [2024-07-03 02:18:34.095709 +08:00] ERROR [exe-unit/src/bin.rs:357] IO error: Exec format error (os error 8) Error: EOF while parsing a value at line 1 column 0 [2024-07-02T18:18:34Z ERROR golemsp::service] child provider exited too early: Ok(ExitStatus(unix_wait_status(256))) [2024-07-02T18:18:34Z WARN golemsp::service] provider exited with: Custom { kind: Other, error: "process exited too early" }

the way i do it is i compile first using new golem node folder version and then run it using old golem node folder version

regards