R
Railway•11mo ago
Dylpickle

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
Percy
Percy•11mo ago
Project ID: N/A
Brody
Brody•11mo ago
project id, and can you show some screenshots to explain what you mean
Dylpickle
Dylpickle•11mo ago
yes one sec also where od i find projectid
Brody
Brody•11mo ago
in the url of the project /project/<project id>
Dylpickle
Dylpickle•11mo ago
d26ca2a7-2446-4472-b93c-34bfbf266f48
Dylpickle
Dylpickle•11mo ago
No description
No description
No description
Brody
Brody•11mo ago
can you send a screenshot of your project (the same one the id links to)
Dylpickle
Dylpickle•11mo ago
what do you mean "screenshot of your project" like the visual tiles in the project view?
Brody
Brody•11mo ago
yes, full uncropped screenshot of the viewport
Dylpickle
Dylpickle•11mo ago
can i dm?
Brody
Brody•11mo ago
if theres anything sensitive just block it out with red
Dylpickle
Dylpickle•11mo ago
kk
Dylpickle
Dylpickle•11mo ago
No description
Brody
Brody•11mo ago
is this the 24 hour pottery service? (your highly cropped screenshots make it hard for me to get an overview of whats going on)
Brody
Brody•11mo ago
No description
Dylpickle
Dylpickle•11mo ago
yes none of my servies can see any shared variables from any other service its like they were all delete or something
Brody
Brody•11mo ago
so here is me trying to look for variables that the deprecated plugins should provide, they arent there
No description
Dylpickle
Dylpickle•11mo ago
so i need to migrate to v2 to see them?
Brody
Brody•11mo ago
and heres me looking for variables when im using only v2 databases
No description
Brody
Brody•11mo ago
so yes migrate to v2 databases
Dylpickle
Dylpickle•11mo ago
i see assuming data will be kept?
Brody
Brody•11mo ago
of course
Dylpickle
Dylpickle•11mo ago
thanks for the quick help - ill let you know if it works after migration (assuming it will)
Brody
Brody•11mo ago
and even so, your old database is not deleted, its left to you to delete after you confirm the new database has everything needed
Dylpickle
Dylpickle•11mo ago
and the variables used in other services will point to the new database/redis?
Brody
Brody•11mo ago
if you are already using variable references, yes it should switch those over
Dylpickle
Dylpickle•11mo ago
slick
Brody
Brody•11mo ago
it is indeed very slick
Dylpickle
Dylpickle•11mo ago
ok looks like it works, but it doesn't seem to have the cool icon next to it anymore 😦
No description
Dylpickle
Dylpickle•11mo ago
also there is no indication that its a referenced var, or a static one
Brody
Brody•11mo ago
i know, bummer no icons 😦
Brody
Brody•11mo ago
No description
Brody
Brody•11mo ago
though clicking edit on a variable shows the reference syntax, or looking into the raw editor
Dylpickle
Dylpickle•11mo ago
ah, good to know thanks again Brody!
Brody
Brody•11mo ago
your database was migrated already?
Dylpickle
Dylpickle•11mo ago
yep pre-release database is very small
Brody
Brody•11mo ago
and all is good now?
Dylpickle
Dylpickle•11mo ago
yup 🙂
Brody
Brody•11mo ago
awsome! now for extra points, use the private url
Dylpickle
Dylpickle•11mo ago
what do you mean?
Brody
Brody•11mo ago
you will save on service <--> database egress fees, give this a read https://docs.railway.app/guides/postgresql#connect
Brody
Brody•11mo ago
instead of DATABASE_URL=${{Postgres.DATABASE_URL}} do DATABASE_URL=${{Postgres.DATABASE_PRIVATE_URL}} same kinda thing for redis too
Dylpickle
Dylpickle•11mo ago
ok 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?
Brody
Brody•11mo ago
basically yeah
Dylpickle
Dylpickle•11mo ago
i see
Brody
Brody•11mo ago
in this message i say "save" but to clarify, there is zero egress fees when communicating over the private network
Dylpickle
Dylpickle•11mo ago
i see Seems to work for postrges but getting an error with my redis connection
Brody
Brody•11mo ago
are you using ioredis by chance?
Dylpickle
Dylpickle•11mo ago
i don't believe so
Brody
Brody•11mo ago
what ya using also, send the error you got so im not left guessing 🤣
Dylpickle
Dylpickle•11mo ago
just plain ol redis i believe ok
node:internal/process/promises:288

triggerUncaughtException(err, true /* fromPromise */);

^

Error: getaddrinfo ENOTFOUND redis.railway.internal

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {

errno: -3007,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'redis.railway.internal'

}

Node.js v18.19.0

error Command failed with exit code 1.
node:internal/process/promises:288

triggerUncaughtException(err, true /* fromPromise */);

^

Error: getaddrinfo ENOTFOUND redis.railway.internal

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {

errno: -3007,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'redis.railway.internal'

}

Node.js v18.19.0

error Command failed with exit code 1.
Brody
Brody•11mo ago
but what npm package are you using
Dylpickle
Dylpickle•11mo ago
"celery-node": "^0.5.9",
"celery-node": "^0.5.9",
Brody
Brody•11mo ago
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 redis
Dylpickle
Dylpickle•11mo ago
gets the job done 😛 thanks for giving it a shot though - i think this is good enough for now
Brody
Brody•11mo ago
no problem!
Want results from more Discord servers?
Add your server