Client won't check in with API #280
-
Hi, really cool project by the way. I've been struggling to get it all working and I'm not sure why (not the most experienced Linux or Docker user). The client works fine alone, browsing websites on Firefox etc. I have a Rocky 9 Linux VM running the Ghosts - API with docker installed and running the three containers. I then have a separate win10 VM with the Ghosts - Client installed and running. The application.json file should be configured correctly, but the client never checks into the API. The localhost:5000/api/home site never updates from 0 machines. Depends if the url should be the IP of the host VM itself or the IP of the API-container (I've tried both). From the win10 client I can ping the other VM (Linux host), the bridge IP (172.17.0.1) and docker0 (172.18.0.1). But can't ping any of the containers i.e. the API container 172.18.0.3. There's no id.json file in the /instance folder but there are entries in the app, clientupdates and clientupdates_not_posted logs. The main error repeating is "Skipping check for ID from server..." |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi, thanks for checking out the project.
LMK and we'll get you squared away. |
Beta Was this translation helpful? Give feedback.
-
There is no way to do this currently from the API, but you could do it manually via: On the client:
On the server: docker exec -it ghosts-postgres /bin/bash
psql -U ghosts
delete * from machines where id = 'the guid of the machine you want to delete' CASCADE; |
Beta Was this translation helpful? Give feedback.
Hi — try 'guid' instead of "guid", postgres does not like double quotes. As an example: