When running:
ssh deploy@bibdata-alma-worker-staging1cd opt/bibdata/currentFILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
The rake task is expected to generate a new theses.json file with no errors.
Actual behavior
When running:
ssh deploy@bibdata-alma-worker-staging1cd opt/bibdata/currentFILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
The rake task errors and fails to generate a theses.json file.
JSON::ParserError: 859: unexpected token at 'Our apologies for the interruption in service. System maintenance is being performed and the site will be back online momentarily.'
Acceptance criteria:
[ ] 1. I can deploy bibdata to the staging environment
[ ] 2. I can successfully run the rake task and create the theses.json file: ssh deploy@bibdata-alma-worker-staging1cd opt/bibdata/currentFILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
[ ] 3. I can successfully index the theses on the staging environment using the theses.json file I created in the 2nd acceptance criteria: ssh deploy@bibdata-alma-worker-staging1cd opt/bibdata/currentcurl 'http://lib-solr8d-staging.princeton.edu:8983/solr/catalog-staging/update?commit=true' --data-binary @/home/deploy/theses.json -H 'Content-type:application/json'
Notes
Running a full reindex requires to retrieve theses from dspace and create a theses.json file running the following rake task in the opt/bibdata/current directory FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses.
Expected behavior
When running:
ssh deploy@bibdata-alma-worker-staging1
cd opt/bibdata/current
FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
The rake task is expected to generate a new theses.json file with no errors.Actual behavior
When running:
ssh deploy@bibdata-alma-worker-staging1
cd opt/bibdata/current
FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
The rake task errors and fails to generate a theses.json file.Steps to replicate
Use the orangetheses main branch the rake task errors. See [honeybadger error]. It triggers the following error: (https://github.com/pulibrary/orangetheses/tree/main) the rake task errors. See honeybadger error
Acceptance criteria:
[ ] 1. I can deploy bibdata to the staging environment
[ ] 2. I can successfully run the rake task and create the theses.json file:
ssh deploy@bibdata-alma-worker-staging1
cd opt/bibdata/current
FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
[ ] 3. I can successfully index the theses on the staging environment using the theses.json file I created in the 2nd acceptance criteria:
ssh deploy@bibdata-alma-worker-staging1
cd opt/bibdata/current
curl 'http://lib-solr8d-staging.princeton.edu:8983/solr/catalog-staging/update?commit=true' --data-binary @/home/deploy/theses.json -H 'Content-type:application/json'
Notes
Running a full reindex requires to retrieve theses from dspace and create a theses.json file running the following rake task in the
opt/bibdata/current
directoryFILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
.