Skip to content

Instantly share code, notes, and snippets.

@matskiv
Created January 14, 2020 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matskiv/17738917cf457473ce572dff39871282 to your computer and use it in GitHub Desktop.
Save matskiv/17738917cf457473ce572dff39871282 to your computer and use it in GitHub Desktop.
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.
You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
Called from /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in `load_dependency'
searchd is not currently running.
Generating configuration to db/sphinx/production.conf
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "accounts" does not exist
LINE 5: WHERE a.attrelid = '"accounts"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"accounts"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:733:in `column_definitions'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:197:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attributes.rb:93:in `columns'
/opt/system/app/models/account.rb:7:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/model_schema.rb:260:in `column_names'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:43:in `inheriting?'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:33:in `class_column'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:9:in `apply'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source.rb:27:in `initialize'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:8:in `new'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:8:in `append_source'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/interpreter.rb:64:in `__source'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/interpreter.rb:20:in `indexes'
/opt/system/app/indices/account_index.rb:7:in `block in <top (required)>'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/core/interpreter.rb:3:in `translate!'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/core/index.rb:44:in `interpret_definition!'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:36:in `sources'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:31:in `collect'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:31:in `sources'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:19:in `attributes'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:23:in `sphinx_internal_ids'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:7:in `reconcile'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:174:in `normalise'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:87:in `block in preload_indices'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:78:in `synchronize'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:78:in `preload_indices'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:95:in `render'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:103:in `block in render_to_file'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:103:in `render_to_file'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/configure.rb:5:in `call'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/base.rb:9:in `call_with_handling'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/base.rb:5:in `call'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/rake_interface.rb:10:in `configure'
/opt/system/lib/tasks/openshift.rake:42:in `block (3 levels) in <top (required)>'
/opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag'
/opt/system/vendor/bundle/ruby/2.4.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `load'
/opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `<main>'
Caused by:
PG::UndefinedTable: ERROR: relation "accounts" does not exist
LINE 5: WHERE a.attrelid = '"accounts"'::regclass
^
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:733:in `column_definitions'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:197:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attributes.rb:93:in `columns'
/opt/system/app/models/account.rb:7:in `columns'
/opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/model_schema.rb:260:in `column_names'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:43:in `inheriting?'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:33:in `class_column'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source/template.rb:9:in `apply'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/sql_source.rb:27:in `initialize'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:8:in `new'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:8:in `append_source'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/interpreter.rb:64:in `__source'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/interpreter.rb:20:in `indexes'
/opt/system/app/indices/account_index.rb:7:in `block in <top (required)>'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/core/interpreter.rb:3:in `translate!'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/core/index.rb:44:in `interpret_definition!'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/active_record/index.rb:36:in `sources'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:31:in `collect'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:31:in `sources'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:19:in `attributes'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:23:in `sphinx_internal_ids'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration/consistent_ids.rb:7:in `reconcile'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:174:in `normalise'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:87:in `block in preload_indices'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:78:in `synchronize'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:78:in `preload_indices'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:95:in `render'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:103:in `block in render_to_file'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/configuration.rb:103:in `render_to_file'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/configure.rb:5:in `call'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/base.rb:9:in `call_with_handling'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/commands/base.rb:5:in `call'
/opt/system/vendor/bundle/ruby/2.4.0/gems/thinking-sphinx-3.4.2/lib/thinking_sphinx/rake_interface.rb:10:in `configure'
/opt/system/lib/tasks/openshift.rake:42:in `block (3 levels) in <top (required)>'
/opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag'
/opt/system/vendor/bundle/ruby/2.4.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `load'
/opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => openshift:thinking_sphinx:start
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment