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