ポート443にアクセスできません

こんにちは。Ubuntu サーバー(正確には Ubuntu 20)で Discourse のセットアップを試みていますが、毎回 WARNING: Port 443 of computer does not appear to be accessible using hostname: というエラーが発生します。多くの解決策を試したり、ネットで答えを探したりしましたが、依然として解決できていません。これは Discourse サーバーのセットアップが初めてのため、何が間違っているのか、あるいは何が問題なのかを完全に把握できていません。エラー全体は以下の通りです:

root@vps-zap581523-2:/opt/discourse# ./discourse-setup
Ports 80 and 443 are free for use
'samples/standalone.yml' -> 'containers/app.yml'
Found 4GB of memory and 20 physical CPU cores
setting db_shared_buffers = 1024MB
setting UNICORN_WORKERS = 8
containers/app.yml memory parameters updated.

Hostname for your Discourse? [discourse.example.com]: forum.mayflowerleti.org

Checking your domain name . . .
./discourse-setup: line 36: curl: command not found
WARNING: Port 443 of computer does not appear to be accessible using hostname:  forum.mayflowerleti.org.
./discourse-setup: line 36: curl: command not found
WARNING: Connection to http://forum.mayflowerleti.org (port 80) also fails.

This suggests that forum.mayflowerleti.org resolves to some IP address that does not reach this
machine where you are installing discourse.

The first thing to do is confirm that forum.mayflowerleti.org resolves to the IP address of this server.
You usually do this at the same place you purchased the domain.

If you are sure that the IP address resolves correctly, it could be a firewall issue.
A web search for "open ports YOUR CLOUD SERVICE" might help.

This tool is designed only for the most standard installations. If you cannot resolve
the issue above, you will need to edit containers/app.yml yourself and then type

./launcher rebuild app

root@vps-zap581523-2:/opt/discourse#

この時点で、何をすればよいか分かりません。VPS の所有者は DNS を Discourse が動作している VPS の IP アドレスに設定しましたが、まだ動作していません。また、ファイアウォールがブロックしているわけではないとも教えてくれましたが、なぜ動作しないのか完全に理解できていません。お手伝いいただければ幸いです。このようなトピックをまた作成してしまい申し訳ありませんが、他に選択肢がありませんでした。お時間とご支援をいただきありがとうございます。

追加すべきドメインレコードがまだ利用できないか、正しく設定されていません。

forum.domain は、Discourse を実行する Ubuntu サーバーを指すように設定する必要があります。

確認の上、再度お試しください。

Ubuntu サーバーを指していると思います。


ここから、Ubuntu サーバーを指していることがわかります。別の設定方法があるべきかどうかはわかりませんが、現状では直接 Ubuntu サーバーを指しているように見えます。ご協力いただきありがとうございます。

その IP アドレスが正しい場合、準備は整っています

https://www.whatsmydns.net/#A/forum.mayflowerleti.org

「いいね!」 1

IP アドレスは正しいのですが、動作しません。前述のエラーが引き続き表示され、その理由がわかりません。お時間とご支援をいただき、ありがとうございます。

どのインストールマニュアルを使用していますか?

標準的なインストールを使用している場合、パスは /var/discourse/ であるはずです。

discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub

「いいね!」 1

これは問題のようです。curl は実際にインストールされていますか?インストールされていない場合は、apt install curlでインストールしてください。

「いいね!」 1

@IAmGav さん、var ディレクトリに配置したところ、動作するようになったようです。おそらく、そこに配置する必要があったことと、@danb35 さんが提案された通り curl のインストール/修復が必要だったことが要因ではないかと推測します。var ディレクトリへの変更、curl のインストール、単に時間が経過してようやく登録されたこと、あるいはそれらすべてが組み合わさった結果なのかは確信が持てません。二人とも本当にありがとうございます。どちらの回答を解決としてマークすべきか迷っていますね。セットアップが完了したら、おそらくどちらかの回答を解決としてマークすると思います。もしセットアップに失敗したら、また別の返信をすることになるでしょう。それまでは、接続できたようです。二人とも本当にありがとうございます!

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