さて、さらにいくつかのニュースがあります:
良い知らせ
もう /usr/bin/docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). というエラーは表示されなくなりました!
docker run ubuntu でもエラーは報告されなくなりました。@Falco さん、表示されるべき何かの出力はありますか?
root@forum:/var/discourse# docker run ubuntu
root@forum:/var/discourse#
では、このエラーを解消するために私が何をしたのかというと、この VM で使用されているネームサーバー(DNS)を Google Public DNS サービスに置き換えました:
echo "nameserver 8.8.8.8" > /etc/resolv.conf
ただし、VM を再起動するたびに上記のコマンドを実行する必要があります(つまり、一時的な解決策のようです)。そうしないと、./launcher コマンドを実行しようとした際に 2 つのエラーが発生します。その後、エラーは 1 つ(Unable to find image 'discourse/base:2.0.20191013-2320' locally)に減りますが、コマンドは正常に完了しているようです:
root@forum:/var/discourse# ./launcher start app
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed
Please be patient
Unable to find image 'discourse/base:2.0.20191013-2320' locally
2.0.20191013-2320: Pulling from discourse/base
Digest: sha256:77e010342aa5111c8c3b81d80de7d4bdb229793d595bbe373992cdb8f86ef41f
Status: Downloaded newer image for discourse/base:2.0.20191013-2320
starting up existing container
+ /usr/bin/docker start app
app
また、./launcher rebuild app もエラーなしで実行できるようになりました。以下は、そのコマンドの出力の最後の部分です(URL と MAC アドレスは伏せています):
+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=4 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e DISCOURSE_HOSTNAME=discourse.domain.com -e DISCOURSE_DEVELOPER_EMAILS=admin@domain.com,postmaster@domain.com -e DISCOURSE_SMTP_ADDRESS=smtp.sparkpostmail.com -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=SMTP_Injection -e DISCOURSE_SMTP_PASSWORD=0d431cd177ce3d35833aa823d498eb57c7c4e99c -e LETSENCRYPT_ACCOUNT_EMAIL=admin@domain.com -h forum-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 8080:80 -p 8443:443 -p 2222:22 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 00:00:00:00:00:01 local_discourse/app /sbin/boot
abb788d4a6fd301d88f129189a07a19c4a6bfc8554d43c555d3e3cd126374736
悪い知らせ
ページにアクセスしようとした際、まだ 502 Bad Gateway - nginx/1.14.0 (Ubuntu) エラーが表示されます。
他に考えられる問題はありますか?ご提案があればお願いします。