不品人间酒 发表于 2024-2-21 22:49:25

【待反馈】docker安装不了,cloudreve无法启动

本帖最后由 不品人间酒 于 2024-2-23 16:56 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:7.9.5
系统版本:CentOS 8.5.2111 x86_64
问题描述:前段时间为了安装图形化提示docker依赖冲突,所以卸载了docker,后面发现我的网盘cloudreve突然不能访问了,docker也安装不上了,一直报错。
相关截图(日志、错误):面板安装报错信息我直接复制进来,说内容不允许,只能发附件了……

不品人间酒 发表于 2024-2-21 23:06:28

# dnf update
Repository base is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository AppStream is listed more than once in the configuration
created by dnf config-manager from https://download.docker.com/linux/centos/docker-ce.repo 200B/s | 386B   00:01   
Errors during downloading metadata for repository 'download.docker.com_linux_centos_docker-ce.reposudo':
- Status code: 404 for https://download.docker.com/linux/centos/docker-ce.reposudo/repodata/repomd.xml (IP: 13.32.121.29)
错误:为仓库 'download.docker.com_linux_centos_docker-ce.reposudo' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
#


大炮运维V587 发表于 2024-2-22 10:06:11

不品人间酒 发表于 2024-2-21 23:06
# dnf update
Repository base is listed more than once in the configurat ...

您好,你截图中的提示是无法连接到Docker的安装源

您先到服务器SSH终端里执行
mv /etc/yum.repos.d/docker-ce.repo /www/backup/docker-ce.repo
您到服务器SSH终端里执行
bash /www/server/panel/install/install_soft.sh 0 install docker_bin
先把Docker安装成功,然后重新安装你的cloudreve

不品人间酒 发表于 2024-2-22 17:20:22

大炮运维V587 发表于 2024-2-22 10:06
您好,你截图中的提示是无法连接到Docker的安装源

您先到服务器SSH终端里执行


正在选择下载节点...
http://dg2.bt.cn
--2024-02-22 17:17:08--https://download.bt.cn/install/public.sh
Resolving download.bt.cn (download.bt.cn)... 42.157.129.47, 240e:97e:4000:33f:103:212:48:148
Connecting to download.bt.cn (download.bt.cn)|42.157.129.47|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4560 (4.5K)
Saving to: ‘Tpublic.sh’

Tpublic.sh                           100%[===========================================================================>]   4.45K--.-KB/s    in 0s      

2024-02-22 17:17:08 (140 MB/s) - ‘Tpublic.sh’ saved

正在选择下载节点...
groupadd: group 'docker' already exists
--2024-02-22 17:17:10--http://dg2.bt.cn/src/docker-24.0.7-x86_64.tgz
Resolving dg2.bt.cn (dg2.bt.cn)... 36.133.1.8
Connecting to dg2.bt.cn (dg2.bt.cn)|36.133.1.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69831072 (67M)
Saving to: ‘docker-24.0.7.tgz’

docker-24.0.7.tgz                      100%[===========================================================================>]66.60M14.5MB/s    in 4.4s   

2024-02-22 17:17:15 (15.2 MB/s) - ‘docker-24.0.7.tgz’ saved

docker/
docker/docker
docker/docker-init
docker/dockerd
docker/runc
docker/ctr
docker/containerd-shim-runc-v2
docker/containerd
docker/docker-proxy
--2024-02-22 17:17:16--http://dg2.bt.cn/src/docker-compose-linux-x86_64
Resolving dg2.bt.cn (dg2.bt.cn)... 42.157.129.47
Connecting to dg2.bt.cn (dg2.bt.cn)|42.157.129.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59699273 (57M)
Saving to: ‘/usr/bin/docker-compose’

/usr/bin/docker-compose                100%[===========================================================================>]56.93M27.6MB/s    in 2.1s   

2024-02-22 17:17:23 (27.6 MB/s) - ‘/usr/bin/docker-compose’ saved

--2024-02-22 17:17:24--http://dg2.bt.cn/init/systemd/docker.service
Resolving dg2.bt.cn (dg2.bt.cn)... 42.157.129.47
Connecting to dg2.bt.cn (dg2.bt.cn)|42.157.129.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 642
Saving to: ‘/usr/lib/systemd/system/docker.service’

/usr/lib/systemd/system/docker.service 100%[===========================================================================>]   642--.-KB/s    in 0s      

2024-02-22 17:17:24 (123 MB/s) - ‘/usr/lib/systemd/system/docker.service’ saved

--2024-02-22 17:17:24--http://dg2.bt.cn/init/systemd/docker.socket
Resolving dg2.bt.cn (dg2.bt.cn)... 42.157.129.47
Connecting to dg2.bt.cn (dg2.bt.cn)|42.157.129.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 295
Saving to: ‘/usr/lib/systemd/system/docker.socket’

/usr/lib/systemd/system/docker.socket100%[===========================================================================>]   295--.-KB/s    in 0s      

2024-02-22 17:17:24 (57.6 MB/s) - ‘/usr/lib/systemd/system/docker.socket’ saved

--2024-02-22 17:17:24--http://dg2.bt.cn/init/systemd/containerd.service
Resolving dg2.bt.cn (dg2.bt.cn)... 36.133.1.8
Connecting to dg2.bt.cn (dg2.bt.cn)|36.133.1.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1264 (1.2K)
Saving to: ‘/usr/lib/systemd/system/containerd.service’

/usr/lib/systemd/system/containerd.ser 100%[===========================================================================>]   1.23K--.-KB/s    in 0s      

2024-02-22 17:17:25 (229 MB/s) - ‘/usr/lib/systemd/system/containerd.service’ saved

Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /usr/lib/systemd/system/docker.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /usr/lib/systemd/system/containerd.service.
|-Successify --- 命令已执行! ---

不品人间酒 发表于 2024-2-22 17:31:22

# ll
总用量 45648
-rw-r--r-- 1 root root      0 2月14 13:55 --add-repo
-rwxr-xr-x 1 wwwwww34324480 2月13 11:27 cloudreve
-rw-r--r-- 1 root root 12410880 1月12 13:42 cloudreve.db
-rw-r--r-- 1 root root      211 12月4 2022 conf.ini
drwx------ 6 root root       62 11月 27 2022 uploads
# ./cloudreve
段错误
#

cloudreve还是起不来,

Docker服务:当前状态:停止
开启 重启


容器监控:
*设置容器页面监控开关,关闭后CPU使用率将不再监控

监控天数: 保存 *设置容器页面监控保存天数

加速URL:
docker也起不来


出错了,运行时发生错误!AttributeError: 'NoneType' object has no attribute 'containers'
REQUEST_DATE: 2024-02-22 17:29:57 PAN_VERSION: 7.9.5OS_VERSION: CentOS8.5.2111 x86_64(Py3.7.9) REMOTE_ADDR: 192.168.16.1 REQUEST_URI: POST /plugin%3Faction%3Da%26amp%3Bname%3Ddocker%26amp%3Bs%3DGetConListREQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0Traceback (most recent call last):File "class/panelPlugin.py", line 2808, in a    return p.exec_fun(get)File "class/pluginAuth.py", line 67, in exec_fun    raise public.PanelError(res['msg'])public.PanelError: 面板运行时发生错误: Traceback (most recent call last):File "/www/server/panel/plugin/docker/docker_main.py", line 59, in GetConList    for con in self.__docker.containers.list(all=True):AttributeError: 'NoneType' object has no attribute 'containers'



大炮运维V587 发表于 2024-2-22 18:32:20

不品人间酒 发表于 2024-2-22 17:31
# ll
总用量 45648
-rw-r--r-- 1 root root      0 2月14 13:55 --add-rep ...

journalctl -udocker
执行这个命令,看下报错信息

不品人间酒 发表于 2024-2-22 19:31:28

大炮运维V587 发表于 2024-2-22 18:32
执行这个命令,看下报错信息

# journalctl -u  docker
Invalid unit name "  docker" was escaped as "\xc2\xa0\xc2\xa0docker" (maybe you should use systemd-escape?)
-- Logs begin at Sun 2024-02-04 17:58:43 CST, end at Thu 2024-02-22 19:29:42 CST. --
-- No entries --
#

不品人间酒 发表于 2024-2-23 16:13:44

大炮运维V587 发表于 2024-2-22 18:32
执行这个命令,看下报错信息

大炮哥,帮忙再看看该怎么处理呀
页: [1]
查看完整版本: 【待反馈】docker安装不了,cloudreve无法启动