You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
本地多机使用RPM部署nebula graph
使用br 备份数据到阿里云oss,备份结束时报的错。导致备份失败,
现象是,在oss当中有生成备份的文件。
使用 ./br show 无法查询到备份的数据,无法还原。 报错信息如下:
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Start to cleanup data in nebula cluster.","time":"2023-12-01T14:03:17.217Z"}
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Start cleanup data in external storage.","time":"2023-12-01T14:03:17.265Z"}
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Clean up backup data successfully.","time":"2023-12-01T14:03:17.276Z"}
Cleanup backup BACKUP_2023_12_01_13_58_36 successfully after backup failed.Error: upload local tmp file to remote storage s3://my-bucket/nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: upload from /tmp/nebula-br/BACKUP_2023_12_01_13_58_36.meta to nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: SecondLevelDomainForbidden: Please use virtual hosted style to access.
status code: 403, request id: xxx, host id:
Usage:
br backup full [flags]
Flags:
-h, --help help for full
Global Flags:
--debug Output log in debug level or not
--log string Specify br detail log path (default "br.log")
--meta string Specify meta server
--s3.access_key string S3 Option: set access key id
--s3.endpoint string S3 Option: set the S3 endpoint URL, please specify the http or https scheme explicitly
--s3.region string S3 Option: set region or location to upload or download backup
--s3.secret_key string S3 Option: set secret key for access id
--spaces stringArray (EXPERIMENTAL)space names.
By this option, user can specify which spaces to backup. Now this feature is still experimental.
If not specified, will backup all spaces.
--storage string backup target url, format: <SCHEME>://<PATH>.
<SCHEME>: a string indicating which backend type. optional: local, s3.
now only s3-compatible is supported.
example:
for local - "local:///the/local/path/to/backup"
for s3 - "s3://example/url/to/the/backup"
{"level":"fatal","msg":"upload local tmp file to remote storage s3://my-bucket/nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: upload from /tmp/nebula-br/BACKUP_2023_12_01_13_58_36.meta to nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: SecondLevelDomainForbidden: Please use virtual hosted style to access.\n\tstatus code: 403, request id: xxx, host id: ","time":"2023-12-01T14:03:17.277Z"}
查询阿里云文档 给的解决方式
SecondLevelDomainForbidden
Please use virtual hosted style to access
问题原因:Host错误。
本地多机使用RPM部署nebula graph
使用br 备份数据到阿里云oss,备份结束时报的错。导致备份失败,
现象是,在oss当中有生成备份的文件。
使用 ./br show 无法查询到备份的数据,无法还原。
报错信息如下:
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Start to cleanup data in nebula cluster.","time":"2023-12-01T14:03:17.217Z"}
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Start cleanup data in external storage.","time":"2023-12-01T14:03:17.265Z"}
{"backup name":"BACKUP_2023_12_01_13_58_36","level":"info","msg":"Clean up backup data successfully.","time":"2023-12-01T14:03:17.276Z"}
Cleanup backup BACKUP_2023_12_01_13_58_36 successfully after backup failed.Error: upload local tmp file to remote storage s3://my-bucket/nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: upload from /tmp/nebula-br/BACKUP_2023_12_01_13_58_36.meta to nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: SecondLevelDomainForbidden: Please use virtual hosted style to access.
status code: 403, request id: xxx, host id:
Usage:
br backup full [flags]
Flags:
-h, --help help for full
Global Flags:
--debug Output log in debug level or not
--log string Specify br detail log path (default "br.log")
--meta string Specify meta server
--s3.access_key string S3 Option: set access key id
--s3.endpoint string S3 Option: set the S3 endpoint URL, please specify the http or https scheme explicitly
--s3.region string S3 Option: set region or location to upload or download backup
--s3.secret_key string S3 Option: set secret key for access id
--spaces stringArray (EXPERIMENTAL)space names.
By this option, user can specify which spaces to backup. Now this feature is still experimental.
If not specified, will backup all spaces.
{"level":"fatal","msg":"upload local tmp file to remote storage s3://my-bucket/nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: upload from /tmp/nebula-br/BACKUP_2023_12_01_13_58_36.meta to nebula-backup/BACKUP_2023_12_01_13_58_36/BACKUP_2023_12_01_13_58_36.meta failed: SecondLevelDomainForbidden: Please use virtual hosted style to access.\n\tstatus code: 403, request id: xxx, host id: ","time":"2023-12-01T14:03:17.277Z"}
查询阿里云文档 给的解决方式
SecondLevelDomainForbidden
Please use virtual hosted style to access
问题原因:Host错误。
解决方案:通过外网访问OSS服务时,以URL的形式表示访问的OSS资源。OSS的URL结构为://.<外网Endpoint>/ 。其中Schema包含HTTP或者HTTPS,Bucket表示存储空间名称,外网Endpoint为Bucket所在数据中心供外网访问的Endpoint,Object填写上传到OSS上的文件的访问路径。
例如您的Region为华东1(杭州),Bucket名称为examplebucket,Object访问路径为destfolder/example.txt,则外网访问地址为https://examplebucket.oss-cn-hangzhou.aliyuncs.com/destfolder/example.txt。
The text was updated successfully, but these errors were encountered: