Skip to content

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

Description

@mskyttner

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"?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions