Refile gem ImageMagick error - ruby-on-rails-4

Using Refile gem to upload messages in my app to s3. My server is Ubuntu 16 and I am using Capistano and Nginx for deployment and server. Not sure why this error is coming up in production, but I am having trouble retrieving images in production from s3. It works fine in Dev, but in production, the images upload fine and I can see them in my s3 bucket, but they do not display when I try to retrieve them. The error message I get in the log files is:
Refile::App: Error -> ImageMagick/GraphicsMagick is not installed
I have installed imagemagick and graphicsmagick on my server but no change. Is anyone else having this issue and what could be missing?

This must solve your problem
sudo apt-get install imagemagick
if still problem exists this may work Click to go to documentation

Related

Files are not found in server, but they are uploaded

I am trying to install opencart TVS on VPS server which is running Centos 7. I have used some tutorials, done everything like they said. Opencart files are uploaded into server but however install/index.php file is not found.
So I tried to upload an image to server and see if it shows or not. Nope, it does not show.
I have installed Centos Panel. Created account over there. Created database there also. The problem that I cannot see uploaded files and I think that install/index.php is not shown due to the same problem.
Apache: Apache version: Apache/2.4.39
MySQL version: 10.1.38-MariaDB
Server IP: http://141.136.44.45
File is listed in Home/USERNAME/public_html/
So as understand the file should be reached like: http://141.136.44.45/1.png (it is uploaded in Home/USERNAME/public_html/1.png

How to Download and install Coldfusion in Local Linux?

Am newbie to Coldfusion,Am tried to download and install coldfusion in my local using below link,
Download link
Once am filled form Got error like below image.
How to download and install coldfusion in linux?Is it possible to download and install in localhost?
#geetha-janarthanan , Error 403 might be coming from the broswer. Please try an alternate browser. I just tried the download link in IE/Chrome (latest version) and its downloading correctly.

Installation vs Gem - Paperclip and ImageMagick

I am trying to install Paperclip on my Rails Project but it seems I need ImageMagick installed too too.
I thought first ImageMagick was a gem to install but it is actually a piece of software.
My question is :
Why not a gem ?
And as it is a piece of software, will I get into trouble finding an hosting service that has ImageMagick installed too on their servers?
ImageMagick is a command line utility for modifying images. Paperclip uses it for resizing/thumbnailing image uploads. If your hosting service gives you SSH access, you should be able to install it on your server(s).
Propably NO.
I use Digitalocean for my projects and you can install imagemagick simple via their ssh. I suppose this happens to any vps service.

Images are not uploading on production environment by using Ckeditor + rails

I am using the Ckeditor for adding the content. For this I have used Ckeditor gem, but when I am uploading the Images on server with production environment its not uploading, it throwing 404 exception.
But when I am uploading the images on development environment , it gets uploaded and I am using Rails 4.1.6.
I am not understanding why the images are not uploaded on server with production environment, I have also checked the uploads folder permission and its correct.
Any one has faced same issue previously or any one know the solution ?
I think you should be use gem "paperclip", "~> 4.2". May be it works fine.

Deploying django project on AWS elastic beanstalk

I am following the tutorial for deploying a django project on AWS elastic beanstalk here:
http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html
My app works when I test locally but when I deploy, I'm getting a 404 error. Looking at the event logs, I see this message:
Error running user's commands : An error occurred running '. /opt/python/ondeck/env && PYTHONPATH=/opt/python/ondeck/app: django-admin.py syncdb --noinput' (rc: 127) /bin/sh: django-admin.py: command not found
That leads me to believe that the tutorial is missing a part about installing django files on the server or at least configuring my project to recognize django-admin.py. I have django installed on my local machine so it works there.
I know python support is brand new for elastic beanstalk but has anyone deployed django to it?
I believe you don't need to put container_commands in .config because there is no database or table at this moment.
Did you made the step?: Freeze the requirements.txt file.
(djangodev)# pip freeze > requirements.txt
Note
Make sure your requirements.txt file contains the following:
Django==1.4.1
MySQL-python==1.2.3
I had the same problem because I skipped it. Once I did it, add, commit and push. It works!
I followed the same tutorial recently and had a similar result.
At step 6, upon seeing the default django 'congrats' page render locally, I deployed to EB as instructed and got a 404 instead of the default 'congrats' page.
I decided to use the code up to that point as a foundation for following the 'getting started with django tutorial' which led me to a successful rendering of a 'home' view. This is a much more useful place to be anyway. I do agree that there is something wrong with the AWS tutorial and posted to the AWS forums here.
If you can, you should try to access the log file; it might give you a better idea of what's going on. Here's a link that might help:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html