GaiaNet-AI/gaianet-node

Failed to remove the default collection.

Opened this issue · 10 comments

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

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

[+] Downloading Phi-3-mini-4k-instruct-Q5_K_M.gguf ...
* Using the cached Phi-3-mini-4k-instruct-Q5_K_M.gguf in /home/shy/gaianet

[+] Downloading all-MiniLM-L6-v2-ggml-model-f16.gguf ...
* Using the cached all-MiniLM-L6-v2-ggml-model-f16.gguf in /home/shy/gaianet

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

* Remove the existed 'default' Qdrant collection ...

  Failed to remove the default collection. 

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

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.

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.

del_response=$(curl -s -X DELETE http://localhost:6333/collections/$embedding_collection_name \

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

response=$(curl -s -X POST http://localhost:6333/collections/$embedding_collection_name/snapshots/upload?priority=snapshot \

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')

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

another place need to be modified:

status_code=$(curl -o /dev/null -s -w "%{http_code}\n" \

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

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

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

export no_proxy=localhost,127.0.0.0/8

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

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 field snapshot: 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

If you are using shadowsockets or another VPN, you could try this in the terminal如果您使用的是 Shadowsockets 或其他 VPN,您可以在终端中尝试此操作

export no_proxy=localhost,127.0.0.0/8

对于v2ray也管用