Skip to content
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

Restart reloading when execution is halted due to "createTcpServer address already in use" #3

Open
mskyttner opened this issue Jan 29, 2021 · 0 comments

Comments

@mskyttner
Copy link

mskyttner commented Jan 29, 2021

Occasionally, using drip, saving a plumber file and triggering a reload in drip will fail with plumber reporting "execution halted", with drip still running ok.

It seems to be some port clash when this happens:

server_1  | Running plumber API at http://0.0.0.0:8000
server_1  | Running swagger Docs at http://127.0.0.1:8000/__docs__/
server_1  | createTcpServer: address already in use
server_1  | Error in initialize(...) : Failed to create server
server_1  | Calls: <Anonymous> ... <Anonymous> -> startServer -> <Anonymous> -> initialize
server_1  | Execution halted
server_1  | 
server_1  | 
server_1  | Execution halted

It seems to help just to resave the file a couple of times (with no changes to the content) and it will start to work again, at least that is what I see when testing this with this file

Any advice on how to either a) automatically trap such a state so that the dripping can continue or b) write an entrypoint.R file that doesn't trigger "address already in use"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant