问题描述
我启动了一个新的Discourse EC2实例from the AWS Marketplace。
在安装setting up a plugin后,我收到了Phusion Passenger的以下错误消息:
我一直在经历official troubleshooting,不幸的是没有提供任何答案。
我检查了/opt/bitnami/apps/discourse/htdocs/log/production.log
中包含一条消息的日志:
Job exception: Permission denied @ rb_sysopen - tmp/cache/bootsnap-load-path-cache.12469.10732.tmp
然后我看了http服务器日志/opt/bitnami/apache2/logs/error_log
:
[ E 2020-08-14 10:16:28.6824 1088/T5 age/Cor/SecurityUpdateChecker.h:507 ]: Security update check failed: Problem with the SSL CA cert (path? access rights?) while connecting to https://securitycheck.phusionpassenger.com/v1/check.json ; this might happen if the nss backend is installed for libcurl instead of GnuTLS or OpenSSL. If the problem persists,you can also try upgrading or reinstalling Phusion Passenger (next check in 24 hours)
App 2407 output: Error: The application encountered the following error: Permission denied @ rb_sysopen - tmp/cache/bootsnap-load-path-cache.2407.67291.tmp (Errno::EACCES)
App 2407 output: /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/store.rb:83:in `binwrite'
App 2407 output: /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/store.rb:83:in `dump_data'
...
这似乎使应用程序无法访问tmp
文件夹。
我发现this answer建议更改所有权,并在tmp
目录上设置正确的权限。
运行后
sudo chmod -R 755 /opt/bitnami/apps/discourse/htdocs/tmp/ && \
sudo chown -R bitnami:daemon /opt/bitnami/apps/discourse/htdocs/tmp/
并完全重新启动实例,我仍然遇到相同的错误。
我也尝试过uninstalling the plugin,但错误仍然存在。
我对这个堆栈(Ruby,Apache ...)不是很熟悉,对接下来要尝试什么有什么建议?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)