msjit / testcasedb

TestCaseDB - Web based test case management
MIT License
40 stars 18 forks source link

Unable to save attachement #70

Closed kirantpatil closed 9 years ago

kirantpatil commented 9 years ago

Hi,

I did below steps to update the app 1) git pull 2) rake db:migrate RAILS_ENV=production 3) rake assets:precompile RAILS_ENV=production

I went to Result screen of one of the executed testcase and tried to upload a screenshot which is giving me below error.

It is expecting to install ImageMagick, is that correct ?

screenshot from 2015-02-03 22 28 24

Thanks.

joffems commented 9 years ago

ImageMagick is a system requirement for running TestCaseDB. The system uses ImageMagick to resize and alter images for previews. The imagemagick install is included in the documentation. Installing imagemagick is pretty simple on ubuntu.

sudo apt-get install imagemagick
kirantpatil commented 9 years ago

Now with imagemagick installed it uploads but does not display the image, as shown in below screenshot.

Also we should get some pop up message as upload completed and blue loading bar should not display anymore.

screenshot from 2015-02-04 21 49 55

joffems commented 9 years ago

Assuming things are working, the image should appear as soon as the upload is complete. I'm assuming that the conversion failed.

Can you please provide logs from the image upload.

Also, I will change the progress bar to disappear when the upload is complete.

kirantpatil commented 9 years ago

What logs should I provide ?

production.log or unicorn or any other ?

On Wed, Feb 4, 2015 at 9:56 PM, joffems notifications@github.com wrote:

Assuming things are working, the image should appear as soon as the upload is complete. I'm assuming that the conversion failed.

Can you please provide logs from the image upload.

Also, I will change the progress bar to disappear when the upload is complete.

Reply to this email directly or view it on GitHub https://github.com/msjit/testcasedb/issues/70#issuecomment-72886162.

joffems commented 9 years ago

If you're running the production environment, production.log would be useful.

kirantpatil commented 9 years ago

Please find the attached production.log file.

On Wed, Feb 4, 2015 at 10:22 PM, joffems notifications@github.com wrote:

If you're running the production environment, production.log would be useful.

Reply to this email directly or view it on GitHub https://github.com/msjit/testcasedb/issues/70#issuecomment-72891383.

joffems commented 9 years ago

@kirantpatil Can you please email the log to me. mjoffe AT msjit.ca

joffems commented 9 years ago

The issue is with file types. The change I made is not working for non-image files. I simply need to set an icon for other file types. I will fix in the morning

kirantpatil commented 9 years ago

I upgraded to latest master and made changes for nginx in production.rb file and restarted the app and nginx and tried to upload a image and the blue bar still does not disappear once upload is finished.

screenshot from 2015-02-07 07 58 39

joffems commented 9 years ago

@kirantpatil A fix for the progress bars has been pushed.

kirantpatil commented 9 years ago

I updated the code and recompiled assets and reloaded unicorn and nginx and issue still persists.

screenshot from 2015-02-07 20 44 30

joffems commented 9 years ago

@kirantpatil Did you force a refresh in your browser? I currently can't reproduce this with the latest code in master.

Also, can you please let me know which browser you're seeing this issue with.

Thanks, Marc

kirantpatil commented 9 years ago

I think I missed the nginx configuration file correction part. Looking in to it.

I added below code to nginx conf file, I am getting "404 Not Found" page for it.

I am getting below error.

testcasedb$ tail -f log/unicorn.stderr.log X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing X-Accel-Mapping header missing

kirantpatil commented 9 years ago

I reverted all changes of nginx conf file and with only change in production.rb file image upload, delete works fine but I have no idea why the blue bar is not disappearing.

kirantpatil commented 9 years ago

I did "sudo ldconfig /usr/local/lib" as mentioned in http://robmclarty.com/blog/how-to-install-image-magick-and-setup-paperclip and restarted unicorn and nginx and it works now...