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

make serve fails #9989

Closed
abitrolly opened this issue Sep 2, 2021 · 1 comment
Closed

make serve fails #9989

abitrolly opened this issue Sep 2, 2021 · 1 comment
Labels

Comments

@abitrolly
Copy link
Contributor

Describe the bug

I am following https://warehouse.readthedocs.io/development/getting-started.html#building-the-warehouse-container to fix tests for #9972. make build completed successfully, but make serve fails.

$ make serve
...
ERROR: for static  Cannot start service static: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/home/scrapbook/tutorial/warehouse/.babelrc\\\" to rootfs \\\"/var/lib/docker/overlay/06dabd0c7e3db59672165fe67c73033f699ee5880db8b991af27fa16f6427073/merged\\\" at \\\"/var/lib/docker/overlay/06dabd0c7e3db59672165fe67c73033f699ee5880db8b991af27fa16f6427073/merged/opt/warehouse/src/.babelrc\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/home/scrapbook/tutorial/warehouse/.coveragerc\\\" to rootfs \\\"/var/lib/docker/overlay/605d08f1f84bab428a886e9162041263a10263bfdacdbed8767219c43a1db09c/merged\\\" at \\\"/var/lib/docker/overlay/605d08f1f84bab428a886e9162041263a10263bfdacdbed8767219c43a1db09c/merged/opt/warehouse/src/.coveragerc\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

To Reproduce

$ git clone https://github.com/pypa/warehouse
$ cd warehouse
$ make build
$ make serve

My Platform

Ubuntu 16.04.6

$ docker-compose -v
docker-compose version 1.21.2, build a133471
$ docker -v
Docker version 18.03.1-ce, build 9ee9f40
@abitrolly
Copy link
Contributor Author

The Ubuntu was too old. There are no such errors on a newer system.

I also brought up a Katacode scenario to help test such issues online. This can also be handy for updating the development docs.

https://www.katacoda.com/abitrolly/scenarios/start-pypi-development

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

No branches or pull requests

1 participant