Hello all,

I've come across a strange issue on my Linux web2py environment:

   - In a DB table, I have a field image that is defined like this:
   Field("image", "upload", autodelete=True, label="Image")
   - When I try to upload an image via a SQLFORM.grid() / Add New Row / 
   Submit (or Edit Row / Submit), I run into an internal error:
   *Traceback:*
   
   Traceback (most recent call last):
     File "/home/www-data/web2py_test/gluon/main.py", line 454, in wsgibase
       request.body.close()
     File "/usr/lib/python2.7/tempfile.py", line 410, in close
       self.unlink(self.name)
   OSError: [Errno 2] No such file or directory: '/tmp/tmpK6hpxp'
   
   *Variables:*self<closed file '<fdopen>', mode 'w+b'>self.name
   '/tmp/tmpK6hpxp'self.unlink<built-in function unlink>
   - There is no file /tmp/tmpK6hpxp but I do see the file I uploaded has 
   actually been uploaded successfully to my uploads/ folder.
   - The size of the file I try to upload doesn't seem to matter - the 
   issue happens for a 1KB as well for 1MB file.
   - I'm running web2py 2.9.11 with nginx + uwsgi on Ubuntu 12.04.
   - The issue doesn't occur in Windows (obviously, 
   because _TemporaryFileWrapper().doesn't try to unlink the file for os.name 
   == 'nt').

I couldn't really find any related topics and cannot really make sense of 
the error message. Maybe something in the uwsgi/nginx config?

Any ideas where to look would be greatly appreciated.

Thanks,
Tobias

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to