Directus: impossible to update or to run the old version

blinkersHOBBY

a year ago

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: Thepunycodemodule is deprecated. Please use a userland alternative instead. > > (Usenode --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](file:///app/node_modules/@directus/api/dist/utils/validate-storage.js:17:108) > > at [Array.map](Array.map) () > > at validateStorage ([file:///app/node_modules/@directus/api/dist/utils/validate-storage.js:17:66](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](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](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](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!!

0 Replies

a year ago

you are running a deprecated template, please update to using an image for directus


blinkersHOBBY

a year 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 ?


a year 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


blinkersHOBBY

a year 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?


a year ago

where did you previously upload your images? S3?


blinkersHOBBY

a year ago

No, locally


a year ago

what does anything local have to do with directus on railway?


blinkersHOBBY

a year 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?


a year ago

okay thats what you meant, did your old directus deploy have a volume?


a year ago

(probably not, when that repo was used Railway didn't had volumes yet, so it was ephemeral)


a year ago

oh, then their uploads would be gone if they where using local


blinkersHOBBY

a year 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…


a year ago

so your old directus deploy did have a volume?


Directus: impossible to update or to run the old version - Railway Help Station