poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Poetry 1.4.0 can't install dependencies: Connection pool is full

Open borice opened this issue 2 years ago • 1 comments

With the upgrade to Poetry 1.4.0 I am now getting the following error when running poetry install in CircleCI.

Connection pool is full, discarding connection: pypi.org. Connection pool size: 10

I have changed the build script to install Poetry 1.3.2, and the error went away. I have checked that going back to 1.4.0 brings back the error also.

It seems that whatever changed between 1.3.2 and 1.4.0 is now causing this error for us in CircleCI.

borice avatar Mar 01 '23 16:03 borice

that's just a benign warning. You haven't said what your problem is, but I don't think it's this.

dimbleby avatar Mar 01 '23 16:03 dimbleby

Well, this is what I was seeing in CircleCI: image

... but after reverting to 1.3.2 and restarting the build, I ran into this other error in the Docker image building step (which also used Poetry 1.4.0):

image

I reverted that setup to use 1.3.2 also, and error was gone. Went back to 1.4.0 briefly to test if this was a sporadic error, and error came back. Back again to 1.3.2 error went away again. So 1.4.0 seems to have some regression issue.

borice avatar Mar 01 '23 20:03 borice

duplicate #7572, please close

dimbleby avatar Mar 01 '23 20:03 dimbleby

I don't think this is related to #7572, it's the issue reported in this SO post. The solution suggested there, which works for me, is to set the Poetry config setting installer.max-workers to 10.

allanlewis avatar May 09 '23 14:05 allanlewis

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 29 '24 14:02 github-actions[bot]