GaiaNet-AI / gaianet-node

Install and run your own AI agent service
https://www.gaianet.ai/
GNU General Public License v3.0
4.85k stars 221 forks source link

mac cannot initiate. generating node id error #116

Open 3immense opened 3 months ago

3immense commented 3 months ago

cannot initiated in mac. Last login: Wed Jul 10 15:16:09 on ttys003 4ge1@4ge1deMacBook-Pro ~ % export no_proxy=localhost,127.0.0.0/8 4ge1@4ge1deMacBook-Pro ~ % curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash

██████╗ █████╗ ██╗ █████╗ ███╗ ██╗███████╗████████╗ ██╔════╝ ██╔══██╗██║██╔══██╗████╗ ██║██╔════╝╚══██╔══╝ ██║ ███╗███████║██║███████║██╔██╗ ██║█████╗ ██║ ██║ ██║██╔══██║██║██╔══██║██║╚██╗██║██╔══╝ ██║ ╚██████╔╝██║ ██║██║██║ ██║██║ ╚████║███████╗ ██║ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝

[+] Installing gaianet CLI tool ... ######################################################################## 100.0%

[+] Downloading default config.json ... ######################################################################## 100.0%

[+] Downloading nodeid.json ... ######################################################################## 100.0%

[+] Installing WasmEdge with wasi-nn_ggml plugin ... Info: Detected Darwin-arm64

cat: /Users/4ge1/.zshrc: No such file or directory Info: WasmEdge Installation at /Users/4ge1/.wasmedge

Info: Fetching WasmEdge-0.13.5

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WasmEdge-GGML-Plugin

Info: Detected CUDA version from nvcc:

Info: CUDA version is not detected from nvcc: Use the CPU version.

Info: Or you can use '-c 11' or '-c 12' to install the cuda-11 or cuda-12 version manually.

Info: Use b3405 GGML plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WASI-Logging-Plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Installation of wasmedge-0.13.5 successful

source /Users/4ge1/.wasmedge/env to use wasmedge binaries

[+] Installing Qdrant binary...

[+] Downloading LlamaEdge API server ... ######################################################################## 100.0% ######################################################################## 100.0%

[+] Downloading dashboard ... ######################################################################## 100.0%

[+] Downloading registry.wasm ...

5.6%curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)

4ge1@4ge1deMacBook-Pro ~ % export no_proxy=localhost,127.0.0.0/8 4ge1@4ge1deMacBook-Pro ~ % curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash curl: (28) Failed to connect to github.com port 443 after 75000 ms: Couldn't connect to server 4ge1@4ge1deMacBook-Pro ~ % curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash

curl: (28) Failed to connect to github.com port 443 after 75016 ms: Couldn't connect to server 4ge1@4ge1deMacBook-Pro ~ % 4ge1@4ge1deMacBook-Pro ~ % 4ge1@4ge1deMacBook-Pro ~ % export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890 4ge1@4ge1deMacBook-Pro ~ % curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash

██████╗ █████╗ ██╗ █████╗ ███╗ ██╗███████╗████████╗ ██╔════╝ ██╔══██╗██║██╔══██╗████╗ ██║██╔════╝╚══██╔══╝ ██║ ███╗███████║██║███████║██╔██╗ ██║█████╗ ██║ ██║ ██║██╔══██║██║██╔══██║██║╚██╗██║██╔══╝ ██║ ╚██████╔╝██║ ██║██║██║ ██║██║ ╚████║███████╗ ██║ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝

[+] Installing gaianet CLI tool ... ######################################################################## 100.0%

[+] Downloading default config.json ...

[+] Installing WasmEdge with wasi-nn_ggml plugin ... Info: Detected Darwin-arm64

No root permissions. Installation path found at /Users/4ge1/.wasmedge Removing /Users/4ge1/.wasmedge//bin/wasmedge Removing /Users/4ge1/.wasmedge//bin/wasmedgec Removing /Users/4ge1/.wasmedge//include/wasmedge/ Removing /Users/4ge1/.wasmedge//include/wasmedge/wasmedge.h Removing /Users/4ge1/.wasmedge//include/wasmedge/version.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum.inc Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_configure.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_errcode.h Removing /Users/4ge1/.wasmedge//include/wasmedge/int128.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_types.h Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.0.3.tbd Removing /Users/4ge1/.wasmedge//lib/libwasmedge.tbd Removing /Users/4ge1/.wasmedge//lib/libwasmedge.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.0.3.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.tbd Removing /Users/4ge1/.wasmedge/plugin/ggml-common.h Removing /Users/4ge1/.wasmedge/plugin/ggml-metal.metal Removing /Users/4ge1/.wasmedge/plugin/libwasmedgePluginWasiLogging.dylib Removing /Users/4ge1/.wasmedge/plugin/libwasmedgePluginWasiNN.dylib Removing /Users/4ge1/.wasmedge/env Removing /Users/4ge1/.wasmedge/bin Removing /Users/4ge1/.wasmedge/include/wasmedge Removing /Users/4ge1/.wasmedge/plugin Removing /Users/4ge1/.wasmedge/lib Removing /Users/4ge1/.wasmedge/include Removing /Users/4ge1/.wasmedge cat: /Users/4ge1/.zshrc: No such file or directory Info: WasmEdge Installation at /Users/4ge1/.wasmedge

Info: Fetching WasmEdge-0.13.5

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WasmEdge-GGML-Plugin

Info: Detected CUDA version from nvcc:

Info: CUDA version is not detected from nvcc: Use the CPU version.

