ruby-on-rails 无法启动rails服务器而不显示任何错误

z8dt9xmd  于 5个月前  发布在  Ruby
关注(0)|答案(1)|浏览(73)

我做了brew update,没有任何错误,所有的brew库都得到了更新。
之后,当我启动rails服务器时,任何错误都会被中止。

project_path git:(develop) ✗ bundle exec rails server -p 4000 -b 0.0.0.0 -u thin 
=> Booting Thin
=> Rails 6.1.3.2 application starting in development http://0.0.0.0:4000
=> Run `bin/rails server --help` for more startup options
[1]    36965 abort      bundle exec rails server -p 4000 -b 0.0.0.0 -u thin

字符串
我的环境
操作系统- Mac 13.5.2
Ruby-2.7.2
rails -6.1.3.2
如何检查崩溃或错误日志由于哪个原因服务器被abored?

33qvvth1

33qvvth11#

在我们的应用程序中,我们使用ruby-odbc gem,依赖于unixodbc。
在验证操作系统崩溃报告后,unixodbc最新版本2.3.12不支持ruby版本2.7.2。
将unixodbc降级到2.3.8版本并卸载和安装ruby-odbc gem问题得到解决

相关问题