8 months ago
How can I delete a table or reset my database on railway?
I want to re-migrate all my data.
0 Replies
8 months ago
you want to wipe your entire database?
8 months ago
wipe the volume then
8 months ago
yep, wipe the volume, this will give you a brand new database
8 months ago
8 months ago
in preparation of you saying something like this i had edited my above message to be clearer haha
8 months ago
for the record we wouldnt have been able to do anything anyway
probably the service is not starting because I didnt set up a redis service on railway yet
8 months ago
yeah connect ECONNREFUSED ::1:6379
this deploy hasnt started its web server so its not going to answer the health check
another question, my estimated usage went from 5 cents/mo to $2/mo when I set up redis, is that correct?
8 months ago
you set the variables, but are you consuming them in code?
export const RedisOptions: CacheModuleAsyncOptions = {
isGlobal: true,
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => {
return {
store: redisStore,
host: configService.get('REDIS_HOST'),
port: Number(configService.get('REDIS_PORT')!),
password: configService.get('REDIS_PASSWORD'),
};
},
inject: [ConfigService],
};
i managed to fixed it by adding family: 0 in my redis config. it seems needs when connecting to private network
8 months ago
i dont know if that would be valid syntax, but given you are getting econnrefused ::1.6379
im going to say no, that is not valid syntax
8 months ago
not necessarily, if it was valid your app would not be attempting to connect to ::1
8 months ago
thats a fallback hostname that indicates that the redis client is using its default values to attempt a redis connection, instead of using the REDIS_HOST
8 months ago
no its has nothing to do with the current error
8 months ago
awsome, what was the issue
8 months ago
you'll have that
8 months ago
makes sense, glad you got it fixed
8 months ago
no problem!