Project

General

Profile

Actions

Task #4633

closed

[Support] resolve broken collection from qr1hi-8i9sb-prudm6nvg4xk31x

Added by Tim Pierce over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Tim Pierce
Target version:

Description

The output collection from this job (see #4621) was saved in Keep but did not have a collection recorded for it.

Actions #1

Updated by Tim Pierce over 9 years ago

  • Subject changed from resolve broken collection from qr1hi-8i9sb-prudm6nvg4xk31x to [Support] resolve broken collection from qr1hi-8i9sb-prudm6nvg4xk31x
  • Description updated (diff)
  • Story points set to 1.0
Actions #2

Updated by Tim Pierce over 9 years ago

  • Parent task deleted (#4595)
Actions #3

Updated by Tim Pierce over 9 years ago

The solution for this problem turned out to be:

  • Find the signed manifest block saved in Keep
  • Generate a new unsigned manifest with sed -e 's/\+A[^ ]*//g' and save it under the appropriate MD5sum
  • Launch a production Rails console on qr1hi
  • Read the unsigned manifest file: raw_manifest_text = File.open("unsigned_manifest") { |f| f.read }
  • Load the user's API token and generate a new signed manifest with it:
    Thread.current[:user] = User.find_by_email("sguthie@curoverse.com")
    api_token = ApiClientAuthorization
                  .where(user_id: Thread.current[:user].id)
                  .order(:created_at)
                  .last
    signed_manifest = Collection.sign_manifest raw_manifest_text, api_token
    c = Collection.create(manifest_text: signed_manifest)
    
Actions #4

Updated by Tim Pierce over 9 years ago

  • Status changed from New to Resolved
  • Remaining (hours) set to 0.0
Actions #5

Updated by Tim Pierce over 9 years ago

  • Estimated time set to 0.00 h
Actions

Also available in: Atom PDF