Writting a file gives me an Error: EACCES: permission denied

nova
PRO

a year ago

I have to create and download files dynamically, in other questions on this discord, I have seen that they give the solution for volumes because the files created in production are not persistent, but i dont want that, I download them and then delete them, I don't need them to be persistent, but it gives me this error:
[Error: EACCES: permission denied, open '/app/public/miFile.tx']
Although it is in the public folder it still gives a writing error because it does not have permission

0 Replies

nova
PRO

a year ago

28c9cac5-b533-4503-96a9-d476dd69034a


a year ago

does the public folder exist?


nova
PRO

a year ago

Yes


a year ago

nixpacks or dockerfile?


nova
PRO

a year ago

Dockerfile


a year ago

send it please


nova
PRO

a year ago


a year ago

try removing line 20


nova
PRO

a year ago

Yes, it worked, thanks a lot


a year ago

no problem!