R
RailwayBlinkers

Directus: impossible to update or to run the old version

Project ID : 9be34f5b-fa35-49c1-83c5-f0fbd245db9b Template : https://github.com/kadumedim/directus-starter My repo : https://github.com/Blinkers/directus-morerod Before everything was working fine, I tried to update Postgres and Directus directly from Railway, and now I'm encountering an error with Directus during startup:
(node:116) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) TypeError: Cannot read properties of undefined (reading 'toUpperCase') at file:///app/node_modules/@directus/api/dist/utils/validate-storage.js:17:108 at Array.map (<anonymous>) at validateStorage (file:///app/node_modules/@directus/api/dist/utils/validate-storage.js:17:66) at createApp (file:///app/node_modules/@directus/api/dist/app.js:71:11) at async createServer (file:///app/node_modules/@directus/api/dist/server.js:18:38) at async Command.startServer (file:///app/node_modules/@directus/api/dist/server.js:113:20) at async Command.parseAsync (/app/node_modules/commander/lib/command.js:936:5)
I also attempted a rollback, but it didn't work either:
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm i" did not complete successfully: exit code: 1
Error: Docker build failed`
How can I restart without losing my data? Thanks!!
GitHub
GitHub - kadumedim/directus-starter
Contribute to kadumedim/directus-starter development by creating an account on GitHub.
GitHub
GitHub - Blinkers/directus-morerod
Contribute to Blinkers/directus-morerod development by creating an account on GitHub.
P
Percy45d ago
Project ID: 9be34f5b-fa35-49c1-83c5-f0fbd245db9b
B
Brody45d ago
you are running a deprecated template, please update to using an image for directus
B
Blinkers45d ago
Thanks, how I can do that ? I need to change the "Source Repo" or the "Upstream Repo" in the Settings ? Where I can find a good image for directus ?
B
Brody45d ago
an image is not the same as a repo, you would want to remove both source and upstream repos and replace them with an image, the image you would want to use would be directus/directus:latest
B
Blinkers45d ago
I've recreated a new Directus/Postgres instance, and it's operational. While migrating the database data for the Postgres instance is straightforward, transferring files (such as uploaded files) and other configurations files for the Directus instance poses a challenge. How can I accomplish this migration?
B
Brody45d ago
where did you previously upload your images? S3?
B
Blinkers45d ago
No, locally
B
Brody45d ago
what does anything local have to do with directus on railway?
B
Blinkers45d ago
I'm not sure why I used local storage; I thought it was fine since I have 5GB included. Would it be better to use S3, I suppose?
B
Brody45d ago
okay thats what you meant, did your old directus deploy have a volume?
M
Medim45d ago
(probably not, when that repo was used Railway didn't had volumes yet, so it was ephemeral)
B
Brody45d ago
oh, then their uploads would be gone if they where using local
B
Blinkers45d ago
Yes, I have a 5GB volume where I stored the uploaded images in Directus, but since we can't access the volume via FTP on Railway...
B
Brody45d ago
so your old directus deploy did have a volume?
Want results from more Discord servers?
Add your server
More Posts
CSV files in storage/app/data/csv not accessible?Hello, I've setup a laravel api on railway. I have a seeder that tries to load csv files from the I have not touched my project in several weeks but at midnight railway reverted to a very old versioI'm very confused it looks like my project was deployed last night, although I have not touched it iI can't add DNS from GoDaddy to RailwayThey recommend me to change the server name...Unable to connect database after payentHello, i just pay for the month, now i'm unable to connect to the database. please help1,2GB RAM usage in React APPDo you know if it's normal this size of ram in a frontend created with react and typescript?Shopify proxy and HTTP/1.0Hello, I need help from members using Railway to host a Shopify app. I ran into this problem where Is it possible to change the default config of a Mysql Container?By default the container uses up a minimum of 500mb of ram, I found a stack overflow post on how to Cannot link, login nor logout with cli>railway logout 🚨 Response not successful status=404 >railway login 🚨 Response not successful staLost 2FA code for my accountI have lost my 2FA authenticator codes and I would like to reset my accountHow does it work the HD allocationI need 360gb to use how much does it cost?how to restore postgres db from dumb?i was given my db archives because my db was deleted due to migration. I am trying to restore the dbActivate SSL on my custom domainHello, I bought the domain apocolinks.com at DreamHost.com, this domain already has an active SSL ceBest way to secure postgres?What would be the best way to secure my postgres instance from outside connections? I would just turdeployments "Crashed"Hello, good afternoon, my problem is: deployments "Crashed" and the information in deploy logs MessaHow to use railway with monorepo?I created a new project and essentially my server code is not at the top level, and instead is one dHow can i set a limit?How can i set a limit per month?How can i pause my deployed MySQL Database before my trial plan ends?My project is named "amakusersdb".Cache mount ID is not prefixed with cache keyI'm getting the error above with this Dockerfile: ```dockerfile ARG NODE_VERSION=20.11.1 # Alpine Made a Paid account with Email and linking it with GitHub makes a separate trial accountHello Guys! I bought Railway Hobby plan three days ago and I'm trying to build my apps on Railway. Bredis-LaravelMy redis service is 098aa7a0-0133-4b8c-97a8-bf792e166423 My laravel service is 388e216e-5872-4cc4-8b