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.
14 Replies
Percy
Percy9mo ago
Project ID: 9be34f5b-fa35-49c1-83c5-f0fbd245db9b
Brody
Brody9mo ago
you are running a deprecated template, please update to using an image for directus
Blinkers
BlinkersOP9mo 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 ?
Brody
Brody9mo 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
Blinkers
BlinkersOP9mo 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?
Brody
Brody9mo ago
where did you previously upload your images? S3?
Blinkers
BlinkersOP9mo ago
No, locally
Brody
Brody9mo ago
what does anything local have to do with directus on railway?
Blinkers
BlinkersOP9mo 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?
Brody
Brody9mo ago
okay thats what you meant, did your old directus deploy have a volume?
Medim
Medim9mo ago
(probably not, when that repo was used Railway didn't had volumes yet, so it was ephemeral)
Brody
Brody9mo ago
oh, then their uploads would be gone if they where using local
Blinkers
BlinkersOP9mo 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...
Brody
Brody9mo ago
so your old directus deploy did have a volume?
Want results from more Discord servers?
Add your server