UCDavisLibrary / ucd-hyku

The Hydra-in-a-Box repository application
http://hydrainabox.projecthydra.org/
Other
3 stars 0 forks source link

HYKU docker does not stop and start properly #15

Open qjhart opened 7 years ago

qjhart commented 7 years ago

Descriptive summary

The dockerized version of hyku does not seem to start and stop properly. On restart, all the routes seem to be messed up, and you can no longer use the system.

Expected behavior

You should be able to stop and and start your docker containers

Actual behavior

On restart, the system seems to get confused, will not go to any page.

Steps to reproduce the behavior

  1. git clone https://github.com/samvera-labs/hyku.git restart-test 1.cd restart-test; dc up -d
  2. Log in create a tenant, create a user, add a work.
  3. dc down; dc up -d
  4. Navigate back to your tenant, and system no longer is working.

Solr

This image shows the setup after you've created your new tenant.

image

You can see that on restart this solr configuration is no longer with us.

image

Web

This image shows what the user sees.

image

The logs from docker also seem to indicate a solr problem:

web_1             | E, [2017-06-19T17:51:55.045692 #1] ERROR -- : [2e943dbc-52cb-4514-a2e4-fcf1a16731c7] RSolr::Error::Http - 404 Not Found
web_1             | Error:     Not Found
web_1             |
web_1             | URI: http://solr:8983/solr/1841ace0-85f3-4772-99d9-34a4e4014aa3/select?wt=json&qt=search&facet.field=resource_type_sim&facet.field=creator_sim&facet.field=tag_sim&facet.field=subject_sim&facet.field=language_sim&facet.field=based_near_label_sim&facet.field=publisher_sim&facet.field=file_format_sim&&&fq=&fq=%7B%21terms+f%3Dhas_model_ssim%7DGenericWork%2CImage%2CCollection&fq=-suppressed_bsi%3Atrue&fq=&fq=-suppressed_bsi%3Atrue&&rows=10&qf=title_tesim+description_tesim+tag_tesim+subject_tesim+creator_tesim+contributor_tesim+publisher_tesim+based_near_label_tesim+language_tesim+date_uploaded_tesim+date_modified_tesim+date_created_tesim+rights_tesim+resource_type_tesim+format_tesim+identifier_tesim+extent_tesim+file_format_tesim+all_text_timv&pf=title_tesim&facet=true&f.resource_type_sim.facet.limit=6&f.creator_sim.facet.limit=6&f.tag_sim.facet.limit=6&f.subject_sim.facet.limit=6&f.language_sim.facet.limit=6&f.based_near_label_sim.facet.limit=6&f.publisher_sim.facet.limit=6&f.file_format_sim.facet.limit=6&sort=score+desc%2C+system_create_dtsi+desc
web_1             |
web_1             | Backtrace: /usr/local/bundle/gems/rsolr-2.0.2/lib/rsolr/client.rb:195:in `rescue in execute'
web_1             | /usr/local/bundle/gems/rsolr-2.0.2/lib/rsolr/client.rb:185:in `execute'
web_1             | /usr/local/bundle/gems/rsolr-2.0.2/lib/rsolr/client.rb:180:in `send_and_receive'
web_1             | /usr/local/bundle/gems/blacklight-6.10.0/lib/blacklight/solr/repository.rb:38:in `block in send_and_receive'
web_1             | /usr/local/bundle/gems/activesupport-5.1.1/lib/active_support/benchmarkable.rb:41:in `block in benchmark'
web_1             | /usr/local/bundle/gems/activesupport-5.1.1/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
web_1             | /usr/local/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
web_1             | /usr/local/bundle/gems/activesupport-5.1.1/lib/active_support/core_ext/benchmark.rb:12:in `ms'
web_1             | /usr/local/bundle/gems/activesupport-5.1.1/lib/active_support/benchmarkable.rb:41:in `benchmark'
web_1             | /usr/local/bundle/gems/blacklight-6.10.0/lib/blacklight/solr/repository.rb:36:in `send_and_receive'
web_1             | /usr/local/bundle/gems/blacklight-6.10.0/lib/blacklight/solr/repository.rb:22:in `search'