Error Messages:
[2022-04-25 23:07:20,681][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection xxx does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
Solution
When deleting, you must delete the index first and then the set. If the order is reversed, an error will be reported
When creating an index, create a set first. If the order is reversed, an error will be reported
def insert_ini(self, collection_name, vectors, ids=None, partition_tag=None):
try:
if self.has_collection(collection_name):
self.client.drop_index(collection_name)
self.client.drop_collection(collection_name)
self.creat_collection(collection_name)
self.create_index(collection_name)
print('collection info: {}'.format(self.client.get_collection_info(collection_name)[1]))
self.create_partition(collection_name, partition_tag)
if vectors != -1:
status, ids = self.client.insert(
collection_name=collection_name,
records=vectors,
ids=ids,
partition_tag=partition_tag)
self.client.flush([collection_name])
print(
'Insert {} entities, there are {} entities after insert data.'.
format(
len(ids), self.client.count_entities(collection_name)[1]))
return status, ids
else:
return -1, ids
except Exception as e:
print("Milvus insert error:", e)
After finishing the whole, be sure to check the log in the background of the component to see if there are exceptions
Stand alone version
cd /home/$USER/milvus/logs
The log is completely normal only when there is no error report
cat milvus-22-04-25-22:22-error.log
Mishards cluster version, or report an error
[2022-04-26 01:13:47,971][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error: Collection already exists and it is in delete state, please wait a second
[2022-04-26 01:13:47,975][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
[2022-04-26 01:13:47,978][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
[2022-04-26 01:13:47,981][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
[2022-04-26 01:13:47,985][ERROR][SERVER][OnExecute][reqsched_thread] [insert][0] Collection call_12345_prd not found
[2022-04-26 01:13:47,985][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
[2022-04-26 01:13:47,987][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
[2022-04-26 01:13:47,990][ERROR][SERVER][TakeToExecute][reqsched_thread] Request failed with code: Error code(30100): Collection call_12345_prd does not exist. Use milvus.has_collection to verify whether the collection exists. You also can check whether the collection name exists.
Go to the corresponding node and check the log files one by one.
kubectl get pods
kubectl exec -it milvus-release-mishards-767dc476bf-fxz8v -- /bin/bash
kubectl exec -it milvus-release-readonly-6cb6c5bcd9-9m4c5 -- /bin/bash
kubectl exec -it milvus-release-readonly-6cb6c5bcd9-mzrh6 -- /bin/bash
kubectl exec -it milvus-release-writable-7776777fcc-dsdmv -- /bin/bash
Read More:
- [Solved] K8s cluster build error: error: kubectl get csr No resources found.
- kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv
- [Solved] Error from server (InternalError): error when creating “ingress.yaml”: Internal error occurred: fail
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- [Solved] Docker Error: Failed to connect to bus: Host is down
- Kubernetes Error: Error in configuration: unable to read client-cert* unable to read client-key*
- Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container…
- kernel module insert error: ERROR: could not insert module …../file.ko : File exits
- [environment] docker: error response from daemon: OCI runtime
- How to Solve Doris dynamic partition table routineload Error
- [Solve] DAAS Pubulish Error: Failed read-only file system
- file_name.sh: 3: Syntax error: “(“ unexpected [How to Solve]
- Error when manipulating files: zipfile.BadZipFile: File is not a zip file
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed [Solved]
- Kubernetes create secret Error: Error from server (InternalError): Internal error occurred…
- runtime error ‘9’: subscript out of range error in VBA programming
- [Solved] ORA-21525: attribute number or (collection element at index) string violated its constraints
- [Solved] Hive execute insert overwrite error: could not be cleared up