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

Fix sunspot:solr:restart rake task #178

Open
jameslzhu opened this issue Jan 20, 2019 · 0 comments
Open

Fix sunspot:solr:restart rake task #178

jameslzhu opened this issue Jan 20, 2019 · 0 comments

Comments

@jameslzhu
Copy link
Member

jameslzhu commented Jan 20, 2019

It appears sunspot:solr:restart doesn't successful start solr again, and the sunspot:solr:start task must be explicitly run to do so:

$ RAILS_ENV=production bundle exec rake sunspot:solr:restart
/home/h/hk/hkn/hkn-rails/migrate/releases/20190107053052/app/controllers/admin/admin_controller.rb:12: warning: key :person is duplicated and overwritten on line 12
/home/h/hk/hkn/hkn-rails/migrate/releases/20190107053052/app/controllers/admin/admin_controller.rb:12: warning: key :person is duplicated and overwritten on line 12
Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 24944 to stop gracefully.
$ ps aux | grep solr
hkn      14220  0.0  0.0  12784   944 pts/4    S+   16:40   0:00 grep --color=auto solr
$ RAILS_ENV=production bundle exec rake sunspot:solr:start
/home/h/hk/hkn/hkn-rails/migrate/releases/20190107053052/app/controllers/admin/admin_controller.rb:12: warning: key :person is duplicated and overwritten on line 12
/home/h/hk/hkn/hkn-rails/migrate/releases/20190107053052/app/controllers/admin/admin_controller.rb:12: warning: key :person is duplicated and overwritten on line 12
Removing stale PID file at tmp/pids/sunspot-solr-production.pid
Successfully started Solr ...
@jameslzhu jameslzhu changed the title Fix sunspot:solr:restart task Fix sunspot:solr:restart rake task Jan 20, 2019
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

1 participant