admin avatar

then echo "Variable MINIO_VOLUMES not set in /etc/default/minio"的解放方法

🕜 by admin





折騰了一晚上minio都出現了

then echo "Variable MINIO_VOLUMES not set in /etc/default/minio"的錯誤

完整錯誤信息如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Scheduled restart job, restart counter is at 5.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: Stopped MinIO.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Start request repeated too quickly.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Failed with result 'exit-code'.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: Failed to start MinIO.
...skipping...
● minio.service - MinIO
     Loaded: loaded (/etc/systemd/system/minio.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2022-07-01 00:18:56 CST; 2min 26s ago
       Docs: https://docs.min.io
    Process: 13209 ExecStartPre=/bin/bash -c if [ -z "${MINIO_VOLUMES}" ]; then echo "Variable MINIO_VOLUMES not set in /etc/default/minio"; exit 1; fi (code=exited, stat>
    Process: 13210 ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES (code=exited, status=1/FAILURE)
   Main PID: 13210 (code=exited, status=1/FAILURE)
        CPU: 140ms

Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Scheduled restart job, restart counter is at 5.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: Stopped MinIO.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Start request repeated too quickly.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: minio.service: Failed with result 'exit-code'.
Jul 01 00:18:56 debian-2gb-ash-1 systemd[1]: Failed to start MinIO.

錯了一晚上的原因在於是沒有使用正確的命令查看 MINIO的錯誤日記

1
2
systemctl status minio //只能查看運行狀態
journalctl -fu minio.service //詳細查看錯誤和運行日記

最後查看日記發現存儲目錄沒有寫入權限導致報錯。

chmod -R 777 /var/www. //一定要戴上-R參數





💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms