Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求教oracle cloud对象存储是否支持,或者如何设置 #551

Closed
dolacmeo opened this issue Feb 17, 2022 · 7 comments
Closed

求教oracle cloud对象存储是否支持,或者如何设置 #551

dolacmeo opened this issue Feb 17, 2022 · 7 comments
Labels
question Further information is requested

Comments

@dolacmeo
Copy link

Alist Version / Alist 版本

v2

Describe the bug / 问题描述

oraclecloud 的对象存储好像有点不太一样
endpoint格式为
https://<name-space>.compat.objectstorage.ap-tokyo-1.oraclecloud.com


rclone支持oraclecloud 使用s3类型 配置如下:

[oracle]
type = s3
provider = Other
access_key_id = ****6d6847ee*****
secret_access_key = *****abUTJl+tB0aTJcZ5*****
endpoint = https://<name-space>.compat.objectstorage.ap-tokyo-1.oraclecloud.com
acl = private

在Alist设置中我用以下关系进行对应

name-space ===> Bucket
compat.objectstorage.ap-tokyo-1.oraclecloud.com ==>Endpoint
ap-tokyo-1 ===> Region
access_key_id===>Access Key
secret_access_key===>Access Secret


目前是无法获取列表,docker后台日志报错

所以到底是设置错了,还是BUG?

Reproduction / 复现链接

No response

日志 / Logs

2022/02/17 02:03:37 [Recovery] 2022/02/17 - 02:03:37 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/lib/go/src/runtime/panic.go:221 (0x4519e6)
/usr/lib/go/src/runtime/signal_unix.go:735 (0x4519b6)
/app/drivers/s3/s3.go:102 (0xd5f19e)
/app/drivers/s3/driver.go:135 (0xd5da65)
/app/drivers/s3/driver.go:184 (0xd5df71)
/app/drivers/operate/operate.go:12 (0xe5803c)
/app/server/controllers/path.go:113 (0xe5802d)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xe5c44a)
/app/server/middlewares/account.go:14 (0xe5c416)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xe5cb2a)
/app/server/middlewares/path.go:22 (0xe5caf2)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xe4bb41)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99 (0xe4bb2c)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xe4ada6)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/logger.go:241 (0xe4ad89)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xe4a2dd)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489 (0xe49f65)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445 (0xe49ac4)
/usr/lib/go/src/net/http/server.go:2879 (0x6ba87a)
/usr/lib/go/src/net/http/server.go:1930 (0x6b5f27)
/usr/lib/go/src/runtime/asm_amd64.s:1581 (0x46c540)
@xhofe
Copy link
Member

xhofe commented Feb 17, 2022

无账号 需要测试可以的话:邮件

@xhofe xhofe added the question Further information is requested label Feb 17, 2022
@github-actions
Copy link

Hello @dolacmeo, please input issue by template and add detail. Issues labeled by question will be closed if no activities in 7 days.
你好 @dolacmeo,请按照issue模板填写, 并详细说明问题/复现步骤/实现思路或提供更多信息等, 7天内未回复issue自动关闭。

@dolacmeo
Copy link
Author

无账号 需要测试可以的话:邮件

邮件已回复,感谢

@xhofe
Copy link
Member

xhofe commented Feb 17, 2022

你这个bucket里是没有文件的吗

@dolacmeo
Copy link
Author

你这个bucket里是没有文件的吗

有啊 根目录进去两个文件夹

【有文件】bucket-standard
【无文件】bucket-static

@xhofe
Copy link
Member

xhofe commented Feb 17, 2022

两个原因:

  1. 目前只支持单独添加一个bucket,不支持从namespace列出多个bucket
  2. Oracle只支持S3ForcePathStyle

所以应该:
endpoint:name-space.compat.objectstorage.ap-tokyo-1.oraclecloud.com
bucket: 具体的bucket名称,如bucket-standard
S3ForcePathStyle: 打开
下个版本可用。

@dolacmeo
Copy link
Author

👍 我提供的 Key&Secret
会保留至下个版本可用为止,请放心测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants