How can i kill a process running on 8080 port?

Need to close all services which is running on 8080 port
49 Replies
Percy
Percy16mo ago
Project ID: 51daab5a-0ac8-4391-b20d-16bf067e9c82
Percy
Percy16mo ago
⚠️ experimental feature
santoshanand
santoshanand16mo ago
51daab5a-0ac8-4391-b20d-16bf067e9c82
Brody
Brody16mo ago
why? what errors do you get that lead you to believe that that is the solution to your problem?
santoshanand
santoshanand16mo ago
looks like a previous service is running which is causing an error
Brody
Brody16mo ago
screenshot of error please?
santoshanand
santoshanand16mo 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
Brody16mo ago
gotcha what database is this cron job entering data into?
santoshanand
santoshanand16mo ago
postgres
Brody
Brody16mo ago
on railway?
santoshanand
santoshanand16mo ago
yes
Brody
Brody16mo ago
and you are absolutely positive you dont have this app running anywhere else? locally or in another project?
santoshanand
santoshanand16mo ago
Yes! I am
Brody
Brody16mo ago
or on another hosting platform
santoshanand
santoshanand16mo 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
Brody16mo ago
and the service that reads the records, will never enter anything?
santoshanand
santoshanand16mo 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
Brody16mo ago
show me a screenshot of your service variables for the service that enters data?
santoshanand
santoshanand16mo ago
Brody
Brody16mo 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?
santoshanand
santoshanand16mo ago
yes, I have reset database credentials
Brody
Brody16mo ago
and you could remove the service and data would still be entered?
santoshanand
santoshanand16mo 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
Brody16mo ago
ohhhhhh
santoshanand
santoshanand16mo ago
so today what I am going to do is changing env vars
Brody
Brody16mo ago
that would have been handy to know you hardcoded the database url into your service
santoshanand
santoshanand16mo ago
my guts is somewhere in railway service is running
Brody
Brody16mo ago
correct?
santoshanand
santoshanand16mo 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
Brody16mo ago
there is no railway terminal
santoshanand
santoshanand16mo 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
santoshanand
santoshanand16mo ago
Brody
Brody16mo 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
santoshanand
santoshanand16mo ago
how we can use it
santoshanand
santoshanand16mo ago
got it
Brody
Brody16mo ago
then show me the service variables after youre done please
santoshanand
santoshanand16mo ago
sure
santoshanand
santoshanand16mo ago
Brody
Brody16mo 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
santoshanand
santoshanand16mo ago
ok done
Brody
Brody16mo ago
how often does this cron job run?
santoshanand
santoshanand16mo ago
after 9:30 IST it will run @ every 5 min if data found will be inserted
Brody
Brody16mo ago
how long until then?
santoshanand
santoshanand16mo ago
till 4 PM IST
Brody
Brody16mo ago
I'm sorry but I'm not doing time zone conversions, how many hours until the next cron job runs?
santoshanand
santoshanand16mo ago
within 1 hour
Brody
Brody16mo ago
okay so after the cron job runs, come back to tell me the verdict
santoshanand
santoshanand16mo ago
sure