您好,
我最近按照 install-cloud 指南在 AWS lightsail 实例上安装了 discourse。尽管我仔细遵循了说明并从头开始尝试了几次,但在尝试访问我的论坛时,我遇到了“连接被拒绝”的错误。
我遵循的步骤是:
- 创建一个新的 lightsail 实例
- 分配一个静态 IP 地址
- 打开端口 443
- 将我的子域名 (forum.procedural.audio) 指向 IP 地址
- 按照指南中的 discourse 安装命令进行操作,包括为 LETS_ENCRYPT 提供电子邮件地址
- 浏览我的论坛……连接被拒绝
运行 ./discourse-doctor 输出显示 forum.procedural.audio 上的 discourse 版本为 NOT FOUND。我可以成功从 discourse 接收测试电子邮件。
运行 ping forum.procedural.audio 没有收到数据,但确实找到了正确的静态 IP。
我在日志中注意到以下错误
$ ./launcher logs app
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: [emerg] cannot load certificate "/shared/ssl/forum.procedural.audio.cer": PEM_read_bio_X509_AUX() failed (S
SL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
(重复多次)
所以问题似乎与 SSL 有关,但我不知道如何解决。在 shared/standalone/ssl/ 目录中有四个文件
forum.procedural.audio.cer(文件为空)forum.procedural.audio.key(文件包含一个密钥)forum.procedural.audio_ecc.cer(文件为空)forum.procedural.audio_ecc.key(文件包含一个密钥)
所以我不知道 .cer 文件是否为空是问题的一部分。但我还注意到,日志显示它正在查找 /shared/ssl/* 而不是 /shared/standalone/ssl/* 中的文件,这似乎也很相关。
感谢您的帮助。