How can i kill a process running on 8080 port?

Need to close all services which is running on 8080 port
49 Replies
Percy
Percy2y ago
Project ID: 51daab5a-0ac8-4391-b20d-16bf067e9c82
Percy
Percy2y ago
⚠️ experimental feature
Santosh Anand
Santosh AnandOP2y ago
51daab5a-0ac8-4391-b20d-16bf067e9c82
Brody
Brody2y ago
why? what errors do you get that lead you to believe that that is the solution to your problem?
Santosh Anand
Santosh AnandOP2y ago
looks like a previous service is running which is causing an error
Brody
Brody2y ago
screenshot of error please?
Santosh Anand
Santosh AnandOP2y ago
Basically i am running a cron which is making an entry to db the problem is even if i stopped my service it is making an entry into database There is no screenshot of error
Brody
Brody2y ago
gotcha what database is this cron job entering data into?
Santosh Anand
Santosh AnandOP2y ago
postgres
Brody
Brody2y ago
on railway?
Santosh Anand
Santosh AnandOP2y ago
yes
Brody
Brody2y ago
and you are absolutely positive you dont have this app running anywhere else? locally or in another project?
Santosh Anand
Santosh AnandOP2y ago
Yes! I am
Brody
Brody2y ago
or on another hosting platform
Santosh Anand
Santosh AnandOP2y ago
Database connection i have used only two places, one is for inserting record using cron job another is for reading the record both services are running on Railway only I am not using locally
Brody
Brody2y ago
and the service that reads the records, will never enter anything?
Santosh Anand
Santosh AnandOP2y ago
correct, it will not enter anything even i have changed database credentials, but after that also inserting the record today what i did is I have change env variable name which I have used to make connection with DB
Brody
Brody2y ago
show me a screenshot of your service variables for the service that enters data?
Santosh Anand
Santosh AnandOP2y ago
Brody
Brody2y ago
probably should use variable references going forward, but that wouldn’t have anything to do with this have you Reset Database Credentials in the database plugins settings?
Santosh Anand
Santosh AnandOP2y ago
yes, I have reset database credentials
Brody
Brody2y ago
and you could remove the service and data would still be entered?
Santosh Anand
Santosh AnandOP2y ago
yes because db connection i have made using env vars so it does not matter if you change crediential the env vars is the same
Brody
Brody2y ago
ohhhhhh
Santosh Anand
Santosh AnandOP2y ago
so today what I am going to do is changing env vars
Brody
Brody2y ago
that would have been handy to know you hardcoded the database url into your service
Santosh Anand
Santosh AnandOP2y ago
my guts is somewhere in railway service is running
Brody
Brody2y ago
correct?
Santosh Anand
Santosh AnandOP2y ago
No there is no hard code, i am using POSTGRES_DB_URL env variable to connect db is it possible for you to check running services using terminal
Brody
Brody2y ago
there is no railway terminal
Santosh Anand
Santosh AnandOP2y ago
oh I am changing env vars let see it will help or not one more issue is terminal is not closing after successfully deployment see its deployed but
Santosh Anand
Santosh AnandOP2y ago
Brody
Brody2y ago
now this sounds like a phantom container, but if you changed the database credentials, the phantom container would now be using the wrong credentials and ideally would be able to add data with incorrect credentials please use variable references, you should never be copy-pasting any database credentials when setting up variables on railway services
Santosh Anand
Santosh AnandOP2y ago
how we can use it
Santosh Anand
Santosh AnandOP2y ago
got it
Brody
Brody2y ago
then show me the service variables after youre done please
Santosh Anand
Santosh AnandOP2y ago
sure
Santosh Anand
Santosh AnandOP2y ago
Brody
Brody2y ago
perfect now go to the settings of the database and restart it, hopefully this will kill all active connections to the database, thus killing the connection that the suspected phantom container has open
Santosh Anand
Santosh AnandOP2y ago
ok done
Brody
Brody2y ago
how often does this cron job run?
Santosh Anand
Santosh AnandOP2y ago
after 9:30 IST it will run @ every 5 min if data found will be inserted
Brody
Brody2y ago
how long until then?
Santosh Anand
Santosh AnandOP2y ago
till 4 PM IST
Brody
Brody2y ago
I'm sorry but I'm not doing time zone conversions, how many hours until the next cron job runs?
Santosh Anand
Santosh AnandOP2y ago
within 1 hour
Brody
Brody2y ago
okay so after the cron job runs, come back to tell me the verdict
Santosh Anand
Santosh AnandOP2y ago
sure
Want results from more Discord servers?
Add your server