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

Reline::Terminfo::TerminfoError error #132

Open
ogirginc opened this issue Jun 7, 2022 · 9 comments
Open

Reline::Terminfo::TerminfoError error #132

ogirginc opened this issue Jun 7, 2022 · 9 comments

Comments

@ogirginc
Copy link

ogirginc commented Jun 7, 2022

Has anyone encountered an error like this before?

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.

I can run the commands from Procfile manually. However, overmind start fails.

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

I am clueless at this stage and will take any help I can. 😅 Thank you!

@dzemlianoi-double
Copy link

dzemlianoi-double commented Jun 7, 2022

The same stuff started happening today.

If i run all the commands separately in different terminals (web, api, worker) - everything seems to work ok.

UPD: If i comment a couple of lines (№ 20-22) in /Users/MyUser/.rvm/rubies/ruby-3.1.1/lib/ruby/3.1.0/reline/ansi.rb everything works ok. That's a hack but maybe could help someone temporary resolve the issue.

image

@ogirginc
Copy link
Author

ogirginc commented Jun 8, 2022

I can also confirm commenting out those lines does solve the problem. Created an issue on ruby/reline#447 too.

@jsteen-mpr
Copy link

For me, this turned out to be an issue with Homebrew's tmux version 3.3. Overmind uses tmux to run the Procfile processes. As a test, I removed Overmind from the picture by running tmux directly, and running the process (rails) inside it still crashed with the same terminfo error.

As a workaround, I added the line set -g default-terminal screen-256color in my ~/.config/tmux/tmux.conf. This was based on one of the suggested fixes here:
Homebrew/homebrew-core#102748 (comment)
This was my preferred fix because it didn't involve changing Homebrew or system files. Others may choose something that works better for their environment, or wait to see if this is resolved in a post-3.3 tmux release in Homebrew.

I'm using macOS Catalina 10.15.7.

@andrewculver
Copy link

andrewculver commented Jun 14, 2022

This started happening to me when I upgraded from tmux 3.2a to tmux 3.3a via Homebrew.

@simonhutchings
Copy link

brew uninstall --ignore-dependencies tmux

then

brew install tmux

worked for me

@thomasklemm
Copy link

Can confirm that @simonhutchings workaround worked for me too.

@nicalpi
Copy link

nicalpi commented Oct 28, 2022

Ok, in case anyone finds this, for me none of the recommendations worked.

I've just upgraded to Mac OS Ventura on an M1 and at the same time upgraded a lot of homebrew packages.

So while I was having the same symptoms, I don't know what was at fault.

But, while I was having this issue with Reline, I also had a new issue in Tmux where my backspace stopped working. Tmux 3.3a.

While researching that issue I found this https://stackoverflow.com/questions/23848061/cannot-get-delete-key-to-work-with-tmux-and-osx

And the code in the answer actually both fixed my Reline issue with Overwind as well as my issue with the backspace.

brew install ncurses
$(brew --prefix)/opt/ncurses/bin/infocmp tmux-256color > ~/tmux-256color.info
tic -xe tmux-256color ~/tmux-256color.info

#https://github.com/tmux/tmux/issues/1257#issuecomment-581378716
#https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95

Hope it can help someone that, like me, decided to upgrade its system on a Friday off :D

@michaelglass
Copy link

michaelglass commented Dec 2, 2022

I got here because I updated nixpkgs to 22.11 which pulls in a newer tmux. (reported the issue there btw)

The source of the problem is not overmind or reline but tmux changing its default term color and MacOs not supporting the tmux settings by default.

Many of the comments will help, but @nicalpi's comment is the one suggested by tmux author.

(newish ncurses from nix also works to solve the problem, you don't need to use it from brew).

same workaround for nix would be something like:

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

atcruice added a commit to atcruice/dotfiles that referenced this issue Apr 18, 2023
@venelrene
Copy link

Glad I was able to find this thread

Till this day, @simonhutchings workaround worked for me too.

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

9 participants