Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error? #6

Closed
dwyn opened this issue May 25, 2021 · 17 comments
Closed

Weird error? #6

dwyn opened this issue May 25, 2021 · 17 comments

Comments

@dwyn
Copy link

dwyn commented May 25, 2021

Hiya! I'm getting a weird error (see below). Any ideas on how I could go about debugging it?
(I am using Rails 3.0.1, but I get the same error with Rails 2.7.2)

➜ rails s
Traceback (most recent call last):
        57: from bin/rails:4:in `<main>'
        56: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        55: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        54: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        53: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        52: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        51: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands.rb:18:in `<main>'
        50: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/command.rb:46:in `invoke'
        49: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/command/base.rb:69:in `perform'
        48: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        47: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        46: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        45: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `perform'
        44: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `tap'
        43: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:141:in `block in perform'
        42: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        41: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        40: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        39: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        38: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        37: from /Users/dharmon/Development/CMM/cipherbot/config/application.rb:20:in `<main>'
        36: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler.rb:174:in `require'
        35: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `require'
        34: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `each'
        33: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `block in require'
        32: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `each'
        31: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:74:in `block (2 levels) in require'
        30: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        29: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        28: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        27: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        26: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        25: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server.rb:13:in `<main>'
        24: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        23: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        22: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        21: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        20: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        19: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        18: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api.rb:7:in `<main>'
        17: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        16: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        15: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        14: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        13: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        12: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        11: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters.rb:7:in `<main>'
        10: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
         9: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
         8: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
         7: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
         6: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
         5: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
         4: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:1:in `<main>'
         3: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:2:in `<module:SlackRubyBotServer>'
         2: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:3:in `<module:Api>'
         1: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:4:in `<module:Presenters>'
/Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:13:in `<module:TeamPresenter>': uninitialized constant SlackRubyBotServer::Api::Presenters::TeamPresenter::Boolean (NameError)
@crazyoptimist
Copy link
Owner

Oh, seems like it's related to the update of slack-ruby-bot-server
I wish I had a issue template for this repo.
Anyhow, can you describe the steps to reproduce? I will try to help.

@crazyoptimist
Copy link
Owner

@dwyn Did you resolve this error?
Or please describe the steps for repro.

@dwyn
Copy link
Author

dwyn commented May 28, 2021

Hi @crazyoptimist! Terribly sorry, I'm just seeing this. I only ran rails s and received the error above.

When I run rails s now, I receive:

 rails s
/Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:13:in `<module:TeamPresenter>': uninitialized constant SlackRubyBotServer::Api::Presenters::TeamPresenter::Boolean (NameError)
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:4:in `<module:Presenters>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:3:in `<module:Api>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:2:in `<module:SlackRubyBotServer>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:1:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters.rb:7:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api.rb:7:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server.rb:13:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:66:in `block (2 levels) in require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
        from /Users/dharmon/Development/CMM/cipherbot/config/application.rb:20:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
        from <internal:kernel>:90:in `tap'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'

Any thoughts? Thanks in advance - I'll keep a closer eye on this issue/thread!

@crazyoptimist
Copy link
Owner

No worries.
Have you configured your dot env checking all the steps in the README?
If you stuck in those steps, I will provide a sample.

@dwyn
Copy link
Author

dwyn commented May 28, 2021

Yes I have.

Do I need quotations? For example:
SLACK_SIGNING_SECRET="xxxxxxxxxxxxxxxxxxxxx"
or can I simply set it like this:
SLACK_SIGNING_SECRET=xxxxxxxxxxxxxxxxxxxxx

@crazyoptimist
Copy link
Owner

Quotations doesn't matter, please paste in your dot env here, replacing the creds with placeholders

@dwyn
Copy link
Author

dwyn commented May 28, 2021

Sure thing. See below

# RAILS_ENV=development
RAILS_ENV=production
RAILS_HOST_NAME=https://cmm-cipherbot.herokuapp.com/

BASE_URL="https://cmm-cipherbot.herokuapp.com/"
MONGO_URL="mongodb://user:password@myhost1.mydomain.com:27017/my_db"
SLACK_CLIENT_ID="2348723809759803958395839589384"
SLACK_CLIENT_SECRET="1lkjhgfdsasdfghjklkjhgfdsdfghjkl2"
SLACK_SIGNING_SECRET="51asdgthdsetw98765t2gh3j4kml3nsc5"
SLACK_OAUTH_SCOPE="users:read,channels:read,groups:read,chat:write,commands,incoming-webhook"

@crazyoptimist
Copy link
Owner

RAILS_HOST_NAME=cmm-cipherbot.herokuapp.com

BASE_URL=https://cmm-cipherbot.herokuapp.com

@dwyn
Copy link
Author

dwyn commented May 28, 2021

I updated it. rails s yields the following:

➜ rails s
/Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:13:in `<module:TeamPresenter>': uninitialized constant SlackRubyBotServer::Api::Presenters::TeamPresenter::Boolean (NameError)

The entire trace reads as follows:

/Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:13:in `<module:TeamPresenter>': uninitialized constant SlackRubyBotServer::Api::Presenters::TeamPresenter::Boolean (NameError)
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:4:in `<module:Presenters>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:3:in `<module:Api>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:2:in `<module:SlackRubyBotServer>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:1:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters.rb:7:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api.rb:7:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server.rb:13:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:66:in `block (2 levels) in require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
        from /Users/dharmon/.rvm/rubies/ruby-3.0.1/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
        from /Users/dharmon/Development/CMM/cipherbot/config/application.rb:20:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
        from <internal:kernel>:90:in `tap'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        from /Users/dharmon/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        from bin/rails:4:in `<main>'

@crazyoptimist
Copy link
Owner

Got it, let me try to repro this when I get available, maybe soon

@dwyn
Copy link
Author

dwyn commented Jun 1, 2021

Hey @crazyoptimist what are your thoughts on this comment?

I know it has less to do with your app and more to do with slack-ruby-bot-server but I figured it would be worth asking!

This was referenced Jun 1, 2021
@dblock
Copy link
Contributor

dblock commented Jun 1, 2021

I narrowed this down to mongoid 7.3.0, not sure what the actual issue is but downgrading to 7.2.3 works.

@crazyoptimist
Copy link
Owner

@dwyn, please use the new code on master and let me know if it still persists.
@dblock 's fix has been merged.
Thanks again, @dblock !

@dwyn
Copy link
Author

dwyn commented Jun 2, 2021

Whoa! Thanks @dblock, thanks @crazyoptimist! Ill merge the changes and let you know what happens.

@crazyoptimist
Copy link
Owner

Can we close this now, @dwyn ?

@dwyn
Copy link
Author

dwyn commented Jun 4, 2021

Hey @crazyoptimist, yeah I think we can close it now.

I am now getting a new error in the server logs, but I think it has more to do with mongo configuration in my .env file.

W, [2021-06-01T21:26:44.199551 #20906]  WARN -- : MONGODB | Error running ismaster on myhost1.mydomain.com:27017: SocketError: getaddrinfo: nodename nor servname provided, or not known

If you have any suggestions, Im all ears. Otherwise, I think I'm okay. Thanks again for you're help🙂

@crazyoptimist
Copy link
Owner

mongodb://username:password@hostname:27017/db_name?authSource=admin&readPreference=primary
Try it, and also try removing the params one by one. Hope it would be helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants