GithubHelp home page GithubHelp logo

thing's Introduction

Depfu Code Climate

Electronic Thesis Deposit (ETD)

This application supports the Institute's thesis deposit, publication, and preservation workflows by providing the following features:

  • A registrar data importer to batch load thesis metadata for a given term;
  • A form for students to add or edit metadata for their thesis;
  • A batch file uploader for department admins to transfer thesis files for a given term;
  • A processing dashboard for library staff to review thesis files and metadata;
  • Automated workflows to publish theses to DSpace@MIT, prepare them for preservation in the Institute's Archivematica instance, and export their metadata as MARC to be added to the library catalog.
  • On-demand reporting for staff to review activity by term, publication status, and other criteria.

ETD evolved from an more narrowly focused application known as thing (th(esis).ing(est)), which collected metadata and files via a form and allowed admin users to download them. This was part of MIT Libraries' previous thesis deposit workflow. It has since been replaced with this fully electronic workflow, which requires less manual intervention.

Architecture decision records (ADRs)

This repository contains ADRs in the docs/architecture-decisions directory.

adr-tools should allow easy creation of additional records with a standardized template.

Developer notes

Confirming functionality after updating dependencies

The application has excellent test coverage, and most errors are likely to be caught by our test suite. This runs in CI, but it's good practice to run it locally after making updates:

bin/rails test

Updates to certain gems may require additional checks:

administrate

We generally do not test for the presence or appearance of UI elements, as such tests can be brittle. If you suspect that a dependency update may affect the UI in some way, it's a good idea to review it more closely. This is most likely to occur with updates to the administrate gem, which we use to manage the admin dashboards. We maintain some custom views (see app/views/admin) and fields (see app/fields) for this gem that may need to be updated along with the gem. The administrate maintainers typically include a warning at the top of the release notes if it will affect custom views, but it's a good idea to double-check the release notes either way before updating this gem.

paper_trail

While paper_trail is covered in our test suite, audit trails are a crucial data in our application that cannot be backfilled, so updates to this gem may warrant some manual tests. Make sure that calling the versions method on an object in a PT-enabled model (e.g., Thesis) returns the expected set of versions. You can create a new version by updating the object. You may also want to confirm that the whodunnit value is equal to the ID of the user that made the update.

aws-sdk-rails

Updates to aws-sdk-rails and related gems should prompt testing of the corresponding AWS feature. For example, if you notice that aws-sdk-sqs is updated, you should confirm that SQS still works by running the publication workflow: first publishing a thesis, then running DSpace Submission Service (DSS) stage, and finally processing the output queue.

If aws-sdk-s3 is updated, try uploading a file with S3 configured and see if it works, and check existing files to see if they're still there. You can test S3 in a PR build, or locally by adding the staging S3 config to your env.

devise

When updating devise, make sure that authentication via Touchstone works. You will need to do this in staging, as Touchstone is not configured for PR builds. In the unlikely case that authentication fails in staging, you will need to merge a subsequent commit with the previous version, so the broken version does not get deployed to production with other changes.

Annotating the database schema

When changing the db schema, please run bundle exec annotate to update the model and associated tests to reflect the changes in a nice convenient, consistent way.

Local deployment

Use bin/rails server for local testing. If you need test data, you can pull the staging db, which contains fake records with no personally identifiable inofrmation. See config/database.yml.postgres for sample postgres config.

Environment variables

DISABLE_LOGRAGE - set this in to disable lograge single line logging config and use rails standard verbose logging.

JS_EXCEPTION_LOGGER_KEY - set this to the value of the exception monitor public post key to enable capturing javascript exceptions.

LOG_LEVEL - we set sane defaults in development or production, but you can override easily with this ENV if you need to get more details.

MAINTENANCE_MODE - this toggles a Flipflop feature that disables thesis transfers and informs transfer submitters that the application is under maintenance. MAINTENANCE_MESSAGE_TRANSFER - provides a custom message to transfer submitters if more details are necessary.

PLATFORM_NAME: The value set is added to the header after the MIT Libraries logo. The logic and CSS for this comes from our theme gem.

PREFERRED_DOMAIN - set this to the domain you would like to use. Any other requests that come to the app will redirect to the root of this domain. This is useful to prevent access to herokuapp.com domains as well as any legacy domains you'd like to handle.

RAILS_LOG_TO_STDOUT - log to standard out instead of a file. Heroku enables this automatically. It is often nice in development as well.

SENTRY_DSN - set to your project sentry key to enable exception logging SENTRY_ENV - Sentry environment for the application. Defaults to 'unknown' if unset.

ActiveStorage configuration

Development

MAINTAINER_EMAIL - used for to field of virus detected emails. ETD_APP_EMAIL - used for from field of receipt emails. THESIS_ADMIN_EMAIL - the email to which reports are sent. MAINTAINER_EMAIL - used for cc field of report emails. SCOUT_DEV_TRACE - include this and set it to true to enable perfomance monitoring in development. Very useful to track down N+1 queries! SKIP_SLOW - set this to skip tests flagged as slow SPEC_REPORTER - set this to see a detailed list of tests and times during test runs

Production

The information necessary to identify a bucket on S3 is configured via this set of variables:

AWS_ACCESS_KEY_ID AWS_REGION AWS_S3_BUCKET AWS_SECRET_ACCESS_KEY

In addition, you will need to ensure the bucket CORS AllowedOrigin settings are configured to allow for the domain this app runs at.

SQS configuration

We use AWS SQS queues to publish theses to DSpace and read data about published theses from DSpace. The DSpace Submission Service middleware supports this workflow.

DSPACE_DOCTORAL_HANDLE - The handle for the collection to use for depositing Doctoral theses. DSPACE_GRADUATE_HANDLE - The handle for the collection to use for depositing Graduate theses. DSPACE_UNDERGRADUATE_HANDLE - The handle for the collection to use for depositing Undergraduate theses.

SQS_INPUT_QUEUE_URL - The URL of the SQS input queue used for publication to DSpace. SQS_OUTPUT_QUEUE_NAME - The name of the SQS output queue. This is used to build the SQS message attributes. SQS_OUTPUT_QUEUE_URL - The URL of the SQS output queue used to read the results from a publication run.

SQS_RESULT_MAX_MESSAGES - Configures the :max_number_of_messages arg of the AWS poll method, which specifies how many messages to receive with each polling attempt. Defaults to 10 if unset. SQS_RESULT_WAIT_TIME_SECONDS - Configures the :wait_time_seconds arg of the AWS poll method, which enables long polling by specifying a longer queue wait time. Defaults to 10 if unset. SQS_RESULT_IDLE_TIMEOUT - Configures the :idle_timeout arg of the AWS poll method, which specifies the maximum time in seconds to wait for a new message before the polling loop exists. Defaults to 0 if unset.

Email configuration

SMTP_ADDRESS, SMTP_PASSWORD, SMTP_PORT, SMTP_USER - all required to send mail.

THESIS_ADMIN_EMAIL - used for from field of receipt emails. Also the email to which reports are sent.

MAINTAINER_EMAIL - used for cc field of report emails.

METADATA_ADMIN_EMAIL - used for to field of MARC export report emails (see Metadata export workflow).

DISABLE_ALL_EMAIL - emails won't be sent unless this is set to false.

In development, emails are written to a file in tmp. In testing, they are stored in memory. You still need the THESIS_ADMIN_EMAIL set for the tmp file to be written without errors.

On staging, the default is disabled email. Set DISABLE_ALL_EMAIL to false if you have a reason to turn them on. Due to the potential of unwanted emails being sent when FAKE_AUTH_ENABLED is enabled (like on PR builds), it's best to leave email off unless you are actively testing it. Staging and Production use real authentication and are thus not a concern.

Authentication configuration

Authentication for development

There's a fake auth system you can use on review apps. It bypasses the actual auth system and just logs you in with a fake developer account.

To enable on review apps
  • Set FAKE_AUTH_ENABLED to true
To enable on localhost

In .env:

  • Set FAKE_AUTH_ENABLED=true
To enable on staging or production

Don't.

Also, you shouldn't be able to. Even if you set FAKE_AUTH_ENABLED, the HEROKU_APP_NAME check will fail.

To use in the codebase

Use Rails.configuration.fake_auth_enabled, NOT ENV['FAKE_AUTH_ENABLED'].

Using the latter bypasses the app name check, which can let us inadvertently turn on fake auth in production. nope

Authentication for production

For SAML authentication, you will need all of the following.

DLS docs on SAML

IDP_METADATA_URL - URL from which the IDP metadata can be obtained. This is loaded at application start to ensure it remains up to date.

IDP_ENTITY_ID - If IDP_METADATA_URL returns more than one IdP (like MIT does) entry, this setting signifies which IdP to use.

IDP_SSO_URL - the URL from the IdP metadata to use for authentication. I was unable to extract this directly from the metadata with the ruby-saml tool even though it for sure exists.

SP_ENTITY_ID - unique identifier to this application, ex: https://example.com/shibboleth

SP_PRIVATE_KEY - Base64 strict encoded version of the SP Private Key. note: Base64 is required due to multiline ENV being weird to deal with.

SP_CERTIFICATE - Base64 strict encoded version of the SP Certificate. note: Base64 is required due to multiline ENV being weird to deal with.

URN_EMAIL - URN to extract from SAML response. For MIT, urn:oid:0.9.2342.19200300.100.1.3 for testshib urn:oid:1.3.6.1.4.1.5923.1.1.1.6 is close enough for testing.

URN_GIVEN_NAME - urn:oid:2.5.4.42 for MIT URN_SURNAME - urn:oid:2.5.4.4 for MIT These have not been tried with testshib but there's a chance they're the same. These correspond to the givenName and sn fields in Shibboleth.

URN_DISPLAY_NAME - urn:oid:2.16.840.1.113730.3.1.241 for MIT. Possibly the same in testshib, but we haven't confirmed. This corresponds to the displayName field in Shibboleth.

URN_UID - urn:oid:1.3.6.1.4.1.5923.1.1.1.6 should be good enough for both MIT and testshib. However, it is not guaranteed to be forever unique but MIT does not provide a truly unique option so this is the best we've got.

NOTE: There is a rake task to help debug responses from the IdP.

Example usage:

  • grab a SAML response from a production or staging log
  • remove all XML and quotes and put ONLY the raw encrypted SAML response into a single line of a text file. NOTE: the response likely spans multiple logger lines so you'll need to be careful to reconstruct this
  • rails debug:saml['tmp/your_saml_to_debug.txt']

User roles

There are a few user roles that provide different levels of permissions. The abilities of each role are defined in the ability model.

Basic is the default user role and is assigned when a user self creates an account. Self creation is the only supported way to create an account. If we have a new staff member, they first need to login to self create an account with the basic role and then admin staff can assign them appropriate roles.

