Skip to content

Commit

Permalink
Update to new jammy solr boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncole committed May 20, 2024
1 parent 0faecdc commit b135bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/browse-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Fix:
- Count the lines: `wc -l /tmp/call_number_browse_s.sorted`.
- Create a tmux session and run the `call_numbers` rake task:
- `cd /opt/orangelight/current`
- `RAILS_ENV=production SOLR_URL=http://lib-solr-prod4.princeton.edu:8983/solr/catalog-production bundle exec rake browse:call_numbers --silent >> /tmp/cron_log_call_numbers.log 2>&1`
- `RAILS_ENV=production SOLR_URL=http://lib-solr-prod7.princeton.edu:8983/solr/catalog-production bundle exec rake browse:call_numbers --silent >> /tmp/cron_log_call_numbers.log 2>&1`

- It takes around 3 hours to complete. When it finishes successfully the output will be on `/tmp/call_number_browse_s.sorted`. Count the lines in the file `wc -l /tmp/call_number_browse_s.sorted` to ensure that there is not a big difference with the backup file which is located in `/home/deploy/call_number_browse_s.sorted` or the most recent file which is located `/tmp/call_number_browse_s.sorted`.
- Then run the `load_call_numbers` rake task to ingest the data. This task expects the input file to be on `/tmp/call_number_browse_s.sorted`:
- `cd /opt/orangelight/current`
- `RAILS_ENV=production SOLR_URL=http://lib-solr8-prod.princeton.edu:8983/solr/catalog-production bundle exec rake browse:load_call_numbers --silent >> /tmp/cron_log.log 2>&1`
- `RAILS_ENV=production SOLR_URL=http://lib-solr8-prod.princeton.edu:8983/solr/catalog-production bundle exec rake browse:load_call_numbers --silent >> /tmp/cron_log.log 2>&1`

0 comments on commit b135bf9

Please sign in to comment.