[uWSGI] upload error

Roberto De Ioris roberto at unbit.it
Tue Oct 1 18:20:16 CEST 2013


> environment:
> Freebsd + Nginx + uwsgi
>
>
> uwsgi.ini:
>
> [uwsgi]
> pythonpath = /home/web2py/
> module = wsgihandler
> socket = 127.0.0.1:9001
> chmod-socket = 666
> chown-socket = www:www
> master = true
> uid = www
> gid = www
> #enable-threads = true
> processes = 4
> socket-timeout = 180
> post-buffering = 8192
> max-requests = 1000
> buffer-size = 32768
>
>
> When I do an upload fails. In uwsgi.log show
>
> uwsgi_postbuffer_do_in_disk()/uwsgi_tmpfile(): No such file or directory
> [core/reader.c line 483]
>
> Best Regards
> Jose
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

It looks like you do not have a TMPDIR set (or set to a wrong value).

Or you have no write access to /tmp

If you want to set your temporary directory to a specific path use:

env = TMPDIR=/foobar


-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list