用的是离线包,但是安装的时候报错提示“manifest unknown: manifest unknown”

之前是不是在这个服务器上有安装过MeterSphere?
执行msctl uninstall,然后执行rm -rf /opt/metersphere清理干净,再重新安装一下。

1 个赞

如果你遗留的/opt/metersphere/.env文件中的MS_IMAGE_PREFIX跟现在要装的安装包中install.conf文件中的MS_IMAGE_PREFIX不一样,就会导致即使加载了镜像还是会去在线拉取。

你应该是装过V2又装V3,截图里能看出离线加载的镜像仓库地址跟在线拉取的镜像仓库地址不一样,所以导致了这个问题。
要注意的是V2版本是不支持升级到V3版本的,数据不兼容,如果要使用V3版本,要卸载V2,并把V2版本的数据目录删除掉。

嗯,是安装过,卸载后重新安装,上一步的报错是没了,但出现“no such file or directory”的问题了

你是怎么卸载的呢,然后删除了什么目录?

image
按这个命令操作的

没删除成功,我重新操作一下


重新删除了一下,删除成功了,还是报出现“no such file or directory”这个问题

msctl uninstall
rm -rf /opt/metersphere
rm -rf ~/.msrc
rm -rf /usr/bin/msctl
执行以上命令完全卸载干净,再重装试试呢。

还是不行


确保/opt/metersphere删除干净了,这里看起来并没有。

这边我重新删除过的

换个安装目录试一下吧,执行下面的命令。
msctl uninstall
rm -rf /opt/metersphere
rm -rf ~/.msrc
rm -rf /usr/bin/msctl
然后进入安装包,修改install.conf文件里的MS_BASE,改成其他目录再安装。

不行

你是不是之前有删除过/var/lib/docker目录下的一些数据?
能把安装日志前面的部分也截出来么?

你是不是之前有删除过/var/lib/docker目录下的一些数据?-——没删除过
能把安装日志前面的部分也截出来么?
Microsoft Windows [版本 10.0.22631.4317]
(c) Microsoft Corporation。保留所有权利。

C:\Users\pc>ubuntu
gavin@DESKTOP-JFIBBVS:~$ su root
Password:
root@DESKTOP-JFIBBVS:/home/gavin# cd /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta#
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta#
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta# cat /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/install.conf |grep MS_BASE

安装路径, MeterSphere 配置及数据文件默认将安装在 ${MS_BASE}/metersphere 目录下

MS_BASE=/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta#
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta# /bin/bash install.sh
安装目录为 /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere, 开始进行安装
[MeterSphere Log]: 拷贝安装文件到目标目录
cp: ‘./metersphere/version’ and ‘/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/version’ are the same file
cp: ‘./metersphere’ and ‘/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere’ are the same file
[MeterSphere Log]: ======================= 开始安装 =======================
[MeterSphere Log]: 检测到 Docker 已安装,跳过安装步骤
[MeterSphere Log]: 启动 Docker
[MeterSphere Log]: 检测到 Docker Compose 已安装,跳过安装步骤
[MeterSphere Log]: 加载镜像
Loaded image: registry.fit2cloud.com/metersphere/metersphere-ce:v3.0.0-beta
Loaded image: registry.fit2cloud.com/metersphere/kafka:3.7.0
Loaded image: registry.fit2cloud.com/metersphere/mysql:8.0.37
Loaded image: registry.fit2cloud.com/metersphere/redis:7.2.4-alpine
Loaded image: registry.fit2cloud.com/metersphere/minio:RELEASE.2024-05-07T06-41-25Z
[MeterSphere Log]: 启动服务

Removing network metersphere_ms-network
Network metersphere_ms-network not found.
Removing volume metersphere_ms-mysql-data
Removing volume metersphere_ms-redis-data
Removing volume metersphere_ms-minio-data

Creating network “metersphere_ms-network” with driver “bridge”
Creating volume “metersphere_ms-mysql-data” with default driver
Creating volume “metersphere_ms-redis-data” with default driver
Creating volume “metersphere_ms-minio-data” with default driver
Creating mysql …
Creating kafka …
Creating task-runner …
Creating redis …
Creating minio …
Creating redis … error

ERROR: for redis Cannot create container for service redis: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/redis:/var/lib/docker/volumes/metersphere_ms-redis-data/_data, flags: 0x1000: no such file or directory
Creating mysql … error

ERROR: for mysql Cannot create container for service mysql: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/mysql:/var/lib/docker/volumes/metersphere_ms-mysql-data/_data, flags: 0x1000: no such file or directory
Creating minio … error

ERROR: for minio Cannot start service minio: error while mounting volume ‘/var/lib/docker/volumes/metersphere_ms-minio-data/_data’: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/minio:/var/lib/docker/volumes/metersphere_ms-minio-data/_data, flags: 0x1000: no such file or directory
Creating kafka … done
Creating task-runner … done
Creating result-hub …
Creating result-hub … done

ERROR: for redis Cannot create container for service redis: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/redis:/var/lib/docker/volumes/metersphere_ms-redis-data/_data, flags: 0x1000: no such file or directory

ERROR: for mysql Cannot create container for service mysql: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/mysql:/var/lib/docker/volumes/metersphere_ms-mysql-data/_data, flags: 0x1000: no such file or directory

ERROR: for minio Cannot start service minio: error while mounting volume ‘/var/lib/docker/volumes/metersphere_ms-minio-data/_data’: failed to mount local volume: mount /mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta/metersphere/data/minio:/var/lib/docker/volumes/metersphere_ms-minio-data/_data, flags: 0x1000: no such file or directory
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta#
root@DESKTOP-JFIBBVS:/mnt/c/learn/Metersphere/metersphere-ce-offline-installer-v3.0.0-beta#

这边是我担心修改完“install.conf”文件后有缓存,所以新打开了一个cmd窗口进行操作的


这个不要这么改,这里只要改一个基础路径就好,比如把/opt/改成/data,不要改这么长一串路径而且是路径包含了安装包路径。