#1581 assigned defect

Trac file uploads/attachments failing — at Initial Version

Reported by: warner Owned by: zooko
Priority: normal Milestone: soon
Component: dev-infrastructure Version: n/a
Keywords: trac attachment nginx uwsgi Cc:
Launchpad Bug:

Description

Since the migration (and switching from Apache/mod_python to nginx/uwsgi), uploads of moderate-sized files are failing in weird ways. Small patches sometimes work, but larger patches fail in weird ways:

  • sirvaliance tried to upload a 600kB .png to #1185 and observed reported success, but the image was not present on the subsequent attachment list
  • warner tried to upload 900kB-1.1MB .jpg files to wiki:Summit2Day1 . Sometimes it failed with a UnicodeDecodeError, sometimes with an nginx 413 Request Entity Too Large.

Somebody needs to study the way that nginx invokes uwsgi with large request bodies. If it writes them to a file before handing them to uwsgi (seems unlikely), then it's conceivable that a file-permission/ownership problem is involved.

I'm going to assign this one to Zooko, since he configured nginx/uwsgi on this box, and thus far is the only one who even begins to understand them.

For now, I'm manually scp'ing files to tahoe-lafs.org and using 'trac-admin' to attach them to tickets.

Change History (0)

Note: See TracTickets for help on using tickets.