10 months ago
How can I delete a table or reset my database on railway?
I want to re-migrate all my data.
0 Replies
10 months ago
you want to wipe your entire database?
10 months ago
wipe the volume then
10 months ago
yep, wipe the volume, this will give you a brand new database
10 months ago
10 months ago
in preparation of you saying something like this i had edited my above message to be clearer haha
10 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
10 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?
10 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
10 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
10 months ago
not necessarily, if it was valid your app would not be attempting to connect to ::1
10 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
10 months ago
no its has nothing to do with the current error
10 months ago
awsome, what was the issue
10 months ago
you'll have that
10 months ago
makes sense, glad you got it fixed
10 months ago
no problem!