Info: Or you can use '-c 11' or '-c 12' to install the cuda-11 or cuda-12 version manually.

Info: Use b3405 GGML plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WASI-Logging-Plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Installation of wasmedge-0.13.5 successful

source /Users/4ge1/.wasmedge/env to use wasmedge binaries

[+] Installing Qdrant binary...

[+] Downloading LlamaEdge API server ... ######################################################################## 100.0% ######################################################################## 100.0%

[+] Downloading dashboard ...

[+] Generating node ID ... [2024-07-23 22:40:48.013] [error] loading failed: length out of bounds, Code: 0x27 [2024-07-23 22:40:48.015] [error] Bytecode offset: 0x00002632 [2024-07-23 22:40:48.015] [error] At AST node: code section [2024-07-23 22:40:48.015] [error] At AST node: module [2024-07-23 22:40:48.015] [error] File name: "/Users/4ge1/gaianet/registry.wasm" 4ge1@4ge1deMacBook-Pro ~ % gaianet init zsh: command not found: gaianet 4ge1@4ge1deMacBook-Pro ~ % curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash

██████╗ █████╗ ██╗ █████╗ ███╗ ██╗███████╗████████╗ ██╔════╝ ██╔══██╗██║██╔══██╗████╗ ██║██╔════╝╚══██╔══╝ ██║ ███╗███████║██║███████║██╔██╗ ██║█████╗ ██║ ██║ ██║██╔══██║██║██╔══██║██║╚██╗██║██╔══╝ ██║ ╚██████╔╝██║ ██║██║██║ ██║██║ ╚████║███████╗ ██║ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝

[+] Installing gaianet CLI tool ... ######################################################################## 100.0%

[+] Downloading default config.json ...

[+] Installing WasmEdge with wasi-nn_ggml plugin ... Info: Detected Darwin-arm64

No root permissions. Installation path found at /Users/4ge1/.wasmedge Removing /Users/4ge1/.wasmedge//bin/wasmedge Removing /Users/4ge1/.wasmedge//bin/wasmedgec Removing /Users/4ge1/.wasmedge//include/wasmedge/ Removing /Users/4ge1/.wasmedge//include/wasmedge/wasmedge.h Removing /Users/4ge1/.wasmedge//include/wasmedge/version.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum.inc Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_configure.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_errcode.h Removing /Users/4ge1/.wasmedge//include/wasmedge/int128.h Removing /Users/4ge1/.wasmedge//include/wasmedge/enum_types.h Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.0.3.tbd Removing /Users/4ge1/.wasmedge//lib/libwasmedge.tbd Removing /Users/4ge1/.wasmedge//lib/libwasmedge.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.0.3.dylib Removing /Users/4ge1/.wasmedge//lib/libwasmedge.0.tbd Removing /Users/4ge1/.wasmedge/plugin/ggml-common.h Removing /Users/4ge1/.wasmedge/plugin/ggml-metal.metal Removing /Users/4ge1/.wasmedge/plugin/libwasmedgePluginWasiLogging.dylib Removing /Users/4ge1/.wasmedge/plugin/libwasmedgePluginWasiNN.dylib Removing /Users/4ge1/.wasmedge/env Removing /Users/4ge1/.wasmedge/bin Removing /Users/4ge1/.wasmedge/include/wasmedge Removing /Users/4ge1/.wasmedge/plugin Removing /Users/4ge1/.wasmedge/lib Removing /Users/4ge1/.wasmedge/include Removing /Users/4ge1/.wasmedge cat: /Users/4ge1/.zshrc: No such file or directory Info: WasmEdge Installation at /Users/4ge1/.wasmedge

Info: Fetching WasmEdge-0.13.5

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WasmEdge-GGML-Plugin

Info: Detected CUDA version from nvcc:

Info: CUDA version is not detected from nvcc: Use the CPU version.

Info: Or you can use '-c 11' or '-c 12' to install the cuda-11 or cuda-12 version manually.

Info: Use b3405 GGML plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Fetching WASI-Logging-Plugin

~/gaianet/tmp ~/gaianet ######################################################################## 100.0% ~/gaianet Info: Installation of wasmedge-0.13.5 successful

source /Users/4ge1/.wasmedge/env to use wasmedge binaries

[+] Installing Qdrant binary...

[+] Downloading LlamaEdge API server ... ######################################################################## 100.0% ######################################################################## 100.0%

[+] Downloading dashboard ...

[+] Generating node ID ... [2024-07-23 22:43:05.562] [error] loading failed: length out of bounds, Code: 0x27 [2024-07-23 22:43:05.563] [error] Bytecode offset: 0x00002632 [2024-07-23 22:43:05.563] [error] At AST node: code section [2024-07-23 22:43:05.563] [error] At AST node: module [2024-07-23 22:43:05.563] [error] File name: "/Users/4ge1/gaianet/registry.wasm" 4ge1@4ge1deMacBook-Pro ~ % [+] Downloading dashboard ...

[+] Generating node ID ... [2024-07-23 22:43:05.562] [error] loading failed: length out of bounds, Code: 0x27 [2024-07-23 22:43:05.563] [error] Bytecode offset: 0x00002632 [2024-07-23 22:43:05.563] [error] At AST node: code section [2024-07-23 22:43:05.563] [error] At AST node: module [2024-07-23 22:43:05.563] [error] File name: "/Users/4ge1/gaianet/registry.wasm"

juntao commented 3 months ago

It is likely a firewall issue -- the wasm files are not downloaded completely.