GaiaNet-AI / gaianet-node

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

Failed to remove the default collection. #56

Open zchdu opened 1 month ago

zchdu commented 1 month ago

When I execute the command "gaianet init" It show :

[+] Checking the config.json file ...

[+] Downloading Phi-3-mini-4k-instruct-Q5_K_M.gguf ...

[+] Downloading all-MiniLM-L6-v2-ggml-model-f16.gguf ...

[+] Creating 'default' collection in the Qdrant instance ...

franksprotocols commented 1 month ago

could firstly gaianet stop, and check your task manager to see if qdrant still live in the tasklist, or you could stop it. then Gainet init

franksprotocols commented 1 month ago

if doesn't work, you can search GAIANET folder, and delete the whole folder, install by running curl -sSfL 'https://raw.githubusercontent.com/GaiaNet-AI/gaianet-node/main/install.sh' | bash once again.

zchdu commented 1 month ago

Thank you for your reply, in fact the reason for this problem is that I use a proxy, and my proxy can not access localhost. The solution is follows: In the gaianet script, when using curl to access the local galanet, add the --noproxy localhost option

These are the two places that need to be modified. https://github.com/GaiaNet-AI/gaianet-node/blob/95f8feecfae4f3069631ef609a0ea858bafb9c40/gaianet#L211

del_response=$(curl --noproxy localhost -s -X DELETE http://localhost:6333/collections/$embedding_collection_name \ -H "Content-Type: application/json")

https://github.com/GaiaNet-AI/gaianet-node/blob/95f8feecfae4f3069631ef609a0ea858bafb9c40/gaianet#L254

response=$(curl --noproxy localhost -s -X POST http://localhost:6333/collections/$embedding_collection_name/snapshots/upload?priority=snapshot \ -H 'Content-Type:multipart/form-data' \ -F 'snapshot=@default.snapshot')

zchdu commented 1 month ago

如果有人遇到和我一样的问题(我想大部分是在中国),请使用上述的解决方法。

zchdu commented 1 month ago

another place need to be modified: https://github.com/GaiaNet-AI/gaianet-node/blob/95f8feecfae4f3069631ef609a0ea858bafb9c40/gaianet#L778

darktuJJ commented 1 month ago

公司遇到提到同样的问题(我想大部分在国内),请使用上述的解决方案。

按照您的方法修改了211和254行,还是出现同样的问题 @zchdu

juntao commented 1 month ago

If you are using shadowsockets or another VPN, you could try this in the terminal

export no_proxy=localhost,127.0.0.0/8
darktuJJ commented 1 month ago

If you are using shadowsockets or another VPN, you could try this in the terminal

export no_proxy=localhost,127.0.0.0/8

thanks,I will try it

JYC0413 commented 1 month ago

If you are using shadowsockets or another VPN, you could try this in the terminal

export no_proxy=localhost,127.0.0.0/8

this works for me!

I got this error. At first I tried to delete the qdrant folder in gaianet, but I got a new error [Error] Failed to recover from the collection snapshot. An error occurred processing fieldsnapshot: File I/O error : No such file or directory (os error 2). So I found this issues, enter this command and delete other files in gaianet except *.gguf (this operation can save a lot of time)

Finally I successfully started the service!!! image