Wednesday, April 28, 2021

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

What makes you think this has anything to do with Django sessions?

On April 27, 2021 11:15:57 PM CDT, Andre Foote <andrefooteist@gmail.com> wrote:
FileNotFoundError at /admin/region/country/process_import/
[Errno 2] No such file or directory: '/tmp/tmpu31qxebf'
Request Method: POST
Request URL: http://myurl/admin/region/country/process_import/
Django Version: 3.0.10
Exception Type: FileNotFoundError
Exception Value:
[Errno 2] No such file or directory: '/tmp/tmpu31qxebf'
Exception Location: /usr/local/lib/python3.8/site-packages/import_export/tmp_storages.py in open, line 29
Python Executable: /usr/local/bin/python
Python Version: 3.8.3

I understand from the Django docs that when using File-based sessions, one must check that their "web server has permissions to read and write to this location" (I'm not sure how/where to enforce this, in my initial post, I tried to enforce inheritence of folder permissions but that didn't work - any pointers would be appreciated.)

However I'm using the default configuration for sessions that's supposed to be database-backed.
On Tuesday, April 27, 2021 at 9:52:03 PM UTC+2 Ryan Nowakowski wrote:


On April 26, 2021 11:31:24 PM CDT, Andre Foote <andref...@gmail.com> wrote:
>However, the application crashes with the error stating that it is
>unable
>to read the session data stored in "/tmp".

Please post the full error including any exception messages and the full Python trace back if available.

No comments:

Post a Comment