我尝试部署 Rails 应用程序,但收到错误
can't activate redis (>= 3, < 5), already activated redis-5.0.4. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
Run Code Online (Sandbox Code Playgroud)
我尝试删除 gemfile,运行捆绑安装/更新,但没有任何乐趣。我也尝试在 gemfile 中指定 redis 4.8.0 但仍然遇到相同的错误。
我的宝石文件:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.7.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.4'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use …Run Code Online (Sandbox Code Playgroud) 我正在尝试 ssh 进入我的 Fly 实例,但出现了一个奇怪的错误。这在过去一直有效,没有问题。
fly ssh console
Connecting to tunnel Error: tunnel unavailable: failed probing "personal": context deadline exceeded
Run Code Online (Sandbox Code Playgroud)
另一种尝试
fly ssh console -C "app/bin/rails c"
Connecting to tunnel Error: tunnel unavailable: failed probing "personal": context deadline exceeded
Run Code Online (Sandbox Code Playgroud)
听起来像是某种端口/套接字问题,因此我重新启动并检查是否没有防火墙、VPN 或类似软件进行干扰。
这是怎么回事?