首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在ubuntu中启动minio,因为无法创建(/mnt/data/.mino.sys/tmp)文件访问被拒绝

无法在ubuntu中启动minio,因为无法创建(/mnt/data/.mino.sys/tmp)文件访问被拒绝
EN

Server Fault用户
提问于 2022-12-08 19:38:54
回答 1查看 650关注 0票数 0

我正在安装最新的minio上的Bubuntu18.04遵循minio安装指示从这里。

安装之后,尝试使用systemctl启动minio.service运行它。

但这不符合信息。

代码语言:javascript
复制
...skipping...
● minio.service - MinIO
   Loaded: loaded (/etc/systemd/system/minio.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2022-12-08 17:03:45 CST; 2min 1s ago
     Docs: https://docs.min.io
  Process: 5072 ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES (code=exited, status=1/FAILURE)
  Process: 5050 ExecStartPre=/bin/bash -c if [ -z "${MINIO_VOLUMES}" ]; then echo "Variable MINIO_VOLUMES not set in /etc/default/minio"; exit 1; fi (code=exited, status=0/SUCCES
 Main PID: 5072 (code=exited, status=1/FAILURE)

12月 08 17:03:45 nky systemd[1]: minio.service: Service hold-off time over, scheduling restart.
12月 08 17:03:45 nky systemd[1]: minio.service: Scheduled restart job, restart counter is at 5.
12月 08 17:03:45 nky systemd[1]: Stopped MinIO.
12月 08 17:03:45 nky systemd[1]: minio.service: Start request repeated too quickly.
12月 08 17:03:45 nky systemd[1]: minio.service: Failed with result 'exit-code'.
12月 08 17:03:45 nky systemd[1]: Failed to start MinIO.

注意到'MINIO_VOLUMES‘有问题,但是我在/etc/default/minio中设置了变量

代码语言:javascript
复制
MINIO_ROOT_USER=myminioadmin
MINIO_ROOT_PASSWORD=minio-secret-key-change-me
# MINIO_VOLUMES sets the storage volume or path to use for the MinIO server.
MINIO_VOLUMES="/mnt/data"

然后,我尝试使用minio命令来启动服务器。

代码语言:javascript
复制
minio server /mnt/data  --console-address :9090

出现了更多的错误。

代码语言:javascript
复制
Error: unable to rename (/mnt/data/.minio.sys/tmp -> /mnt/data/.minio.sys/tmp-old/de70b42d-9451-4876-8d28-c5aba44f331b) file access denied, drive may be faulty please investigate (*fmt.wrapError)
       6: internal/logger/logger.go:258:logger.LogIf()
       5: cmd/prepare-storage.go:88:cmd.bgFormatErasureCleanupTmp()
       4: cmd/xl-storage.go:252:cmd.newXLStorage()
       3: cmd/object-api-common.go:61:cmd.newStorageAPI()
       2: cmd/format-erasure.go:678:cmd.initStorageDisksWithErrors.func1()
       1: internal/sync/errgroup/errgroup.go:123:errgroup.(*Group).Go.func1()

API: SYSTEM()
Time: 19:47:11 UTC 12/08/2022
Error: unable to create (/mnt/data/.minio.sys/tmp) file access denied, drive may be faulty please investigate (*fmt.wrapError)
       6: internal/logger/logger.go:258:logger.LogIf()
       5: cmd/prepare-storage.go:95:cmd.bgFormatErasureCleanupTmp()
       4: cmd/xl-storage.go:252:cmd.newXLStorage()
       3: cmd/object-api-common.go:61:cmd.newStorageAPI()
       2: cmd/format-erasure.go:678:cmd.initStorageDisksWithErrors.func1()
       1: internal/sync/errgroup/errgroup.go:123:errgroup.(*Group).Go.func1()
ERROR Unable to use the drive /mnt/data: drive access denied: Invalid arguments specified
EN

回答 1

Server Fault用户

发布于 2022-12-08 20:16:48

最后发现问题是新版本的minio服务器与旧的minio文件不兼容,所以我删除了所有的minio文件,并为minio创建了一个新文件夹。然后就成功了。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1117594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档