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

Tests: Flakyness BindException: Address already in use / SystemError: Failed to start Crate instance in time #630

Open
amotl opened this issue May 18, 2022 · 6 comments

Comments

@amotl
Copy link
Member

amotl commented May 18, 2022

The root cause for SystemError: Failed to start Crate instance in time. (see #629) is that a previous instance of CrateDB might not have been terminated correctly.

In that case, a subsequent attempt to start it will croak like [1,2]

Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use

[1] https://github.com/crate/crate-python/runs/6210165871#step:6:192
[2] https://github.com/crate/crate-python/runs/6540915990#step:5:233

_Originally posted by @amotl in #629

References

@amotl
Copy link
Member Author

amotl commented Sep 29, 2022

I have not been able to observe this error recently, so I am closing this.

@amotl amotl closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2022
@amotl
Copy link
Member Author

amotl commented Oct 3, 2022

@amotl amotl reopened this Oct 3, 2022
@amotl amotl changed the title Tests: Flakyness "SystemError: Failed to start Crate instance in time" Tests: Flakyness in doctests/layer.txt Oct 10, 2022
@amotl
Copy link
Member Author

amotl commented Oct 10, 2022

Another different one from doctests/layer.txt.

File "/Users/runner/work/crate-python/crate-python/src/crate/testing/doctests/layer.txt", line 219, in layer.txt
Failed example:
    num_nodes
Expected:
    2
Got:
    1

-- https://github.com/crate/crate-python/actions/runs/3218694497/jobs/5263181322#step:4:363

@amotl amotl changed the title Tests: Flakyness in doctests/layer.txt Tests: Flakyness SystemError: Failed to start Crate instance in time Dec 16, 2022
@amotl
Copy link
Member Author

amotl commented Dec 16, 2022

This one still occasionally happens.

Caused by: org.elasticsearch.http.BindHttpException: Failed to bind to [44402]
Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
SystemError: Failed to start Crate instance in time.

-- https://github.com/crate/crate-python/actions/runs/3700515171/jobs/6269005519#step:4:429
-- https://github.com/crate/crate-python/actions/runs/3700515171/jobs/6269005519#step:4:458
-- https://github.com/crate/crate-python/actions/runs/3757800849/jobs/6385404485#step:4:399

@amotl amotl transferred this issue from crate/crate-python Jun 16, 2024
@amotl
Copy link
Member Author

amotl commented Jun 17, 2024

Didn't see this for a while already. Even if, it's just a fluke. Closing this.

@amotl amotl closed this as completed Jun 17, 2024
@amotl amotl transferred this issue from crate/sqlalchemy-cratedb Jun 18, 2024
@amotl
Copy link
Member Author

amotl commented Jun 18, 2024

Still happening occasionally.

BindException: Address already in use.
SystemError: Failed to start Crate instance in time.

-- https://github.com/crate/crate-python/actions/runs/9562806841/job/26359960751?pr=625#step:4:354

References

@amotl amotl reopened this Jun 18, 2024
@amotl amotl changed the title Tests: Flakyness SystemError: Failed to start Crate instance in time Tests: Flakyness BindException: Address already in use / SystemError: Failed to start Crate instance in time Jun 18, 2024
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