[CYPRESS-530] Download Results does not work Created: 03/06/15  Updated: 05/06/18  Resolved: 07/24/15

Status: Closed
Project: CYPRESS Issue Tracker
Component/s: None

Type: Bug/Issue Priority: Major
Reporter: Matthew Dugal Assignee: David Czulada
Resolution: Delivered Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by CYPRESS-569 Unable to download results Closed
Previous Issue Type: Implementation Problem

 Description   

Hi, I hope you can help us resolve this error as quickly as possible. I am receiving this error on our virtual machine as well as demo.projectcypress.org.

Clicking the Download Results button in the Cypress interface produces an error.

I have downloaded the Cypress 2.6.0 Virtual Machine image and was able to successfully install using the instructions on this page: https://github.com/projectcypress/cypress/wiki/Cypress-2.6.0-Install-Instructions

I was able to create measure tests and upload my results. I was also able to generate the QRDA1 tests and validate results as well.

But when I click the Download Results button I receive the following error: "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."

I poked around the file system a little bit and did find a log file "/home/cypress/cypress/log/production.log" that grows after receiving the error. The message in the log is:

undefined method `export_patient' for Cypress::PatientZipper:Class

ActionView::Template::Error (undefined method `sort_by' for #<ActionDispatch::Request::Session:0x7f0cf70b17f0 not yet loaded>):
67: request_dump = clean_params.empty? ? 'None' : clean_params.inspect.gsub(',', ",\n")
68:
69: def debug_hash(hash)
70: hash.sort_by

{ |k, v| k.to_s }

.map { |k, v| "#

{k}

: #

{v.inspect rescue $!.message}

" }.join("\n")
71: end unless self.class.method_defined?(:debug_hash)
72: %>
73:
app/views/errors/error_500.html.erb:70:in `debug_hash'
app/views/errors/error_500.html.erb:78:in `app_views_errors_error___html_erb_3261931565045618353_69846826905600'
app/controllers/application_controller.rb:60:in `block (2 levels) in render_500'
app/controllers/application_controller.rb:59:in `render_500'

There may be other errors but I do not know the internals of this project well enough to find them.



 Comments   
Comment by David Czulada [ 07/24/15 ]

This has been fixed in Cypress 2.6.1 and Cypress 2.7.0 released yesterday. They can be downloaded by following the links below.

https://github.com/projectcypress/cypress/wiki/Cypress-2.6.1-Install-Instructions
https://github.com/projectcypress/cypress/wiki/Cypress-2.7.0-Install-Instructions

-Dave Czulada

Comment by Matthew Brown (Inactive) [ 06/16/15 ]

David-

I had this same issue when trying to use the "Download Results" button and this patch solved the problem. Thanks!

  • Matt, Meditech
Comment by Kevin D Brown (Inactive) [ 06/11/15 ]

Where do you want me to send it?

-Kevin Brown, ICSA Labs

Comment by David Czulada [ 06/10/15 ]

Kevin-

The script updates a single file on the Cypress server. Would you be able to send us a copy of the file for us to inspect?

The file in question can be found in the following directory (you need to be logged in as the cypress user)

cypress/lib/cypress/patient_zipper.rb

-Dave

Comment by Kevin D Brown (Inactive) [ 06/09/15 ]

I copy/pasted the script into an SSH window as the ubuntu user. It said it completed successfully. I tested the Cypress server, and the download feature still gave us the same error message. I rebooted, and tested the server again. Problem persists. I attempted to run the patch again, and it gave me a message that the patch was already installed and not needed.

-Kevin Brown, ICSA Labs

Comment by David Czulada [ 06/09/15 ]

Kevin-

What steps did you go through to run the script? Did you run the script as the ubuntu user?

Did the script return any responses or error messages?

-Dave Czulada

Comment by Kevin D Brown (Inactive) [ 06/08/15 ]

I applied the patch to our instance, and the problem persists. I even rebooted to make sure all necessary services were restarted. Please advise.

  • Kevin Brown, ICSA Labs
Comment by David Czulada [ 05/07/15 ]

Matt

If you need this functionality, the command below will patch Cypress fixing the download results feature. If you paste this into the Terminal on a supported Cypress 2.6 installation, the script will install the patch and restart Apache.

\curl https://demo.projectcypress.org/patches/pzp.sh | bash

-Dave Czulada

Comment by David Czulada [ 03/10/15 ]

Matt-

We'll keep you up to date on the status of a hot fix.

-Dave

Comment by Matthew Dugal [ 03/09/15 ]

I was hoping to get a PDF of the test results. I believe I can do without for now. Thank you.

Comment by David Czulada [ 03/09/15 ]

Matt-

Thanks for bringing this to our attention. We are currently looking into how we can fix this. In the interim, is there anything in the “Download results” package that you need above and beyond what you can get from the “View Results” function coupled with the “Download Test Data” function?

-Dave Czulada

Generated at Sat Apr 20 01:11:28 EDT 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.