-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't resolve joex container, using wrong hostname reference #608
Comments
ah, and of course: removing the old instances did fix my initial problem, and restserver can of course then resolve to the current instance of joex. |
Hi @whysthatso thanks for this report. This problem occurs now with docker, since the joex hostname can change between restarts, as it defaults to the There is currently no cleanup procedure in place. I wasn't aware about this use case. Despite the fact that a cleanup procedure should be there, I think the setup using the Currently you could set The other point is also interesting: It should actually try all existing entries in this table and not stop after 5 or 6. I have to look into it. Then a startup/housekeeping task needs to run that removes obsolete entries. I'll add this for a next release. |
i've solve this now by adding a fixed hostname: foobar to the service declaration in the compose file:
|
It should be a hostname, that is actually resolvable by the other components (restserver), otherwise joex cannot be notified for new work. It polls periodically, but it's not as quick:-). |
as far as i understand docker-composer, the default network that composer sets up when starting the containers will take care of exactly that. |
weird issue in my docker compose setup:
it seems that the restserver stores joex node settings in the db, but doesn't check/clean up this table for some reason, see screenshot.
it seems that the reserver only tries so many instances (5, or maybe 6) and then errors out. in the screenshot, my current one is the last, all the others before are previous docker containers and do not exist any longer.
i'm not sure where in the code this is set, and if and where there's a cleanup procedure.
i've removed all the old instances except the current one, then restarted the docker-compose setup, and as you can see the old references stays in there for some reason.
i do manage my docker-compose setup with systemd, so maybe there is an external signal that the code depends on that does not get triggered?
i found this in the logs:
but couldn't find a similar entry for the joex instance. i guess for some reason the 'unregister' method is not executed.
i found this reference in the docs and i presume that for some reason the docker compose shutdown doesn't really initiate a graceful shutdown of the joex instance?
The text was updated successfully, but these errors were encountered: