Cannot load my file

I have my in-memory in my application data.json where I save response, so on my local machine the file load well but on deploy I keep getting this error:

“success”: false,
“error”: “ENOENT: no such file or directory, open ‘/opt/render/project/src/src/src/database/account-data.json’”


Render instances have an ephemeral filesystem, meaning any file written to the instance after it has booted will be lost when it next restarts (e.g. spun down if on free instance type, next deploy, manual restart, etc.).

If you want to keep generated files on your service, you’ll need to have a persistent store, e.g. a Render Disk (which is chargeable and also require a paid instance type) or an external service like AWS S3.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.