{"action":"created","issue":{"url":"https://api.github.com/repos/pulibrary/pul-store/issues/406","labels_url":"https://api.github.com/repos/pulibrary/pul-store/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/pulibrary/pul-store/issues/406/comments","events_url":"https://api.github.com/repos/pulibrary/pul-store/issues/406/events","html_url":"https://github.com/pulibrary/pul-store/issues/406","id":66012403,"number":406,"title":"Box 11 Image Processing Failure","user":{"login":"kevinreiss","id":278825,"avatar_url":"https://avatars.githubusercontent.com/u/278825?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinreiss","html_url":"https://github.com/kevinreiss","followers_url":"https://api.github.com/users/kevinreiss/followers","following_url":"https://api.github.com/users/kevinreiss/following{/other_user}","gists_url":"https://api.github.com/users/kevinreiss/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinreiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinreiss/subscriptions","organizations_url":"https://api.github.com/users/kevinreiss/orgs","repos_url":"https://api.github.com/users/kevinreiss/repos","events_url":"https://api.github.com/users/kevinreiss/events{/privacy}","received_events_url":"https://api.github.com/users/kevinreiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T21:12:00Z","updated_at":"2015-04-03T11:32:16Z","closed_at":null,"body":"These all went through with the exception of the following resque job:\r\n\r\n```\r\n--- '{\"folder_id\":\"puls:0g2g3\",\"folder_barcode\":\"32101089765828\",\"tiff_path\":\"/home/pul-store/to_ingest/PrincetonUniv4218-11/32101081556811/32101089765828/0009.tif\",\"ocr_path\":\"/home/pul-store/to_ingest/PrincetonUniv4218-11/32101081556811/32101089765828/0009.xml\",\"sort_order\":9,\"_encapsulated_class\":\"PulStore::Lae::ImageLoaderJob\"}'\r\nException\r\nNoMethodError\r\nError\r\nundefined method `pid' for true:TrueClass\r\n/opt/pul-store/releases/20150402191641/lib/pul_store/lae/image_loader_job.rb:78:in `rescue in make_jp2'\r\n/opt/pul-store/releases/20150402191641/lib/pul_store/lae/image_loader_job.rb:74:in `make_jp2'\r\n/opt/pul-store/releases/20150402191641/lib/pul_store/lae/image_loader_job.rb:33:in `run'\r\n/opt/pul-store/shared/bundle/ruby/2.1.0/gems/order_up-0.0.1/lib/order_up/resque.rb:23:in `perform'\r\n```\r\n\r\nFrom the ingest log\r\n```\r\n# Logfile created on 2015-04-02 15:27:44 -0400 by logger.rb/1.2.8\r\nE, [2015-04-02T15:33:39.229814 #7868] ERROR -- : Something went wrong building a page\r\nE, [2015-04-02T15:33:39.230016 #7868] ERROR -- : tiff_path: /home/pul-store/to_ingest/PrincetonUniv4218-11/32101081556811/32101089765828/0009.tif\r\nE, [2015-04-02T15:33:39.230093 #7868] ERROR -- : ocr_path: /home/pul-store/to_ingest/PrincetonUniv4218-11/32101081556811/32101089765828/0009.xml\r\nE, [2015-04-02T15:33:39.230305 #7868] ERROR -- : sort_order: 9\r\nE, [2015-04-02T15:33:39.230457 #7868] ERROR -- : 409 Conflict\r\n```"},"comment":{"url":"https://api.github.com/repos/pulibrary/pul-store/issues/comments/89260961","html_url":"https://github.com/pulibrary/pul-store/issues/406#issuecomment-89260961","issue_url":"https://api.github.com/repos/pulibrary/pul-store/issues/406","id":89260961,"user":{"login":"jpstroop","id":999701,"avatar_url":"https://avatars.githubusercontent.com/u/999701?v=3","gravatar_id":"","url":"https://api.github.com/users/jpstroop","html_url":"https://github.com/jpstroop","followers_url":"https://api.github.com/users/jpstroop/followers","following_url":"https://api.github.com/users/jpstroop/following{/other_user}","gists_url":"https://api.github.com/users/jpstroop/gists{/gist_id}","starred_url":"https://api.github.com/users/jpstroop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpstroop/subscriptions","organizations_url":"https://api.github.com/users/jpstroop/orgs","repos_url":"https://api.github.com/users/jpstroop/repos","events_url":"https://api.github.com/users/jpstroop/events{/privacy}","received_events_url":"https://api.github.com/users/jpstroop/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T11:32:15Z","updated_at":"2015-04-03T11:32:15Z","body":"I can't get VPN to work here so I'm somewhat blind, but this looks like error that comes up once or twice per batch when, for whatever reason, the JP2 fails to copy to the image server. To confirm, check the admin UI page for the Folder (puls:0g2g3) and see if the page exists (there will be a space for image 9, but no thumbnail because the JP2 is missing). If that's the case, then do:\r\n\r\n```ruby\r\n# This first line should be right...double check. The idea is to get the Page\r\npage = PulStore::Lae::Folder.find('puls:0g2g3').pages.to_a.select { |p| p.sort_order == 9 }.first\r\n# Make the JP2\r\npage.create_derivatives\r\npage.save\r\n# Copy the JP2 to the image server\r\nPulStore::ImageServerUtils.stream_content_to_image_server(page.deliverable_image, page.pid)\r\n```\r\n\r\n"}}