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

备份失败 #4637

Closed
jiahe-tan-u opened this issue Sep 20, 2023 · 7 comments · Fixed by halo-dev/docs#258
Closed

备份失败 #4637

jiahe-tan-u opened this issue Sep 20, 2023 · 7 comments · Fixed by halo-dev/docs#258
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@jiahe-tan-u
Copy link

是什么版本出现了此问题?

2.9

使用的什么数据库?

MySQL 8.x

使用的哪种方式部署?

Docker Compose

在线站点地址

No response

发生了什么?

点击创建备份备份失败

相关日志输出

No response

附加信息

image

@ruibaby
Copy link
Member

ruibaby commented Sep 20, 2023

/triage needs-information

请提供日志以供判断。

@f2c-ci-robot f2c-ci-robot bot added the triage/needs-information Indicates an issue needs more information in order to work on it. label Sep 20, 2023
@JohnNiang
Copy link
Member

需要把鼠标悬停在红色原点上,看看具体的错误信息。

@jiahe-tan-u
Copy link
Author

image
image

@JohnNiang
Copy link
Member

JohnNiang commented Sep 21, 2023

@jiahe-tan-u 目测是 Halo 的工作目录 Nginx 相关的目录导致无法备份。我建议:

  1. 创建新的目录用于当做 Halo 的工作目录,例如:./halo2,并将以下目录 attachments backups indices keys logs plugins themes 移动到 ./halo2
  2. 修改 Docker compose 文件:
version: "3"

services:
  halo:
    image: halohub/halo:2.9
    container_name: halo
    restart: on-failure:3
    depends_on:
      halodb:
        condition: service_healthy
    networks:
      halo_network:
    volumes:
-     - ./:/root/.halo2
+     - ./halo2:/root/.halo2

@jiahe-tan-u
Copy link
Author

感谢回答,已经不考虑这个问题了

@ruibaby
Copy link
Member

ruibaby commented Sep 24, 2023

/close

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 24, 2023

@ruibaby: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@f2c-ci-robot f2c-ci-robot bot closed this as completed Sep 24, 2023
f2c-ci-robot bot pushed a commit to halo-dev/docs that referenced this issue Sep 27, 2023
#### What this PR does / why we need it:

目前 Halo 容器挂载目录配置 `./:/root/.halo2` 容易让用户无意在 Halo 工作目录添加一些其他无关目录,例如:Nginx 也挂载到当前目录。这可能会导致无法正常使用备份功能。目前也无法预知未来可能会发生什么样的错误。


#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#4637

#### Does this PR introduce a user-facing change?

```release-note
修改 Halo 容器工作目录挂载目标目录为 ./halo2
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants