Rebuild 未从 docker 拉取

你好,

我的网站已经离线几个月了,所以我去重建它并清理任何东西。
当我尝试这样做时,似乎没有正确拉取。


尝试运行 Hello World 应用程序时,Docker 表示它没问题。

root@PreloadService-Forum:/var/discourse# docker run -it --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete 
Digest: sha256:6e8b6f026e0b9c419ea0fd02d3905dd0952ad1feea67543f525c73a0a790fefb
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

root@PreloadService-Forum:/var/discourse# 

虚拟机已经几个月没动过了,我不明白为什么它不起作用。同一台服务器(非虚拟机)上还有另一个论坛,它运行正常并且能够正确构建。

1 个赞

尝试通过旧版 UI 进行重建,但遇到了错误。


日志:

正在停止 7 个 Unicorn 工作进程,以释放内存
正在停止作业队列以回收内存,主进程 ID 为 3982
$ cd /var/www/discourse && git fetch --tags --force && git reset --hard HEAD@{upstream}
error: RPC failed; curl 56 GnuTLS recv error (-54): 在拉取函数中出错。
error: 仍需接收 7257 字节的正文
fetch-pack: 读取 sideband 数据包时意外断开连接
fatal: 提前 EOF
fatal: index-pack 失败
Docker Manager: 升级失败
#<RuntimeError: RuntimeError>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:209:in `run'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:87:in `block in upgrade'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:70:in `each'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:70:in `each_with_index'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:70:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/runner/runner_command.rb:43:in `load'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/runner/runner_command.rb:43:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command/base.rb:87:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command.rb:48:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
bin/rails:18:in `<main>'
正在启动最初停止的 7 个 Unicorn 工作进程
1 个赞

一个月前我遇到了完全相同的错误,通过更新出现此问题的笔记本电脑的 wifi 驱动程序解决了它。

总之,此错误意味着您的互联网/网络连接无法正常工作,并且可能由多种原因引起。

1 个赞

该站点运行正常,我可以正确地从 Docker 中拉取,并且同一台机器上的其他站点也可以正常运行(服务器运行的是 proxmox),所以我不太确定问题可能出在哪里。

我的笔记本电脑似乎也没事,我当时在玩在线游戏、在 Discord 上聊天等等。

我自己解决了这个问题。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.