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

Re-index fails in staging due to missing sdoc #3140

Open
lagoan opened this issue Jun 5, 2023 · 1 comment
Open

Re-index fails in staging due to missing sdoc #3140

lagoan opened this issue Jun 5, 2023 · 1 comment
Assignees

Comments

@lagoan
Copy link
Contributor

lagoan commented Jun 5, 2023

Describe the bug
Trying to re-index the staging instance of jupiter fails with the following error:

[root@era-app-stg-1 jupiter]# rake jupiter:reindex
rake aborted!
LoadError: cannot load such file -- sdoc
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/var/www/sites/jupiter/lib/tasks/rdoc.rake:3:in `<main>'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `load'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `block in load'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `load'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/railties-6.1.7.2/lib/rails/engine.rb:675:in `block in run_tasks_blocks'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/railties-6.1.7.2/lib/rails/engine.rb:675:in `each'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/railties-6.1.7.2/lib/rails/engine.rb:675:in `run_tasks_blocks'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/railties-6.1.7.2/lib/rails/application.rb:528:in `run_tasks_blocks'
/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/railties-6.1.7.2/lib/rails/engine.rb:464:in `load_tasks'
/var/www/sites/jupiter/Rakefile:6:in `<top (required)>'
(See full trace by running task with --trace)

To Reproduce
Steps to reproduce the behavior:

  1. Login to staging server
  2. In console run rake jupiter:reindex

Expected behavior
The rake task should run successfully

Additional context
The index needs to be regenerated after a feature flag was turned on to allow for OR faceting.

@lagoan lagoan self-assigned this Jun 5, 2023
@lagoan
Copy link
Contributor Author

lagoan commented Jun 6, 2023

I was able to run the re-index rake task with:

sudo su apache -s /bin/bash
cd /var/www/sites/jupiter/
RAILS_ENV=staging rake jupiter:reindex

My computer got disconnected and could not complete the process.

@beausapach let us know how the new attempt goes.

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

2 participants