R
Railwaycarlostrevino3583

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

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
Solution:
try removing line 20
No description
P
Percy18d ago
Project ID: 28c9cac5-b533-4503-96a9-d476dd69034a
C
carlostrevino358318d ago
28c9cac5-b533-4503-96a9-d476dd69034a
B
Brody18d ago
does the public folder exist?
C
carlostrevino358318d ago
Yes
B
Brody18d ago
nixpacks or dockerfile?
C
carlostrevino358318d ago
Dockerfile
B
Brody18d ago
send it please
C
carlostrevino358318d ago
Solution
B
Brody18d ago
try removing line 20
C
carlostrevino358318d ago
Yes, it worked, thanks a lot
B
Brody18d ago
no problem!
Want results from more Discord servers?
Add your server
More Posts
Observability - 24 hour time formatThe observability feature now displays the time in a 12-hour format, without indicating AM or PM. ItSlow Image PushSometimes on railway I'm noticing builds taking over 10 minutes just to build my next.js applicationPostgres crashes after configI ran the following command: `ALTER SYSTEM SET shared_preload_libraries = 'timescaledb,pg_stat_statebackup postgres R2What's the problem with this error? wrong credential? ``` Error while running backup: Error: getaddI cant deploy.Hello! i for some reason cant deploy my self hosted version of the zeppelin discord bot. Please helpHow do I create a template from the following Docker files?`Dockerfile` ```yml FROM postgres:16-alpine3.19 RUN apk -U add --no-cache \ alpine-sdk \ curl-Is it possible to use Redis?After all that has happened to Redis, is it still possible to create a Docker image and update it toIs it possible to use Redis?After all that has happened to Redis, is it still possible to create a Docker image and receive updaWatch paths to ignore on PR deployment (preview)I have watch paths set on the `preview` environment, but am still seeing instances spin up for new PPayment fails on portal but is success on Visa appWhen I try to subscribe to hobby plan, my payment fails on the railway site with "card declined" wheCannot change nixpkgsArchive hash from railway.tomlHello, seems like I can't change the nixpkgs archive version from railway.toml ``` [build] builder =can i use railway postgres db with @vercel/postgres ?I am try trying to use railway postgress db with @vercel/postgres. Is it compatible? How do I map raIssue Deploying Django App with Gunicorn on RailwayIt's been a few days of trying to get this up for some production tests but I'm having issues gettinPrisma Nickpacks with Bun errorWhen trying to build nixpacks with bun and prisma using this config: ```toml # nixpacks.toml [phasesHow to retrieve env vars from railway?I need to use them in github action and I don't want to have them as a secret in github as well as iDjango app, slow server responseI am having django app, regular django templates. Database is on google cloud. This is railway reMongoDB prismaWhen ever i try to connect my mongodb with prisma i does not work :( when i genarate the schema it gAccessing an image within a railway. app PGS databaseHi all, Absolutely love Railway.app but just wondering if anyone can assist with accessing an imagincorrect cron time trigger@Brody I'm using your template (https://railway.app/template/fwH-l3) and it seems to trigger at incoHow do I connect Webste <-> Server <-> Database❓Github code for Main website in public and server.js https://github.com/Lanonymus/todowebsite/tree/m