1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[BUG] Halo 更新失败

Open mx2913 opened this issue 2 years ago • 1 comments

联系方式

No response

1Panel 版本

1.3.4

问题描述

halo 更新失败,错误日志见下

stderr: unknown shorthand flag: 'f' in -f See 'docker --help'. Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "/root/.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem") --tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem") --tlskey string Path to TLS key file (default "/root/.docker/key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit Management Commands: builder Manage builds config Manage Docker configs container Manage containers context Manage contexts engine Manage the docker engine image Manage images network Manage networks node Manage Swarm nodes plugin Manage plugins secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. 

重现步骤

正常更新 halo 应用

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

mx2913 avatar Jun 16 '23 06:06 mx2913

麻烦提供一下 Docker 版本。

wanghe-fit2cloud avatar Jun 16 '23 07:06 wanghe-fit2cloud

麻烦提供一下 Docker 版本。

Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea
 Built:             Wed Nov 13 07:25:41 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          23.0.3
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.7
  Git commit:       59118bf
  Built:            Tue Apr  4 22:02:01 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

mx2913 avatar Jun 21 '23 05:06 mx2913

升级 Client 版本,然后进入主机 - 终端,执行以下命令可验证是否支持:

docker compose ls

wanghe-fit2cloud avatar Jun 21 '23 06:06 wanghe-fit2cloud

升级 Client 版本,然后进入主机 - 终端,执行以下命令可验证是否支持:

docker compose ls

升级失败后,在已安装页面同步之后发现无法出现更新提示,上面显示版本已经是最新的了,但是进入到应用中发现实际还是旧版本

mx2913 avatar Jun 21 '23 07:06 mx2913

在已安装应用列表,点击应用的 重建 按钮试一下。

wanghe-fit2cloud avatar Jun 21 '23 07:06 wanghe-fit2cloud

在已安装应用列表,点击应用的 重建 按钮试一下。

重建无效,尝试改 1Panel.db 中的数据库文件重启面板也同样无效

mx2913 avatar Jun 21 '23 08:06 mx2913

在已安装应用列表,点击应用的 重建 按钮试一下。

重建无效,尝试改 1Panel.db 中的数据库文件重启面板也同样无效

点击应用的 详情 按钮,有显示具体错误信息吗? 麻烦截图提供一下。

wanghe-fit2cloud avatar Jun 21 '23 08:06 wanghe-fit2cloud

Halo 应用 提示 container is not found

截图信息不显示了,还是从数据库导出来的

mx2913 avatar Jun 21 '23 08:06 mx2913

Halo 应用 提示 container is not found

这是因为 Halo 镜像 pull 失败导致的容器没有重建成功。

容器菜单 - 配置 - 镜像加速,用下面的地址配置一下:

https://hub-mirror.c.163.com
https://docker.m.daocloud.io
https://ghcr.io
https://mirror.baidubce.com
https://docker.nju.edu.cn

wanghe-fit2cloud avatar Jun 21 '23 08:06 wanghe-fit2cloud

PANEL_DB_HOST 这个变量如何修改,halo 中的 docker-compse 指向的这个 service name 无法发现数据库服务

mx2913 avatar Jun 21 '23 08:06 mx2913

PANEL_DB_HOST 这个变量如何修改,halo 中的 docker-compse 指向的这个 service name 无法发现数据库服务

在应用的安装目录中,有 .env 文件。

wanghe-fit2cloud avatar Jun 21 '23 08:06 wanghe-fit2cloud

PANEL_DB_HOST 这个变量如何修改,halo 中的 docker-compse 指向的这个 service name 无法发现数据库服务

在应用的安装目录中,有 .env 文件。

可以了,麻烦大佬了

mx2913 avatar Jun 21 '23 09:06 mx2913

v1.3.6 版本已修复。

wanghe-fit2cloud avatar Jun 26 '23 15:06 wanghe-fit2cloud