zilliztech / milvus-backup

Backup and restore tool for Milvus
Apache License 2.0
135 stars 50 forks source link

[Bug]: milvus-backup exception error #432

Open zhangzf875 opened 1 month ago

zhangzf875 commented 1 month ago

Current Behavior

When milvus-backup is installed, run. /milvus-backup server to start the service. Then run the. /milvus-backup check command. An error is detected: 0.4.24 (Built on 2024-09-20T02:08:15Z from Git SHA 290692046dd95b1140d3c0d376cf7a5e7ade7971) config:backup.yaml [2024/09/24 14:43:48.558 +08:00] [INFO] [logutil/logutil.go:165] ["Log directory"] [configDir=] [2024/09/24 14:43:48.558 +08:00] [INFO] [logutil/logutil.go:166] ["Set log file to "] [path=logs/backup.log] [2024/09/24 14:43:48.564 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] [2024/09/24 14:43:48.765 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] [2024/09/24 14:43:49.166 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] [2024/09/24 14:43:49.967 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] [2024/09/24 14:43:51.568 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] [2024/09/24 14:43:54.571 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get \"http://localhost:9000/a-bucket/?location=\": dial tcp 127.0.0.1:9000: connect: connection refused"] The configuration is all default, what should I do with this,Have any friends met them

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

zhuwenxing commented 1 month ago
[2024/09/24 14:43:48.564 +08:00] [WARN] [storage/minio_chunk_manager.go:115] ["failed to check blob bucket exist"] [bucket=a-bucket] [error="Get "http://localhost:9000/a-bucket/?location=": dial tcp 127.0.0.1:9000: connect: connection refused"]

As the log indicates, this error is caused by the failure to connect to Minio. Could you please confirm your Minio configuration?

The configuration is all default

If your Milvus is deployed via Docker Compose and Milvus-backup is running on the same machine, the default configuration will work. However, if your Milvus deployment is not in this way, you'll need to configure it case-by-case.

zhangzf875 commented 1 month ago

I used docker to install and deploy, but now I don't know how to modify the configuration

wayblink commented 1 month ago

@zhangzf875 It may caused by the port of minio is not exposed outside the docker. Need to edit the docker yaml to expose the ports