Dekker1
Dekker1

Reputation: 5786

Wagtail Admin Images Crash

Since I updated my production setup to Wagtail 1.11 I cannot load the admin page for images. Visiting /admin/images/ results in a 502 error. In my development setup I don't have the same problem

This is the result of a crash of the runner. The memory and CPU usage of the runners gets too high for the server to handle at which point they are killed. (Seen in top and restarts are shown in the logs)

This seems to be the same as https://github.com/wagtail/wagtail/issues/3575, but Wand is not used and no GIF images are uploaded to the system so this is not the cause. The following seemingly relevant python packages are used:

Django==1.11.3
gunicorn==19.7.1
Pillow==4.2.1
wagtail==1.11.1
Willow==0.4

The project is running on a fully updated Ubuntu 16.04 machine.

Does anyone have a suggestion of what can fix this bug?

Upvotes: 5

Views: 1112

Answers (1)

jsnid00
jsnid00

Reputation: 686

Try removing some of the more recent or larger images and reloading the page. The problem could be the result of a corrupt or malicious image.

The easiest way to diagnose if this is the problem is to:

  1. Move all images from the media/original_images folder to a backup folder.
  2. Access the /admin/images page. If this was the problem the page should now load again.
  3. Note all images that now do not have a thumbnail; these are the pictures crashing the application.
  4. Move all picture except for the ones noted back into the media/original_images folder.

Except for the picture crashing your system, everything should now work similar to what it did before.

Upvotes: 4

Related Questions