Thesis Processor is assigned to a user that processes theses. This role is not currently used, however, as our thesis processors need a higher level of permissions than it offers. We have retained this role for potential future use (e.g., if we have multiple processors, and some don't need the full set of permissions).

Transfer Submitter is assigned to users that transfers thesis files (typically department admins). Stakeholders are responsible for assigning this role.

Thesis Admin can do everything a Thesis Processor can do but can also create and update any thesis (not just their own like a Basic user).

Roles and the Admin flag can be assigned in the Users administrate dashboard in the web UI.

Audit trail

We use the paper_trail gem to maintain audit trails of certain objects. Classes with paper_trail enabled include Thesis, ArchivematicaAccession, and Hold.

Following maintainer recommendations, we chose to migrate our paper_trail data from YAML to JSON. In YAML, enum fields were stored as integers and mapped to their string values as part of the deserialization process. After migrating to JSON, new enums are correctly stored as their mapped string values, but legacy data is still stored in the database as integers.

After consulting with stakeholders, we decided to leave the legacy data as is and map the enums in the UI, so as to avoid altering the audit trail. This only affects the hold status field in the Hold table, as that is the only enum field under paper_trail that we render in a view (see app/views/hold_status).

Data loading

There are three types of data that get loaded into this system.

Database seeds

These should only be loaded when the application database is initially set up (e.g. for new PR/development deploys or if the staging database needs to be destroyed and recreated). These seeds contain default values for certain tables such as copyrights, licenses, hold sources, and degree types.

The above seed data is loaded automatically during PR builds from Github. During local development it can be loaded during first deployment by running rails db:seed.

Additionally, degrees and departments can be manually seeded from a CSV file if desired by running rails db:seed_degrees <csv_file_url> and rails db:seed_departments <csv_file_url>, respectively. See Jira project documentation for link to a Google doc with the initial list of departments and degrees that were loaded into the production database (not maintained).

Seed data is not maintained to match the production database values, which can be changed by admin users as needed. Do not ever reseed the production database.

QA/Stakeholder testing data

Currently, most stakeholder testing occurs in staging after a feature has been merged, as staging contains test data. We're in need of atuomated process to load test data to PR builds for stakeholder testing/QA. (Note this is different from fixture data used for automated tests.) This would make it easier to keep the main branch deployable while multiple features are in QA, and it may help with testing and QA in staging, where records can quickly become invalid as the data model changs.

Registrar data

Thesis and author data for each term is loaded from a CSV file downloaded from the Registrar. This process is handled manually in the UI by the thesis processing team, and they have their own documentation on how they obtain the right data to load.

Loading registrar data may also add new degrees, departments, degree periods, which are then manually updated and maintained by stakeholders.

Note: if registrar data needs to be loaded in a local, PR, or staging deployment it should be anonymized first to ensure no protected user data is added to a non-secure database. The test fixtures (test/fixtures/files) include both full and small sample files containing anonymized registrar data that can be used for this purpose.

Processing workflow

Processors review thesis metadata each term to ensure that all necessary files and metadata are present and accurate. In addition to fields on the Thesis model, this also includes relevant data from the Author, Degree, Copyright, License, Hold, and ArchivematicaAccession models. When all validations are satisfied, thesis processors can begin the publishing workflow

The ArchivematicaAccession model is unique in that it is not directly related to the Thesis model. We first designed this application under the assumption that the notion of degree periods would not be shared across the data model. However, as the application expanded, we found that this logic was duplicated in multiple places (e.g., the Transfer model). When the need emerged to add an ArchivematicaAccession model to assign accession numbers to theses, we corrected this by adding a DegreePeriod model that has_one ArchivematicaAccession.

We plan to abstract the duplicative degree period logic to the DegreePeriod model, but this is a substantial refactor that will require careful planning and execution. In the meantime, a Thesis is not directly associated with an ArchivematicaAccession, but instead looks it up based on the DegreePeriod that corresponds with the thesis` graduation date.

New degree periods are generated for each subsequent term from registrar data uploads, at which point processors must create a corresponding Archivematica accession number.

Publishing workflow

  1. Following the processing workflow, stakeholders choose a term to publish (Process theses - Select term - Select Publication Review - Publish)
  2. ETD will now automatically send data to DSS via the SQS queue
  3. DSS runs (as of this writing that is a manual process documented in the DSS repo)
  4. ETD processes output queue to update records and send email to stakeholders with summary data and list of any error records. As of now this is a manual process, but can be triggered via rake task using the following sequence of heroku-cli commands:
# scale the worker dyno to ensure we have enough memory
# as off Aug 2024 `performance-m` has been sufficient
heroku ps:scale worker=1:performance-m --app TARGET-HEROKU-APP

# run the output queue processing job
heroku run -s performance-m rails dss:process_output_queue --app TARGET-HEROKU-APP

# wait for all ETD emails to be received (there are three emails: one overall results summary, one preservation
# results summary, and one MARC batch export).
# Then, scale the worker back down so we do not pay for more CPU/memory than we need
heroku ps:scale worker=1:standard-1x --app TARGET-HEROKU-APP

Note the -s option on the second command, which sets the dyno size for the run command. We are scaling to the larger '2X' dyno because this job is very memory-intensive. We also first scale the worker dyno to 2x and then set it back to 1x when we are done for the same reason (preservation takes a lot of memory).

Publishing a single thesis

You can publish a single thesis that is already in Publication review or Pending publication status by passing the thesis_id to a rake task:

heroku run -s standard-2x rails dss:publish_thesis_by_id[THESIS_ID] --app TARGET-HEROKU-APP

Note: Pending publication is allowed here, but not expected to be a normal occurence, to handle the edge case of the app thinking data was sent to SQS but the data not arriving for any reason.

Preservation workflow

The publishing workflow will automatically trigger preservation for all of the published theses in the results queue. At this point a submission information package is generated for each thesis, then a bag is constructed, zipped, and streamed to an S3 bucket. (See the SubmissionInformationPackage and SubmissionInformationPackageZipper classes for more details on this part of the process.)

Once they are in the S3 bucket, the bags are automatically replicated to the Digital Preservation S3 bucket, where they can be ingested into Archivematica.

A thesis can be sent to preservation more than once. In order to track provenance across multiple preservation events, we persist certain data about the SIP and audit the model using paper_trail.

Preserving a single thesis

You can manually send a published thesis to preservation by passing the thesis ID to the following rake task:

heroku run rails preservation:preserve_thesis_by_id[THESIS_ID] --app TARGET-HEROKU-APP

Metadata export workflow

The publishing workflow will automatically trigger a MARC export of all the published theses in the results queue. The generated marcxml file is zipped, attached to an email, and sent to the cataloging team (see Sending Receipt Email in Production).

ProQuest export workflow

Students have the option to agree to send their thesis and its metadata to ProQuest. If all authors of a thesis consent, the thesis will be flagged for ProQuest export. Otherwise, the thesis will not be flagged for export.

This process differs for doctoral theses. We pay ProQuest to harvest metadata for doctoral theses regardless of the thesis' ProQuest consent status. If the authors of a doctoral thesis provide conflicting responses, all authors decline, or at least one author does not respond, then the thesis is flagged for 'partial harvest'. In this case, ProQuest will harvest the thesis metadata only, not the thesis itself.

Processors can review all theses that are flagged for export in a dashboard. Once they have confirmed that the list is correct, they initiate a job that generates a JSON report of all theses that have not yet been exported. The JSON contains each thesis' DSpace handle and its export status (partial or full harvest). The processor then forwards this JSON file to the ProQuest Dissertations and Theses team, who will harvest metadata -- and files, where applicable -- using the DSpace handles provided.

The same job that generates the JSON report also creates a CSV listing each 'partial harvest' thesis. This CSV is used for budget reconciliation, and is sent to the ETD team in the same email as the JSON report.

Each export instantiates a ProquestExportBatch ActiveRecord object, to which the CSV and JSON files are attached using ActiveStorage. Additionally, a ProquestExportBatch object is associated with all theses it exports. This allows us to provide information about past export jobs as needed.

The ProQuest export workflow begins with the September 2022 degree period. All theses from prior degree periods are excluded from export.

Validation of thesis records

Prior to theses being published to external systems (such as the repository, or a preservation system), a number of checks are performed to ensure that all necessary information is present. These checks go beyond the built-in data validations which are run by the .valid? method; more information can be found by looking at the evaluate_status method on the Thesis model.

Thesis fields

The following table lists the components of a Thesis record, including whether each is required - and where that check is performed.

Field Required? Verified by
ID yes valid?
Created_at yes valid?
Updated_at yes valid?
Title yes required_fields?
Abstract sometimes required_abstract?
Grad_date yes valid?
Status yes valid?
Processor_note no
Author_note no
Files_complete yes evaluate_status
Metadata_complete yes evaluate_status
Publication_status yes valid?
Coauthors no
Copyright_id yes required_fields?
License_id sometimes required_license?
Dspace_handle no
Issues_found yes no_issues_found?

Related records

Record Required? Verified by
Advisor yes advisors?
Author yes Two checks:
- validations
- authors_graduated checks the graduated flag on each author record
Copyright yes copyright_id?
Degree yes degrees? and degrees_have_types?
Department yes validations and departments_have_dspace_name?
File yes Four checks:
- files? confirms that at least one file is attached
-file_have_purpose? confirms that each file has an assigned purpose
- one_thesis_pdf? confirms one-and-only-one file has a "thesis_pdf" purpose
- unique_filenames?(self) confirms that no duplicate filenames exist within a thesis
Hold yes no_active_holds? confirms that no attached hold has an "active" or "expired" status
("released" holds are okay)
License sometimes required_license? checks who holds copyright and requires a license if that is the author
Accession number yes accession_number.present?

Alternate file upload feedback

As a default behavior, the bulk file transfer form at /transfer/new uses the browser's built-in file input field, with slight javascript decoration to improve user feedback before and during file uploading.

However, there is an alternate behavior available. This alternate, which has yet to be fully tested, can be accessed by appending any value for upload to the querystring (i.e. /transfer/new?upload=alternate). This alternative offers some additional capabilities via javascript decoration, such as appending to (or pruning from) a pending bulk file transfer. The file uploading itself is unaffected by this altenative.

Resetting counter cache

We use counter caches to improve the application's performance. These commands should only need to be run at most once in a given app to update counter columns on existing records. After that, the counters will update automatically. If you suspect something has gone wrong with the counters, you can re-run them to ensure they are accurate with no side effects other than the counters definitely being wrong for a few minutes as they recalculate.

These rake tasks should be updated as we add new counter cache columns.

Thesis counter_cache

You can run the following rake task to update the counters:

heroku run rails cache:reset_thesis_counters --app TARGET-HEROKU-APP

Transfer counter_cache

This is a non-standard counter_cache that needs to calculate counters based on Theses and not just Transfers.

heroku run rails cache:reset_transfer_counters --app TARGET-HEROKU-APP

thing's People

Contributors

jprevost avatar jazairi avatar matt-bernhardt avatar depfu[bot] avatar thatandromeda avatar hakbailey avatar frrrances avatar periinc avatar hardyoyo avatar

Stargazers

arpu avatar William Blackerby avatar Roxanne Shirazi avatar  avatar  avatar  avatar  avatar Whitni  avatar

Watchers

arpu avatar James Cloos avatar  avatar  avatar Graham Hukill avatar Rich Wenger avatar Carl Jones avatar  avatar  avatar Christine Quirion avatar  avatar  avatar  avatar

thing's Issues

drop in admin gem

configure admin gem (not sure which one yet) to allow staff users to use a web ui to manipulate approved data

add advisors to web form

  • reenable validation in Thesis model
  • reenable skipped test
  • Consider whether Thesis / Advisor relationship is defined in a way that we intend. I think we currently have it defined so that it's many-to-many which is correct in the real world... but in our application because we have no authority control over Advisors, we need to treat it like a One Thesis has Many advisors.
  • add advisors to web ui in a manner that allows for one or more advisors

create roles system

cancancan is generally a good fit.

User

  • current_user can create a new thesis
  • current_user can view and edit their own theses
  • can a current_user delete their own theses? (check with stakeholders)
  • current_user can create / edit their own advisors

Another User

  • cannot create, view, edit or delete another user thesis
  • cannot create, view, edit or delete another user advisors

Staff

  • staff can view, edit and delete all thesis
  • staff can create / edit departments (not delete!)
  • staff can create / edit rights (not delete!)
  • staff can create / edit degrees (not delete!)
  • staff can create / edit user advisors

add file upload to s3 to web form

we should probably use direct to S3 javascript uploads to avoid streaming files through the server to S3.

QuickSubmit does this and we can consider whether the solution there is worth bringing over here.

ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database. If you are sure you want to continue, run the same command with the environment variable: DISABLE_DATABASE_ENVIRONMENT_CHECK=1

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/14/


ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
If you are sure you want to continue, run the same command with the environment variable:
DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/tasks/database_tasks.rb", line 61, in check_protected_environments!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/databases.rake", line 13, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 217, in block in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 194, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 217, in block in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 194, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 181, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 160, in invoke_task
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block (2 levels) in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 125, in run_with_threads
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 110, in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 23, in block in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 186, in standard_exception_handling
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 20, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/command.rb", line 48, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands.rb", line 18, in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 17, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 17, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in block in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 249, in load_dependency
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in require
  File "/app/bin/rails", line 4, in <main>

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "users_pkey" DETAIL: Key (id)=(3) already exists. : INSERT INTO "users" ("uid", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURN

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/13/


PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "users_pkey"
DETAIL:  Key (id)=(3) already exists.

  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 603, in async_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 603, in block (2 levels) in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 48, in block in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/concurrency/share_lock.rb", line 187, in yield_shares
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 47, in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 602, in block in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 579, in block (2 levels) in log
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 578, in block in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 569, in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 601, in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 590, in execute_and_clear
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 81, in exec_query
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 117, in exec_insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 115, in exec_insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 149, in insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/query_cache.rb", line 21, in insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/persistence.rb", line 188, in _insert_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/persistence.rb", line 724, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/counter_cache.rb", line 180, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/locking/optimistic.rb", line 77, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/attribute_methods/dirty.rb", line 135, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/callbacks.rb", line 342, in block in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 132, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 816, in _run_create_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/callbacks.rb", line 342, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/timestamp.rb", line 95, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/persistence.rb", line 698, in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/callbacks.rb", line 338, in block in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 132, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 816, in _run_save_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/callbacks.rb", line 338, in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/persistence.rb", line 264, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/validations.rb", line 46, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 310, in block (2 levels) in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 386, in block in with_transaction_returning_status
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in block in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 230, in block in within_new_transaction
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 227, in within_new_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 212, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 383, in with_transaction_returning_status
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 310, in block in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 325, in rollback_active_record_state!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 309, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerec

Initial user facing form

Create a user facing form to collect metadata about a thesis.

The form:

  • Users are prompted to sign before filling out the form
  • New thesis is linked to current_user
  • Title: string (required)
  • Graduation Date: year / month from drop downs (required)
  • Abstract: text
  • Rights Assignment (dropdown from Rights): required
  • Department (dropdown from Departments): required
  • Degree (dropdown from Degrees): required

Post submission:

  • Displays receipt when submitted

The following will be handled in separate Issues

  • Uploading files will be handle in a separate Issue
  • Advisors: multiple repeatable string field. required

NoMethodError: Cannot load `Rails.config.active_storage.service`: undefined method `empty?' for true:TrueClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/8/


NoMethodError: undefined method `empty?' for true:TrueClass
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/aws-sdk-core/credentials.rb", line 31, in set?
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/aws-sdk-core/credential_provider_chain.rb", line 13, in block in resolve
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/aws-sdk-core/credential_provider_chain.rb", line 11, in each
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/aws-sdk-core/credential_provider_chain.rb", line 11, in resolve
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/aws-sdk-core/plugins/credentials_configuration.rb", line 53, in block in <class:CredentialsConfiguration>
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 70, in call
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 205, in block in resolve_defaults
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 57, in each
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 57, in each
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 204, in resolve_defaults
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 200, in value_at
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 189, in block in resolve
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/ruby-2.4.2/lib/ruby/2.4.0/set.rb", line 324, in each_key
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/ruby-2.4.2/lib/ruby/2.4.0/set.rb", line 324, in each
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 189, in resolve
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 177, in apply_defaults
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 150, in build!
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 62, in build_config
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 19, in initialize
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.8.0/lib/aws-sdk-s3/client.rb", line 197, in initialize
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 99, in new
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.8.0/lib/aws-sdk-s3/resource.rb", line 14, in initialize
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/s3_service.rb", line 13, in new
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/s3_service.rb", line 13, in initialize
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 61, in new
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 61, in build
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/configurator.rb", line 17, in build
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/configurator.rb", line 8, in build
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 51, in configure
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/engine.rb", line 81, in block (2 levels) in <class:Engine>
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 426, in instance_exec
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 426, in block in make_lambda
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 198, in block (2 levels) in halting
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 606, in block (2 levels) in default_terminator
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 605, in catch
  File "/tmp/build_c2a8077ec6bd1c13a0e2a23b087d8ea4/MITLibraries-thing-03abcfb/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/acti

NoMethodError: Cannot load `Rails.config.active_storage.service`: undefined method `match' for nil:NilClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/7/


NoMethodError: undefined method `match' for nil:NilClass
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 82, in block in partition_matching_region
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 81, in each
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 81, in find
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 81, in partition_matching_region
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 70, in get_partition
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 23, in signing_region
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-partitions-1.60.0/lib/aws-partitions/endpoint_provider.rb", line 99, in signing_region
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.8.0/lib/aws-sdk-s3/plugins/s3_signer.rb", line 20, in block in <class:S3Signer>
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 70, in call
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 205, in block in resolve_defaults
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 57, in each
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 57, in each
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 204, in resolve_defaults
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 200, in value_at
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 189, in block in resolve
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/ruby-2.4.2/lib/ruby/2.4.0/set.rb", line 324, in each_key
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/ruby-2.4.2/lib/ruby/2.4.0/set.rb", line 324, in each
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 189, in resolve
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 177, in apply_defaults
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/configuration.rb", line 150, in build!
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 62, in build_config
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 19, in initialize
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.8.0/lib/aws-sdk-s3/client.rb", line 197, in initialize
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.15.0/lib/seahorse/client/base.rb", line 99, in new
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.8.0/lib/aws-sdk-s3/resource.rb", line 14, in initialize
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/s3_service.rb", line 13, in new
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/s3_service.rb", line 13, in initialize
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 61, in new
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 61, in build
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/configurator.rb", line 17, in build
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service/configurator.rb", line 8, in build
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/service.rb", line 51, in configure
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0.rc1/lib/active_storage/engine.rb", line 81, in block (2 levels) in <class:Engine>
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 426, in instance_exec
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 426, in block in make_lambda
  File "/tmp/build_c434747dbe81b52ede29f250752e7112/MITLibraries-thing-b3b38e4/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks

StandardError: An error has occurred, this and all later migrations canceled: PG::UndefinedColumn: ERROR: column "name" of relation "users" does not exist : ALTER TABLE "users" DROP COLUMN "name"

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/18/


PG::UndefinedColumn: ERROR:  column "name" of relation "users" does not exist

  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 75, in async_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 75, in block (2 levels) in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 48, in block in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/concurrency/share_lock.rb", line 187, in yield_shares
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 47, in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 74, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 579, in block (2 levels) in log
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 578, in block in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 569, in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 73, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/schema_statements.rb", line 603, in remove_column
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 870, in block in method_missing
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 839, in block in say_with_time
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 293, in measure
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 839, in say_with_time
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 859, in method_missing
  File "/app/db/migrate/20180227190524_remove_name_from_users.rb", line 3, in change
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 813, in exec_migration
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 797, in block (2 levels) in migrate
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 293, in measure
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 796, in block in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 414, in with_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 795, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 976, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1291, in block in execute_migration_in_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1342, in block in ddl_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in block in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 230, in block in within_new_transaction
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 227, in within_new_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 212, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1342, in ddl_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1290, in execute_migration_in_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1262, in block in migrate_without_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1261, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1261, in migrate_without_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1209, in block in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1361, in with_advisory_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1209, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1035, in up
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1010, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/tasks/database_tasks.rb", line 172, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/databases.rake", line 60, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_sync

TypeError: this.input.insertAdjacentElement is not a function

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/36/


TypeError: this.input.insertAdjacentElement is not a function
  File "https://library-thesis-dropbox.mit.edu/assets/application-f9ad2d5ff81392a3bc699b8bd165a9f60190da2b33065a567e79f78ded1e75f9.js", line 27, in s</<.value
  File "https://library-thesis-dropbox.mit.edu/assets/application-f9ad2d5ff81392a3bc699b8bd165a9f60190da2b33065a567e79f78ded1e75f9.js", line 27, in i
  File "https://library-thesis-dropbox.mit.edu/assets/application-f9ad2d5ff81392a3bc699b8bd165a9f60190da2b33065a567e79f78ded1e75f9.js", line 27, in l</<.value
  File "https://library-thesis-dropbox.mit.edu/assets/application-f9ad2d5ff81392a3bc699b8bd165a9f60190da2b33065a567e79f78ded1e75f9.js", line 27, in a
  File "https://library-thesis-dropbox.mit.edu/assets/application-f9ad2d5ff81392a3bc699b8bd165a9f60190da2b33065a567e79f78ded1e75f9.js", line 27, in r

Aws::S3::Errors::NoSuchBucket: The specified bucket does not exist

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/42/


Aws::S3::Errors::NoSuchBucket: The specified bucket does not exist
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/seahorse/client/plugins/raise_response_errors.rb", line 15, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.10.0/lib/aws-sdk-s3/plugins/sse_cpk.rb", line 22, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.10.0/lib/aws-sdk-s3/plugins/dualstack.rb", line 26, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.10.0/lib/aws-sdk-s3/plugins/accelerate.rb", line 35, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/aws-sdk-core/plugins/jsonvalue_converter.rb", line 20, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/aws-sdk-core/plugins/idempotency_token.rb", line 17, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/aws-sdk-core/plugins/param_converter.rb", line 24, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/aws-sdk-core/plugins/response_paging.rb", line 10, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/seahorse/client/plugins/response_target.rb", line 23, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-core-3.20.2/lib/seahorse/client/request.rb", line 70, in send_request
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.10.0/lib/aws-sdk-s3/client.rb", line 5462, in put_object
  File "/app/vendor/bundle/ruby/2.4.0/gems/aws-sdk-s3-1.10.0/lib/aws-sdk-s3/object.rb", line 876, in put
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/service/s3_service.rb", line 22, in block in upload
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/service.rb", line 118, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/service/s3_service.rb", line 20, in upload
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/app/models/active_storage/blob.rb", line 155, in upload
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/app/models/active_storage/blob.rb", line 53, in block in build_after_upload
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/app/models/active_storage/blob.rb", line 48, in tap
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/app/models/active_storage/blob.rb", line 48, in build_after_upload
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/app/models/active_storage/blob.rb", line 61, in create_after_upload!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/attached.rb", line 23, in create_blob_from
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/attached/many.rb", line 24, in block in attach
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/attached/many.rb", line 22, in collect
  File "/app/vendor/bundle/ruby/2.4.0/gems/activestorage-5.2.0/lib/active_storage/attached/many.rb", line 22, in attach
  File "/app/app/controllers/thesis_controller.rb", line 15, in create
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb", line 194, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 132, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 32, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/params_wrapper.rb", line 256, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0/lib/active_record/railties/controller_runtime.rb", line 24, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb", line 134, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/rendering.rb", line 32, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb", line 191, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb", line 252, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 52, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 34, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 52, in block in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 35, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 35, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 840, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-core-2.0.1/lib/skylight/core/probes/middleware.rb", line 29, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb", line 190, in call!
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb", line 168, in ca

PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "ec2-50-17-201-204.compute-1.amazonaws.com" (10.183.209.235) and accepting TCP/IP connections on port 5432?

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/26/


PG::ConnectionBad: could not connect to server: Connection refused
	Is the server running on host "ec2-50-17-201-204.compute-1.amazonaws.com" (10.183.209.235) and accepting
	TCP/IP connections on port 5432?

  File "/app/vendor/bundle/ruby/2.4.0/gems/pg-0.21.0/lib/pg.rb", line 56, in initialize
  File "/app/vendor/bundle/ruby/2.4.0/gems/pg-0.21.0/lib/pg.rb", line 56, in new
  File "/app/vendor/bundle/ruby/2.4.0/gems/pg-0.21.0/lib/pg.rb", line 56, in connect
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 684, in connect
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 215, in initialize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 40, in new
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb", line 40, in postgresql_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 809, in new_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 853, in checkout_new_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 832, in try_to_checkout_new_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 793, in acquire_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 521, in checkout
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 380, in connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 1008, in retrieve_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_handling.rb", line 118, in retrieve_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_handling.rb", line 90, in connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/tasks/database_tasks.rb", line 172, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/databases.rake", line 60, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 181, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 160, in invoke_task
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block (2 levels) in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 125, in run_with_threads
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 110, in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 23, in block in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 186, in standard_exception_handling
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 20, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/command.rb", line 48, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands.rb", line 18, in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 21, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 21, in block in require_with_bootsnap_lfi
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/loaded_features_index.rb", line 65, in register
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 20, in require_with_bootsnap_lfi
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 29, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in block in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 249, in load_dependency
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in require
  File "bin/rails", line 4, in <main>

Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/6/


Gem::LoadError: can't activate pg (~> 0.18), already activated pg-1.0.0. Make sure all dependencies are added to Gemfile.
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb", line 377, in block (2 levels) in replace_gem
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 2, in <top (required)>
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in block in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 258, in load_dependency
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/connection_specification.rb", line 186, in spec
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 880, in establish_connection
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_handling.rb", line 58, in establish_connection
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/railtie.rb", line 124, in block (2 levels) in <class:Railtie>
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 69, in instance_eval
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 69, in block in execute_hook
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 60, in with_execution_control
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 65, in execute_hook
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 50, in block in run_load_hooks
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 49, in each
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb", line 49, in run_load_hooks
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/base.rb", line 326, in <module:ActiveRecord>
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/base.rb", line 25, in <top (required)>
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in block in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 258, in load_dependency
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/app/models/application_record.rb", line 1, in <top (required)>
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes.rb", line 81, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in block in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 258, in load_dependency
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 292, in require
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 379, in block in require_or_load
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb", line 36, in block in load_interlock
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb", line 12, in block in loading
  File "/tmp/build_fa24aefa5b714afdd20645460d6ce8c9/MITLibraries-thing-77ecd3f/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb", line 149, in exclusive
  File

TypeError: event.target.submit is not a function

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/28/


TypeError: event.target.submit is not a function
  File "http://localhost:5000/assets/direct_uploads.self-af63415251a2d4cf7aaedff63eb46acbb926c28dd4e94d6f758f90ee664d76dd.js", line 47, in [anonymous]
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in u
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in value
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in value/<
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in value/</</<
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in value
  File "http://localhost:5000/assets/activestorage.self-d10af80d7a0f9a0af5f2b43ad6d6f97d7453af855117d0eca2b567e7fbf9d5fd.js", line 1, in t/<

Advisors model

(for now, this will be it's own model. we discussed whether Advisors should just be special Users but I think for now we're better off just storing the bits we need in a Advisors)

  • name

RuntimeError: 32 jobs older than 300 seconds have not been processed yet

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/29/


RuntimeError: 32 jobs older than 300 seconds have not been processed yet
  File "/app/vendor/bundle/ruby/2.4.0/gems/delayed_job-4.1.4/lib/delayed/tasks.rb", line 36, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 181, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 160, in invoke_task
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block (2 levels) in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 125, in run_with_threads
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 110, in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 23, in block in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 186, in standard_exception_handling
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 20, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/command.rb", line 48, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands.rb", line 18, in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 21, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 21, in block in require_with_bootsnap_lfi
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/loaded_features_index.rb", line 65, in register
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 20, in require_with_bootsnap_lfi
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.2.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 29, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in block in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 249, in load_dependency
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in require
  File "bin/rails", line 4, in <main>

ActionView::Template::Error: undefined method `email' for nil:NilClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/15/


NoMethodError: undefined method `email' for nil:NilClass
  File "/app/app/views/thesis/process_theses.html.erb", line 16, in block in _app_views_thesis_process_theses_html_erb__45416643905803457_63298760
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/relation/delegation.rb", line 41, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/relation/delegation.rb", line 41, in each
  File "/app/app/views/thesis/process_theses.html.erb", line 11, in _app_views_thesis_process_theses_html_erb__45416643905803457_63298760
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 54, in block (2 levels) in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 53, in block in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 61, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 32, in block in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 31, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 52, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 16, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 44, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/rendering.rb", line 103, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/streaming.rb", line 219, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/rendering.rb", line 84, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb", line 52, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/renderers.rb", line 142, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/rendering.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb", line 36, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb", line 46, in block (2 levels) in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/core_ext/benchmark.rb", line 14, in block in ms
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 308, in realtime
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/core_ext/benchmark.rb", line 14, in ms
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb", line 46, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb", line 87, in cleanup_view_runtime
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/controller_runtime.rb", line 31, in cleanup_view_runtime
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb", line 45, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/implicit_render.rb", line 35, in default_render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/basic_implicit_render.rb", line 6, in block in send_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/basic_implicit_render.rb", line 6, in tap
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/base.rb", line 194, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb", line 132, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/callbacks.rb", 

Rights

  • statement

relationships:

  • has_many :thesis

ActionView::Template::Error: undefined method `grad_date' for nil:NilClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/24/


NoMethodError: undefined method `grad_date' for nil:NilClass
  File "/app/app/helpers/thesis_helper.rb", line 41, in earliest_year
  File "/app/app/helpers/thesis_helper.rb", line 34, in options_for_year_range
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 23, in block in _app_views_thesis__date_filter_form_html_erb___3792932645315263337_53615160
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 41, in block in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 205, in with_output_buffer
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 41, in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/form_tag_helper.rb", line 72, in form_tag
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 1, in _app_views_thesis__date_filter_form_html_erb___3792932645315263337_53615160
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 344, in block in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 333, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 312, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 49, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 23, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/rendering_helper.rb", line 34, in render
  File "/app/app/views/thesis/stats.html.erb", line 3, in _app_views_thesis_stats_html_erb__1545911501252180190_53688080
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 54, in block (2 levels) in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 53, in block in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 61, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 32, in block in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 31, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 52, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 16, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 44, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/rendering.rb", line 103, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/streaming.rb", line 219, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/rendering.rb", line 84, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb", line 52, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/renderers.rb", line 142, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/rendering.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb", line 36, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb", line 46, in block (2 levels) in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/core_ext/benchmark.rb", line 14, in block in ms
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 308, in realtime
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/core_ext/benchmark.rb", line 14, in ms
  File "/app/vendor/bundle/ruby/2.4.0/gems/

ActionView::Template::Error: undefined method `grad_date' for nil:NilClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/25/


NoMethodError: undefined method `grad_date' for nil:NilClass
  File "/app/app/helpers/thesis_helper.rb", line 41, in earliest_year
  File "/app/app/helpers/thesis_helper.rb", line 34, in options_for_year_range
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 23, in block in _app_views_thesis__date_filter_form_html_erb__4326072257856215281_69965721903860
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 41, in block in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 205, in with_output_buffer
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/capture_helper.rb", line 41, in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/form_tag_helper.rb", line 72, in form_tag
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 1, in _app_views_thesis__date_filter_form_html_erb__4326072257856215281_69965721903860
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 344, in block in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 333, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 312, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 49, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 23, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/rendering_helper.rb", line 34, in render
  File "/app/app/views/thesis/_inner_stats.html.erb", line 1, in _app_views_thesis__inner_stats_html_erb__2289784943096333127_69965822643380
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 344, in block in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 333, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/partial_renderer.rb", line 312, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/renderer.rb", line 49, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/helpers/rendering_helper.rb", line 37, in render
  File "/app/app/views/thesis/stats.html.erb", line 4, in _app_views_thesis_stats_html_erb__456611624444546562_69965755665620
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 54, in block (2 levels) in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 53, in block in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 61, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 32, in block in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.1/lib/skylight/probes/action_view.rb", line 31, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/renderer/template_renderer.rb", line 52, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0.rc1/lib/action_view/r

Degrees

  • name

relationships:

  • has_and_belongs_to_many :thesis

ActionController::BadRequest: ActionController::BadRequest

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/5/


ActionController::BadRequest: ActionController::BadRequest
  File "/app/app/controllers/thesis_controller.rb", line 48, in mark_downloaded
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb", line 4, in send_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb", line 186, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb", line 20, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 131, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb", line 20, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb", line 166, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb", line 166, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb", line 252, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb", line 22, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb", line 124, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/rendering.rb", line 30, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb", line 189, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb", line 253, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb", line 49, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb", line 31, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb", line 50, in block in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb", line 33, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb", line 33, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb", line 834, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.7.1/lib/omniauth/strategy.rb", line 190, in call!
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.7.1/lib/omniauth/strategy.rb", line 168, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 36, in block in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in catch
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/etag.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/conditional_get.rb", line 38, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/head.rb", line 12, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 232, in context
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 226, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb", line 613, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb", line 26, in block in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 97, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb", line 24, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/rollbar.rb", line 24, in block in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rollbar-2.15.5/lib/rollbar.rb", line 145, in scoped
  File "/app/vendor/bundle/ruby/2.4.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/rollbar.rb", line 22, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb", line 59, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/show_exceptions.rb", line 22, in call_with_rollbar
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb", line 31, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.5.0/lib/skylight/probes/middleware.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/lograge-0.7.1/lib/lograge/rails_ext/rack/logger.rb", line 15, in call_app
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/rack/logger.rb", line 24, in block in call
  

Uglifier::Error: Unexpected token: operator (>). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/9/


Uglifier::Error: Unexpected token: operator (>). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.6/lib/uglifier.rb", line 234, in parse_result
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.6/lib/uglifier.rb", line 216, in run_uglifyjs
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.6/lib/uglifier.rb", line 168, in compile
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb", line 53, in call
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb", line 28, in call
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb", line 75, in call_processor
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb", line 57, in block in call_processors
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb", line 56, in reverse_each
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb", line 56, in call_processors
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb", line 134, in load_from_unloaded
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb", line 60, in block in load
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb", line 317, in fetch_asset_from_dependency_cache
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb", line 44, in load
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb", line 20, in block in initialize
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb", line 47, in load
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/base.rb", line 66, in find_asset
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/base.rb", line 73, in find_all_linked_assets
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb", line 142, in block in find
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb", line 114, in block (2 levels) in logical_paths
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb", line 228, in block in stat_tree
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb", line 212, in block in stat_directory
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb", line 209, in each
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb", line 209, in stat_directory
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb", line 227, in stat_tree
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb", line 105, in each
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb", line 105, in block in logical_paths
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb", line 104, in each
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb", line 104, in logical_paths
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb", line 140, in find
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb", line 185, in compile
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb", line 68, in block (3 levels) in define
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb", line 147, in with_logger
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb", line 67, in block (2 levels) in define
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thing-3f0d225/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/tmp/build_3ad2a2b6d09a1bd6c392079febde9c29/MITLibraries-thi

Departments

  • name

relations:

  • has_and_belongs_to_many :thesis

Thesis Model

  • title
  • abstract
  • grad_date

relations:

  • belongs_to :user
  • has_one :right
  • has_and_belongs_to_many :degrees
  • has_and_belongs_to_many :departments
  • has_and_belongs_to_many :advisors

ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database. If you are sure you want to continue, run the same command with the environment variable: DISABLE_DATABASE_ENVIRONMENT_CHECK=1

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/17/


ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
If you are sure you want to continue, run the same command with the environment variable:
DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/tasks/database_tasks.rb", line 61, in check_protected_environments!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/databases.rake", line 13, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 217, in block in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 215, in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 194, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 188, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 181, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 160, in invoke_task
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block (2 levels) in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 116, in block in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 125, in run_with_threads
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 110, in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 23, in block in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/application.rb", line 186, in standard_exception_handling
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands/rake/rake_command.rb", line 20, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/command.rb", line 48, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.0.rc1/lib/rails/commands.rb", line 18, in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 17, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb", line 17, in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in block in require
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 249, in load_dependency
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies.rb", line 283, in require
  File "/app/bin/rails", line 4, in <main>

ActionView::Template::Error: undefined method `grad_date' for nil:NilClass

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/32/


NoMethodError: undefined method `grad_date' for nil:NilClass
  File "/app/app/helpers/thesis_helper.rb", line 45, in earliest_year
  File "/app/app/helpers/thesis_helper.rb", line 34, in options_for_year_range
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 24, in block in _app_views_thesis__date_filter_form_html_erb__3369272585744269275_56486360
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/helpers/capture_helper.rb", line 41, in block in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/helpers/capture_helper.rb", line 205, in with_output_buffer
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/helpers/capture_helper.rb", line 41, in capture
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/helpers/form_tag_helper.rb", line 72, in form_tag
  File "/app/app/views/thesis/_date_filter_form.html.erb", line 2, in _app_views_thesis__date_filter_form_html_erb__3369272585744269275_56486360
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/partial_renderer.rb", line 344, in block in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/partial_renderer.rb", line 333, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/partial_renderer.rb", line 312, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/renderer.rb", line 49, in render_partial
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/renderer.rb", line 23, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/helpers/rendering_helper.rb", line 34, in render
  File "/app/app/views/thesis/stats.html.erb", line 3, in _app_views_thesis_stats_html_erb__942036693805660845_56540120
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 159, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 354, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/template.rb", line 157, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/template_renderer.rb", line 54, in block (2 levels) in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/template_renderer.rb", line 53, in block in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/template_renderer.rb", line 61, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/action_view.rb", line 30, in block in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 44, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 170, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/abstract_renderer.rb", line 43, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/action_view.rb", line 29, in render_with_layout
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/template_renderer.rb", line 52, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/template_renderer.rb", line 16, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/renderer.rb", line 44, in render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/renderer/renderer.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/rendering.rb", line 103, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/streaming.rb", line 219, in _render_template
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/rendering.rb", line 84, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/rendering.rb", line 52, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/renderers.rb", line 142, in render_to_body
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/rendering.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/rendering.rb", line 36, in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 46, in block (2 levels) in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/core_ext/benchmark.rb", line 14, in block in ms
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 308, in realtime
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/core_ext/benchmark.rb", line 14, in ms
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 46, in block in render
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/met

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_uid" DETAIL: Key (uid)=([email protected]) already exists. : INSERT INTO "users" ("uid", "email", "admin", "created_at", "updated_at

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/4/


PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_users_on_uid"
DETAIL:  Key (uid)=([email protected]) already exists.

  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 614, in async_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 614, in block (2 levels) in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb", line 46, in block in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb", line 185, in yield_shares
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb", line 45, in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 613, in block in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract_adapter.rb", line 612, in block (2 levels) in log
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract_adapter.rb", line 611, in block in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract_adapter.rb", line 603, in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 612, in exec_no_cache
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb", line 601, in execute_and_clear
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 79, in exec_query
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb", line 102, in exec_insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 113, in exec_insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb", line 133, in insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb", line 17, in insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/relation.rb", line 61, in insert
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/persistence.rb", line 589, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/counter_cache.rb", line 178, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/locking/optimistic.rb", line 76, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb", line 296, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/callbacks.rb", line 340, in block in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 131, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 827, in _run_create_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/callbacks.rb", line 340, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/timestamp.rb", line 95, in _create_record
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/persistence.rb", line 563, in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/callbacks.rb", line 336, in block in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 131, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb", line 827, in _run_save_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/callbacks.rb", line 336, in create_or_update
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/persistence.rb", line 129, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/validations.rb", line 44, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb", line 35, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 308, in block (2 levels) in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 384, in block in with_transaction_returning_status
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb", line 235, in block in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb", line 194, in block in within_new_transaction
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb", line 191, in within_new_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb", line 235, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 210, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 381, in with_transaction_returning_status
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 308, in block in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 323, in rollback_active_record_state!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb", line 307, in save
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/suppressor.rb", 

CanCan::AccessDenied: You are not authorized to access this page.

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/34/


CanCan::AccessDenied: You are not authorized to access this page.
  File "/app/vendor/bundle/ruby/2.4.0/gems/cancancan-2.2.0/lib/cancan/ability.rb", line 176, in authorize!
  File "/app/vendor/bundle/ruby/2.4.0/gems/cancancan-2.2.0/lib/cancan/controller_additions.rb", line 336, in authorize!
  File "/app/vendor/bundle/ruby/2.4.0/gems/cancancan-2.2.0/lib/cancan/controller_resource.rb", line 37, in authorize_resource
  File "/app/vendor/bundle/ruby/2.4.0/gems/cancancan-2.2.0/lib/cancan/controller_resource.rb", line 32, in load_and_authorize_resource
  File "/app/vendor/bundle/ruby/2.4.0/gems/cancancan-2.2.0/lib/cancan/controller_resource.rb", line 15, in block in add_before_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 426, in instance_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 426, in block in make_lambda
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 198, in block (2 levels) in halting
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb", line 34, in block (2 levels) in <module:Callbacks>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 199, in block in halting
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 513, in block in invoke_before
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 513, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 513, in invoke_before
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 131, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb", line 32, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal/params_wrapper.rb", line 256, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0/lib/active_record/railties/controller_runtime.rb", line 24, in process_action
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb", line 134, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.2.0/lib/action_view/rendering.rb", line 32, in process
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb", line 191, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb", line 252, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 52, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 34, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 52, in block in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 35, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb", line 35, in serve
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb", line 840, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb", line 415, in call_app!
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-saml-1.10.0/lib/omniauth/strategies/saml.rb", line 86, in other_phase
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb", line 189, in call!
  File "/app/vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb", line 168, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 36, in block in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in catch
  File "/app/vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/tempfile_reaper.rb", line 15, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/etag.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/conditional_get.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/head.rb", line 12, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/http/content_security_policy.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb", line 232, in context
  File "/app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb", line 226, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/skylight-1.6.1/lib/skylight/probes/middleware.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/cookies.rb", line 670, in call
  File "/app/vendor/bundle/ruby/2.4

Errno::ECONNRESET: Connection reset by peer

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/41/


Errno::ECONNRESET: Connection reset by peer
  File "<internal:prelude>", line 78, in __read_nonblock
  File "<internal:prelude>", line 78, in read_nonblock
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/protocol.rb", line 172, in rbuf_fill
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/protocol.rb", line 154, in readuntil
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/protocol.rb", line 164, in readline
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/smtp.rb", line 950, in recv_response
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/smtp.rb", line 553, in block in do_start
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/smtp.rb", line 960, in critical
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/smtp.rb", line 553, in do_start
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/net/smtp.rb", line 518, in start
  File "/app/vendor/bundle/ruby/2.4.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb", line 109, in start_smtp_session
  File "/app/vendor/bundle/ruby/2.4.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb", line 100, in deliver!
  File "/app/vendor/bundle/ruby/2.4.0/gems/mail-2.7.0/lib/mail/message.rb", line 2160, in do_delivery
  File "/app/vendor/bundle/ruby/2.4.0/gems/mail-2.7.0/lib/mail/message.rb", line 260, in block in deliver
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/base.rb", line 560, in block in deliver_mail
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/base.rb", line 558, in deliver_mail
  File "/app/vendor/bundle/ruby/2.4.0/gems/mail-2.7.0/lib/mail/message.rb", line 260, in deliver
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb", line 114, in block in deliver_now
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/rescuable.rb", line 17, in handle_exceptions
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb", line 113, in deliver_now
  File "/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.0/lib/action_mailer/delivery_job.rb", line 16, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/execution.rb", line 39, in block in perform_now
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 109, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/i18n-1.0.1/lib/i18n.rb", line 284, in with_locale
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/translation.rb", line 9, in block (2 levels) in <module:Translation>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in instance_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/logging.rb", line 26, in block (4 levels) in <module:Logging>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/logging.rb", line 25, in block (3 levels) in <module:Logging>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/logging.rb", line 46, in block in tag_logger
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb", line 71, in block in tagged
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb", line 28, in tagged
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb", line 71, in tagged
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/logging.rb", line 46, in tag_logger
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/logging.rb", line 22, in block (2 levels) in <module:Logging>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in instance_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 136, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/execution.rb", line 35, in perform_now
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/execution.rb", line 24, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 109, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/railtie.rb", line 28, in block (4 levels) in <class:Railtie>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/execution_wrapper.rb", line 87, in wrap
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/reloader.rb", line 73, in block in wrap
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/execution_wrapper.rb", line 87, in wrap
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/reloader.rb", line 72, in wrap
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/railtie.rb", line 27, in block (3 levels) in <class:Railtie>
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in instance_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 118, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb", line 136, in run_callbacks
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/execution.rb", line 22, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activejob-5.2.0/lib/active_job/queue_adapters/delayed_job_adapter.rb", line 42, in perform
  File "/app/vendor/bundle/ruby/2.4.0/gems/delayed_job-4.1.5

StandardError: An error has occurred, this and all later migrations canceled: PG::UndefinedColumn: ERROR: column "name" of relation "users" does not exist : ALTER TABLE "users" DROP COLUMN "name"

View details in Rollbar: https://rollbar.com/mit-libraries/thing/items/16/


PG::UndefinedColumn: ERROR:  column "name" of relation "users" does not exist

  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 75, in async_exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 75, in block (2 levels) in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 48, in block in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/concurrency/share_lock.rb", line 187, in yield_shares
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/dependencies/interlock.rb", line 47, in permit_concurrent_loads
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 74, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 579, in block (2 levels) in log
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 578, in block in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract_adapter.rb", line 569, in log
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 73, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/schema_statements.rb", line 603, in remove_column
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 870, in block in method_missing
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 839, in block in say_with_time
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 293, in measure
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 839, in say_with_time
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 859, in method_missing
  File "/app/db/migrate/20180227190524_remove_name_from_users.rb", line 3, in change
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 813, in exec_migration
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 797, in block (2 levels) in migrate
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/benchmark.rb", line 293, in measure
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 796, in block in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 414, in with_connection
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 795, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 976, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1291, in block in execute_migration_in_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1342, in block in ddl_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in block in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 230, in block in within_new_transaction
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/transaction.rb", line 227, in within_new_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 254, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/transactions.rb", line 212, in transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1342, in ddl_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1290, in execute_migration_in_transaction
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1262, in block in migrate_without_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1261, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1261, in migrate_without_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1209, in block in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1361, in with_advisory_lock
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1209, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1035, in up
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/migration.rb", line 1010, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/tasks/database_tasks.rb", line 172, in migrate
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/databases.rake", line 60, in block (2 levels) in <main>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 251, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/lib/rake/task.rb", line 195, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb", line 214, in mon_sync

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.