R
Railway

✋|help

Trying to save a file

Ssdan.io9/10/2023
Trying to save a file in media/

where can i save files ?


PermissionError: [Errno 13] Permission denied:
'media/images/4b690efb-a411-478e-bb4e-ce3ce0d0964a'
ERROR:root:Manim error: Command '['manim', '-ql', '-o', '/app/media/4b690efb-a411-478e-bb4e-ce3ce0d0964a.mp4', '/app/4b690efb-a411-478e-bb4e-ce3ce0d0964a.py']' returned non-zero exit status 1.

python:
try:
output_path = f"/app/media/{screen_name}.mp4"
subprocess.run(["manim", "-ql", "-o", output_path, f"/app/{screen_name}.py"], check=True)
Bbrody1929/10/2023
are you using a volume?
Ssdan.io9/10/2023
no dont think so, i dont need to, all files are ephemeral
# Use the Manim community image as the base
FROM manimcommunity/manim:v0.10.0

# Install Flask and other dependencies
RUN pip install Flask

# Set the working directory
WORKDIR /app

# Change permissions for the working directory
RUN chmod 777 /app

# Copy your Flask app to the container
COPY . /app

# Expose the port the app runs on
EXPOSE 5000

# Command to run the application
CMD ["python", "main.py"]

heres my dockerfile i tried to 777 the app dir but cant make folders for some reason
Bbrody1929/10/2023
are those uuid looking filenames normal?
Ssdan.io9/10/2023
yeah they are fine, i guess i am running subprocess.run which might make the command not have permissions
Bbrody1929/10/2023
does a media folder even exist?
Ssdan.io9/10/2023
yes
just checked
Bbrody1929/10/2023
try USER 0 instead of that chmod thing?
Ssdan.io9/10/2023
that worked for this temp fix thanks
Bbrody1929/10/2023
awesome!

Looking for more? Join the community!

Recommended Posts
Help setup a monorepo - Angular / ExpressHi! Hope everyone is doing well :). I am trying to deploy my Angular application on railway, but it Nose.Js versionhow do i change itVolume creation prevents service from deployingHi! I'm trying to add a volume to a project, but when I attach it to the service, it stops being abldeploy bun 1.0 projectdoes anyone know if and how thats possible on railway currently?Random CPU spike and unresponsive serverWe switched from Vercel to Railway one week ago, and everything was going well until today. For somIncorrect hostname with private networkingI've set `mongo-2.railway.internal` (or mongo-2) as the endpoint name for private networking on the Do I need to configure anything in the Docker Image to support TCP proxy?For some reason I can't use the TCP proxy in the Minecraft Server template, I get "connection reset"Cron JobsHey everyone. I'm moving from Vercel to Railway so this is my first Railway project. I'm trying to iHow to connect FastAPI with Planetscale (mysqlclient error)Hey, how are you guys doing? I have a backend on Railway who is running with FastAPI (using this teHobby PlanI have a Discord bot which needs to be hosted, I had it hosted on railway before the recent pricing AttributeError: 'DatabaseWrapper' object has no attribute 'set_schema'I'm using django with mutlitenants using the package django-tenants==3.5.0 When i deployed the app tHosting errori am hosting my discord bot written in python using nextcord library and when i deploy it then it shDeploy angular applicationerror: ```2 minutes ago via GitHub Init main View Logs Removed Deployed 3 minutes ago vimongo on railwayI am trying to get mongo v7 up and running on railway. When using default options, I am getting follTCP Proxy timeoutI'm trying to start a Redis server with the official Docker image from Docker Hub with #TCP + LogginHow to move from Working Localhost w/ Django Websockets to Railway production?I had a functioning django websocket fantasy draft on my local host using daphne and redis. However,There's suddenly two new random columns in my database??I went in and checked my railway dashboard and to my surprise there's two new completely random dataRailway having issues with Mongoose NPM package???Locally my code works fine, I can connect to Mongo using Mongoose no issues but when on Railway it rNo VAT taxes on invoicesHello everyone I've just joined this server. On my invoices, I don't see any VAT tax prices includeIssue with mounting volumeHello, I have an instance of n8n running, I need to attach a volume to keep community node persisten