instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.64k stars 2.49k forks source link

Uploading an image in theme editor is not working properly #1228

Open galisufyan-327 opened 6 years ago

galisufyan-327 commented 6 years ago

Summary:

I tried to upload a new logo in theme editor Global Navigations. It didn't appeared after clicking on Preview your Changes

Steps to reproduce:

  1. Goto theme editor
  2. In Global Navigation upload a new Logo
  3. Click on Preview Your Changes

Expected behavior:

Image should appear as logo in side nav.

Additional notes:

This problem is occuring for all type of image uploads like water mark, fav icon etc.

PhilAlamri commented 6 years ago

I'm having the same issue. After lengthy investigation (manual setup, clustering, bitnami cloud stacks etc.) it is highly probable that it is a software bug. Hoping Canvas guys reply.

roor0 commented 6 years ago

There have been a number browser extensions and plugins that can cause this kind of issue with file uploads. Does it work for you in a different browser or when you disable extensions/plugins?

PhilAlamri commented 6 years ago

Hello roor0,

Yeah that was investigated too across all browsers with only generic Flash and Java extensions being enabled. The problem stil presists.

PhilAlamri commented 6 years ago

Image Magick is not installed per my production.log:

Exception working with image: ImageMagick/GraphicsMagick is not installed

I'm investigating this right now (it was very hard to spot in the log).

galisufyan-327, could you confirm this by searching in your production log?

PhilAlamri commented 6 years ago

If i'm running a cluster, which server needs Image Magick? appserver, database or redis?

PhilAlamri commented 6 years ago

Image Magick exception disappeared and I'm getting this error for images (logo, uploads):

object: !ruby/ActiveRecord:Attachment 73 method: :create_thumbnail_size args:

Do you have any idea what is causing this? I'm using local storage.

stale[bot] commented 4 years ago

Thanks for contributing to this issue. As it has been 2 years since the last activity, we are automatically closing the issue in 30 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or post a message on the mailing list. We'll gladly take a look again!

PhilAlamri commented 4 years ago

Sorry for the late reply but I got a reminder from GitHub on this issue.

It was solved by linking the Canvas instance to Amazon EC2. It seemed that native storage was not working properly at the time of that specific update. If you are still having problems with the current version. Please do some extra minor effort by trying out EC2 with your Canvas instance as a trial.

Greetings,