Skip to content

Reline::Terminfo::TerminfoError error with Overmind #447

Closed

Description

@ogirginc

If a Procfile is used with Overmind, the error below is raised:

web    | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web    | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
worker | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.

@dzemlianoi-double found out, commenting out the code below solves the problem:

if Reline::Terminfo.enabled?
Reline::Terminfo.setupterm(0, 2)
end

As I am uncertain if the issue should be opened here or DarthSim/overmind#132, I have created a new one for this repo as well.

Here is the full logs.
web                | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web                | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
worker             | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web                | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/terminfo.rb:108:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:21:in `<class:ANSI>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:6:in `<main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/terminfo.rb:108:in `setupterm'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:21:in `<class:ANSI>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:6:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline.rb:580:in `<main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline.rb:580:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `block in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `block in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `each'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler.rb:176:in `require'
web                | 	from /Users/ogirginc/teamtailor/config/application.rb:9:in `<top (required)>'
web                | 	from /Users/ogirginc/teamtailor/config/environment.rb:3:in `require_relative'
web                | 	from /Users/ogirginc/teamtailor/config/environment.rb:3:in `<top (required)>'
web                | 	from config.ru:4:in `require_relative'
web                | 	from config.ru:4:in `block in <main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler.rb:176:in `require'
worker             | /Users/ogirginc/teamtailor/config/application.rb:9:in `<top (required)>'
worker             | /Users/ogirginc/teamtailor/config/environment.rb:3:in `require_relative'
worker             | /Users/ogirginc/teamtailor/config/environment.rb:3:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/configuration.rb:348:in `load_rackup'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/configuration.rb:270:in `app'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/cluster.rb:357:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma:25:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma:25:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/lib/sidekiq/cli.rb:273:in `boot_application'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/lib/sidekiq/cli.rb:37:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/bin/sidekiq:31:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'
worker             | Exited
web                | Exited

Activity

  1. changed the title [-]Reline::Terminfo::TerminfoError error with Overmind[/-] [+]`Reline::Terminfo::TerminfoError` error with Overmind[/+] on Jun 8, 2022
  2. yshmarov commented on Jun 27, 2022

    @yshmarov

    OMG it really worked!
    the file path for me was:
    /Users/yaro/.rbenv/versions/3.1.2/lib/ruby/3.1.0/reline/ansi.rb

  3. michaelglass commented on Dec 2, 2022

    @michaelglass

    I believe this is related to using tmux 3.3 (which overmind uses) on a mac (I got here because I updated to nixpkgs 22.11 which updated tmux).

    some workarounds:

    homebrew

    $ brew uninstall --ignore-dependencies tmux
    $ brew install tmux
    

    (this works because the new brew formula is compiled with legacy terminfo)

    nix

    $ nix-env -iA nixpkgs.ncurses
    $ infocmp -x tmux-256color >tmux-256color.src
    $ sudo /usr/bin/tic -x tmux-256color.src
    

    more context

  4. added a commit that references this issue on Apr 18, 2023
  5. vweidhaas commented on Jan 18, 2024

    @vweidhaas

    Thank you, this helped me a lot!

  6. slayer commented on Feb 27, 2024

    @slayer

    same problem

    macos 14.3
    tmux 3.4
    reline 0.4.3

    reinstall tmux did't help

     ❯ rails c
    /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/terminfo.rb:94:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)
            from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/ansi.rb:34:in `<class:ANSI>'
            from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/ansi.rb:5:in `<top (required)>'
            from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
    
  7. cbeltrao commented on Feb 27, 2024

    @cbeltrao

    If a Procfile is used with Overmind, the error below is raised:

    web    | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
    web    | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
    worker | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
    

    @dzemlianoi-double found out, commenting out the code below solves the problem:

    if Reline::Terminfo.enabled?
    Reline::Terminfo.setupterm(0, 2)
    end

    As I am uncertain if the issue should be opened here or DarthSim/overmind#132, I have created a new one for this repo as well.

    Here is the full logs.

    This solved my issue, thanks!

  8. DEfusion commented on Feb 29, 2024

    @DEfusion

    I had same issue trying to run rails console. I re-installed my version of ruby via rbenv and that fixed it for me.

  9. nicho1991 commented on Mar 11, 2024

    @nicho1991

    Had the same issue, my solution was a combination of things

    1. making sure tmux was uninstalled brew uninstall --ignore-dependencies tmux
    2. re-installing ruby
    3. making sure spring was disabled (was not working for my test)
  10. servatti commented on Mar 22, 2024

    @servatti

    spring stop worked for me.

  11. askegg commented on Mar 26, 2024

    @askegg

    Just tripped across this issue. Here is what worked for me.
    I had the following line in my ~/.tmux.conf file:

    set -g default-terminal "tmux-256color"

    Changing this to the following resolved this issue:

    set -g default-terminal "xterm-256color"

    It also results in the colours being off.

  12. added
    good first issue
    bug
    on Mar 30, 2024
  13. tompng commented on Apr 5, 2024

    @tompng
    Member

    To reproduce:

    % export TERM=random-string
    zsh: can't find terminal definition for random-string
    % irb
    /path/to/reline/lib/reline/terminfo.rb:94:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)
    

    Reline should not crash with any unknown TERM environment variable

  14. johnlinatoc commented on Apr 23, 2024

    @johnlinatoc

    Here's what worked for me:

    1. spring stop
    2. bundle clean --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions