Unable to see exposed variables from other services.
I have a few servies that connect to my PostgreSQL instance. They used the exposed variables from the container. I cannot see any variables from any service now. I haven't touched anything for a while - not sure whats going on
57 Replies
Project ID:
N/A
project id, and can you show some screenshots to explain what you mean
yes one sec
also where od i find projectid
in the url of the project
/project/<project id>
d26ca2a7-2446-4472-b93c-34bfbf266f48
can you send a screenshot of your project (the same one the id links to)
what do you mean "screenshot of your project"
like the visual tiles in the project view?
yes, full uncropped screenshot of the viewport
can i dm?
if theres anything sensitive just block it out with red
kk
is this the 24 hour pottery service? (your highly cropped screenshots make it hard for me to get an overview of whats going on)
yes
none of my servies can see any shared variables from any other service
its like they were all delete or something
so here is me trying to look for variables that the deprecated plugins should provide, they arent there
so i need to migrate to v2 to see them?
and heres me looking for variables when im using only v2 databases
so yes migrate to v2 databases
i see
assuming data will be kept?
of course
thanks for the quick help - ill let you know if it works after migration (assuming it will)
and even so, your old database is not deleted, its left to you to delete after you confirm the new database has everything needed
and the variables used in other services will point to the new database/redis?
if you are already using variable references, yes it should switch those over
slick
it is indeed very slick
ok looks like it works, but it doesn't seem to have the cool icon next to it anymore 😦
also there is no indication that its a referenced var, or a static one
i know, bummer
no icons 😦
though clicking edit on a variable shows the reference syntax, or looking into the raw editor
ah, good to know
thanks again Brody!
your database was migrated already?
yep
pre-release database is very small
and all is good now?
yup 🙂
awsome!
now for extra points, use the private url
what do you mean?
you will save on
service <--> database
egress fees, give this a read https://docs.railway.app/guides/postgresql#connectinstead of
DATABASE_URL=${{Postgres.DATABASE_URL}}
do DATABASE_URL=${{Postgres.DATABASE_PRIVATE_URL}}
same kinda thing for redis toook so the link explains how to do it differently, but is there a basic pro/con list?
is it just safer/faster/cheaper kinda deal?
basically yeah
i see
in this message i say "save" but to clarify, there is zero egress fees when communicating over the private network
i see
Seems to work for postrges but getting an error with my redis connection
are you using ioredis by chance?
i don't believe so
what ya using
also, send the error you got so im not left guessing 🤣
just plain ol redis i believe
ok
but what npm package are you using
Published 2 years ago 😬
either way, it does depend on ioredis
let me see if i can get something working, ill get back to you
celery-node does not provide a way to pass options to ioredis as far as i can tell, either use bullmq and pass in
family: 0
so you can use the private network, or stick with celery-node and use the public network with redisgets the job done 😛
thanks for giving it a shot though - i think this is good enough for now
no problem!