My Project have a ghost service instance running and i cannot get rid of that
vincentaloka
HOBBYOP

a year ago

Project ID: 66744e7e-7515-41c6-8b79-2490eef16323

Issue: Ghost service instance running but not visible in architect view

There's a ghost service instance (ID: c16d6171-d73b-4d6f-b8a5-b75102fa92cc) of our data sync tool that's still running and appears in the logs, but it's not visible in the architect view of the project. We've attempted to remove all deployments of this tool, but this instance persists. It's interfering with our current deployment by connecting to our database and causing conflicts.

The service is a Python application running from a Docker container. The relevant part of our Dockerfile is:

RUN python -m venv /opt/venv && \
. /opt/venv/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
COPY . .
ENV VIRTUALENV=/opt/venv ENV PATH="$VIRTUALENV/bin:$PATH"
CMD ["python", "-m", "datasync"]

Please help us identify and terminate this ghost instance, ensuring it's completely removed from our project and no longer connecting to our database.

32 Replies

vincentaloka
HOBBYOP

a year ago

Never mind, i just remove the whole project and do another deploy


vincentaloka
HOBBYOP

a year ago

look like the instance is still running even i delete the whole project


vincentaloka
HOBBYOP

a year ago

now i dont know where is it now


vincentaloka
HOBBYOP

a year ago

Can anyone help me look into this isuse, this create a lot of trouble for me as i cannot run my new version of application.


a year ago

The current project is deleted, please provide some evidence that this is still running specifically on Railway


vincentaloka
HOBBYOP

a year ago

Hi Brody, before i remove the project, in the log view, there is 1 instance of data-sync alway running, and it's dont have any name, i forgot to take the screenshot of that


vincentaloka
HOBBYOP

a year ago

i thought if i delete the whole project, that service instance will got deleted as well


vincentaloka
HOBBYOP

a year ago

but when i activate the tool again inside database, it show there is still an instance running


vincentaloka
HOBBYOP

a year ago

is there anyway you can check in the background and see if there is any service runnnig


vincentaloka
HOBBYOP

a year ago

i believe the id of that service is c16d6171-d73b-4d6f-b8a5-b75102fa92cc


vincentaloka
HOBBYOP

a year ago

i forgot to take the screenshot of the log


vincentaloka
HOBBYOP

a year ago

if i give you the screenshot of current active connection to my database, can you check it by the IP?


a year ago

I'm sorry to say but I would need some kind indication from you to clearly show that it's still running, please understand because for all I know you could be running it locally or on another cloud


vincentaloka
HOBBYOP

a year ago

sure i understand


vincentaloka
HOBBYOP

a year ago

railway is the only platform i deploy the tool on cloud


vincentaloka
HOBBYOP

a year ago

and i dont have any local instance running


vincentaloka
HOBBYOP

a year ago

if i cannot delete that instance


vincentaloka
HOBBYOP

a year ago

then i will need to update all of my db path and variable to disconnect that instance from connect to my database


a year ago

unfortunately that would not allow me to justify searching for running instances


vincentaloka
HOBBYOP

a year ago

which is gonna be the last method i want to do


vincentaloka
HOBBYOP

a year ago

sure


vincentaloka
HOBBYOP

a year ago

is there anyway i can view all instance running under my account?


vincentaloka
HOBBYOP

a year ago

i try api


vincentaloka
HOBBYOP

a year ago

but cannot find it


a year ago

i would recommend going through that method, deleting your service makes the search on my side 10x harder.


vincentaloka
HOBBYOP

a year ago

yeah, i know i fk up when i realize it still runing on the background


a year ago

is all you need to do is to disconnect the running service from the database?


vincentaloka
HOBBYOP

a year ago

idealy is stop the instane, if can't then i need to disconnect it from database


vincentaloka
HOBBYOP

a year ago

worst case i will need to clone the db and update the db link to other connect service


vincentaloka
HOBBYOP

a year ago

but yeah if you can't do it on your side, i will go with that way'


a year ago

just delete the TCP proxy, add it back, and then redeploy.

that will sever any connections and prevent further connections from wherever your app is running


vincentaloka
HOBBYOP

a year ago

okay thanks Brody


Loading...