kynic
2022 年1 月 30 日 17:16
1
我按照这个教程通过 SSH 更新了 discourse
This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup.
Required user level: System Administrator
SSH access to the server.
If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases newest libraries.
These updates are not picked up in admin/update, which is why you’ll occasiona…
完成之后网站就无法访问了,请帮帮我,我非常焦虑,请帮帮我
当我尝试启动 launcher 时,它显示了这个
./launcher start app
x86_64 arch detected.
starting up existing container
+ /usr/bin/docker start app
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: sethostname: invalid argument: unknown
Error: failed to start containers: app
试试这样做:
cd /var/discourse
git pull
./launcher rebuild app
kynic
2022 年1 月 30 日 18:12
10
仍然一样;
git pull
Already up to date.
./launcher rebuild app
最后显示这个:
ess 02:fc:33:3e:fd:f6 local_discourse/app /sbin/boot
589988dcb7e5e026f29b8af3b507e51a260e9de2f1ddfaea0620e1fbd2ea80e7
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: sethostname: invalid argument: unknown.
kynic
2022 年1 月 30 日 18:23
12
刚你说完这个之后,我得到了以下内容:
sudo: unable to resolve host discourse-ubuntu-s-1vcpu-1gb-nyc1-01-1606640043912-s-2vcpu-4gb-n: Name or service not known
Error response from daemon: Container 387d78b520911e93647a157c578f479a9b4ceaf4fef60b19c638a03de162444c is not running
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to
==================== DONE! ====================
kynic
2022 年1 月 30 日 19:29
14
我之前将主机名更改为“discourse-ubuntu”,之前它是一个很长的名字,通过编辑这些文件……
nano /etc/hostname
discourse-ubuntu
nano etc/hosts
127.0.1.1 discourse-ubuntu
127.0.0.1 localhost
之后,我重新启动并重建,然后终于解决了。
感谢您的所有帮助。
3 个赞
system
(system)
关闭
2022 年3 月 1 日 19:29
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.