Project

General

Profile

Actions

Task #3810

open

Crashreport - Permission to write to a folder in filesystem

Added by Juan José González 3 months ago. Updated 18 days ago.

Status:
Feedback
Priority:
Normal
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Hi,

I would like to write files to the filesystem, to /srv/crashreport/uploads/.
And inside let the app to create a folder structure like /srv/crashreport/uploads/<YEAR>/<MONTH>/<text_files>

Thank you in advance

PS. I was able to write to /srv/crashreport/temp, try to replicate the permissions but I was not able to make it work.

Actions #1

Updated by Guilhem Moulin 3 months ago

  • Status changed from New to Closed

Done (the directory needs to be marked RW in the .service file too).

Saw that the new django complained about ALLOWED_HOSTS not being a list, so I hard-coded the hostname in settings.py. Looks like uwsgi isn't happy with the new setup, but since you're working on it I didn't look further. Feel free to bounce it back to me if I should investigate.

Actions #2

Updated by Juan José González 19 days ago

  • Status changed from Closed to Feedback

Hi Guilhem

a follow up on this, I am seeing the write error again. Could you help me to confirm if the folder is in write mode?

Actions #3

Updated by Guilhem Moulin 18 days ago

It is. What is the error message (and errno from the OS)?

Actions

Also available in: Atom PDF