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:
I also attempted a rollback, but it didn't work either:(node:116) [DEP0040] DeprecationWarning: The
punycodemodule 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)
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
Project ID:
9be34f5b-fa35-49c1-83c5-f0fbd245db9b
you are running a deprecated template, please update to using an image for directus
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 ?
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
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?
where did you previously upload your images? S3?
No, locally
what does anything local have to do with directus on railway?
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?
okay thats what you meant, did your old directus deploy have a volume?
(probably not, when that repo was used Railway didn't had volumes yet, so it was ephemeral)
oh, then their uploads would be gone if they where using local
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...
so your old directus deploy did have a volume?