-
Notifications
You must be signed in to change notification settings - Fork 1k
Failing make serve and/or circular imports #10802
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
Comments
Sorry you're having trouble! The circular dependency is #10447, although I don't think it's actually causing issues getting started here, just warning messages. The issue with I think given that, this issue is a duplicate of those two issues, but I'll let you decide. |
Hi, Thanks for your reply! I will try to scrap some snippets out of both issues, put them together and check if this solves the issue. Let me get back to you when I check this. I would close the issue now, but I don't know if this would fix the problem. |
Again, I think just disabling Compose V2 in Docker will resolve the issues you're having here. |
Oh, I am sorry. That's what sleep deprivation does to a person, it's like I didn't read what you wrote at all :) And, holy smokes, this worked. So many hours spent on this thing - just downgraded the Thanks man! |
Glad to see you got it working!
Yep, this is documented here: https://warehouse.pypa.io/development/getting-started.html#running-the-warehouse-container-and-services |
I know. I just thought that |
A possible improvement we could make here: we could catch this exception, check if we're in a development environment, and output a better error message if so. |
Describe the bug
So I try to set everything up as described in docs:
This goes for a while, I have for example
localhost:9001
available. But then the database container doesn't work. Errors look like this:I tried various combinations of running
make initdb
from a second terminal. It spits out some information, ends up in errors and hangs. It looks like this:Then, the terminal with
make serve
starts to output something like:ends up in:
at the end. And it refreshes periodically, same thing is being logged to the terminal.
Here's how it looks on the localhost:
Expected behavior
make serve
should not fail.To Reproduce
$ git clone https://github.com/pypa/warehouse.git $ cd warehouse $ make build $ sudo sysctl -w vm.max_map_count=262144 $ make serve
My Platform
postgresql-libs
installed (sopg_config
command is available).Additional context
I am running this inside a VM, but I get the same results when running from a host machine (also Arch, same configuration). I only used VMs because I wanted a quick way to delete one and start fresh (got snapshots).
Another thing to consider: I also fixed the circular imports (issue described here). Fix comes from another repo - link (I checked out from it). Mainly the
fix-sqlalchemy-deps
make command. This command just ran somepip-compile
command:So then it was:
But it ends up the same.
However, when I run all of this ((and I mean all of this) in a separate Docker environment - it worked. So a simple
ubuntu:latest
container, couple packages installed, like this:Then running
make fix-sqlalchemy-deps
,make build
andmake serve
- inside the container (also binding the docker sock and copying/warehouse
dir from container to host - so Docker sees it) worked.The text was updated successfully, but these errors were encountered: