ruby-on-rails - Capistrano/Puma : Unable to load application: ArgumentError: missing keyword: :root
问题描述
Rails 6, Mysql, Ubuntu 20.04 I would like deploy with Capistrano Puma.
I have this error in my website :
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
Error into my log : puma.error.log :
/home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-
6.1.4.1/lib/active_storage/service/disk_service.rb:14:in `initialize': missing keyword: :root (ArgumentError)
from /home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-6.1.4.1/lib/active_storage/service.rb:61:in `new'
Log Nginx :
2021/11/16 10:05:02 [crit] 3361147#3361147: *6 connect() to unix:///home/ubuntu/apps/appex/shared/tmp/sockets/appex-puma.sock failed (2: No such file or directory) while connecting to upstream, client
解决方案
That error comes from a misconfigured storage.yml
in your environment. You are missing the root
key.
For more information on how to set up ActiveStorage, read here.
推荐阅读
- tensorflow - T5 Encoder 模型输出全零?
- c++ - 如何在 C++ 中根据边缘度对图进行排序
- android - 为什么在尝试“调用虚拟方法 SearchView.setOnQueryListener”时出现 NullPointerException?
- macos - 安装自制软件时出现错误
- c# - WebDAVClient 显示 NULL 值
- ios - 如何访问不同的嵌套字符串数组swift 5
- laravel - Nginx 1.9.10 & Laravel 8 给出 text/html 的响应;charset=UTF-8 但预期应用程序/json
- python-3.x - 在 Excel 工作表的指定位置插入一列并用 NaN 值填充
- python - 为什么我在更改 instapy like_until 文件时会出错?
- python - 尝试运行 2 个阻塞函数时与 ThreadPoolExecutor 发生死锁