Debian 11 (ProxMox/KVM) 上安装失败

您好,我尝试按照指南(https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md)在全新安装的 Debian 11 服务器上安装 Discourse Docker 容器,但它以附加的错误消息失败。消息本身没有提供太多关于发生了什么的信息——但它表明访问 GitHub 时存在问题(无法解析 github.com)。服务器本身是一台由 ProxMox/KVM 管理的虚拟机。有人能帮忙解决这个问题吗?

I, [2023-01-10T14:10:50.610422 #1]  INFO -- : 
> cd /var/www/discourse && git fetch --depth 1 origin tests-passed
fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com
...
Pups::ExecError: cd /var/www/discourse && git fetch --depth 1 origin tests-passed failed with return #<Process::Status: pid 141 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p                    /shared/log/rails", "bash -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "bash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shared/tmp/{backups,restores}\"", "bash -c \"ln    -s           /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp", "[ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"] }
bootstrap failed with exit code 128

你好,欢迎你 @lukasjelinek :slight_smile:

最近有几位用户报告了这个问题,但我恐怕还没有找到解决方案。我相信 @hiddenseal 将他们的实例迁移到了一个新服务器上解决了这个问题,而 @littleviolette 的问题仍未解决:

这些话题中是否有任何听起来熟悉的内容,能帮助我们找到原因?

看起来后者是相同的情况(尽管是在不同的 Linux 发行版上)。

我们无法弄清楚现有服务器出了什么问题。我们最终将 Discourse 实例复制到了一个新的 droplet,它又可以工作了。

2 个赞