docs icon indicating copy to clipboard operation
docs copied to clipboard

Issue with the "Quickstart: Launch your app" doc

Open kirilligum opened this issue 9 months ago • 0 comments

I found an issue with this document.

Title: Quickstart: Launch your app Location: https://fly.io/docs/getting-started/launch/ Source: https://github.com/superfly/docs/blob/main/getting-started/launch.html.markerb

Describe the issue

i follow the tutorial and get an error when running fly launch --generate-name

i'm on ubuntu and wsl

Addtional info

kirill@koldun ~/tmp> git clone [email protected]:fly-apps/hello-fastapi.git fastapi-app
                     cd fastapi-app
                     fly launch --generate-name

Cloning into 'fastapi-app'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 19 (delta 6), reused 10 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (19/19), 35.05 KiB | 608.00 KiB/s, done.
Resolving deltas: 100% (6/6), done.
Scanning source code
INFO Detected Poetry project
Detected a FastAPI app
Creating app in /home/kirill/tmp/fastapi-app
We're about to launch your FastAPI app on Fly.io. Here's what you're getting:

Organization: Kirill Igumenshchev          (fly launch defaults to the personal org)
Name:         nameless-star-3275           (generated)
Region:       Los Angeles, California (US) (this is the fastest region for you)
App Machines: shared-cpu-1x, 1GB RAM       (most apps need about 1GB of RAM)
Postgres:     <none>                       (not requested)
Redis:        <none>                       (not requested)
Tigris:       <none>                       (not requested)

? Do you want to tweak these settings before proceeding? No
Created app 'nameless-star-3275' in organization 'personal'
Admin URL: https://fly.io/apps/nameless-star-3275
Hostname: nameless-star-3275.fly.dev
Setting FLY_API_TOKEN secret in GitHub repository settings
failed setting FLY_API_TOKEN secret in GitHub repository settings: %w exit status 1
Wrote config file fly.toml
Validating /home/kirill/tmp/fastapi-app/fly.toml
✓ Configuration is valid
==> Building image
==> Building image with Depot
--> build:
[+] Building 6.0s (13/15)
 => [internal] load build definition from Dockerfile                                                                                                                                    0.2s
 => => transferring dockerfile: 380B                                                                                                                                                    0.2s
 => [internal] load metadata for docker.io/library/python:3.10-slim                                                                                                                     0.6s
 => [internal] load metadata for docker.io/library/python:3.10                                                                                                                          0.6s
 => [internal] load .dockerignore                                                                                                                                                       0.1s
 => => transferring context: 82B                                                                                                                                                        0.1s
 => [builder 1/6] FROM docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0cd8a                                                            0.0s
 => => resolve docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0cd8a                                                                    0.0s
 => [stage-1 1/4] FROM docker.io/library/python:3.10-slim@sha256:66aad90b231f011cb80e1966e03526a7175f0586724981969b23903abac19081                                                       0.0s
 => => resolve docker.io/library/python:3.10-slim@sha256:66aad90b231f011cb80e1966e03526a7175f0586724981969b23903abac19081                                                               0.0s
 => [internal] load build context                                                                                                                                                       0.2s
 => => transferring context: 105.53kB                                                                                                                                                   0.2s
 => CACHED [stage-1 2/4] WORKDIR /app                                                                                                                                                   0.0s
 => CACHED [builder 2/6] WORKDIR /app                                                                                                                                                   0.0s
 => CACHED [builder 3/6] RUN pip install poetry                                                                                                                                         0.0s
 => CACHED [builder 4/6] RUN poetry config virtualenvs.in-project true                                                                                                                  0.0s
 => CACHED [builder 5/6] COPY pyproject.toml poetry.lock ./                                                                                                                             0.0s
 => ERROR [builder 6/6] RUN poetry install                                                                                                                                              4.6s
------
 > [builder 6/6] RUN poetry install:
1.827 Creating virtualenv fastapi-app in /app/.venv
2.371 Installing dependencies from lock file
2.686
2.686 Package operations: 36 installs, 0 updates, 0 removals
2.686
2.687   - Installing mdurl (0.1.2)
2.735   - Installing exceptiongroup (1.2.1)
2.735   - Installing idna (3.7)
2.737   - Installing markdown-it-py (3.0.0)
2.740   - Installing pygments (2.18.0)
2.741   - Installing sniffio (1.3.1)
2.744   - Installing typing-extensions (4.12.2)
3.006   - Installing anyio (4.4.0)
3.007   - Installing certifi (2024.6.2)
3.009   - Installing click (8.1.7)
3.010   - Installing h11 (0.14.0)
3.010   - Installing rich (13.7.1)
3.013   - Installing shellingham (1.5.4)
3.171   - Installing annotated-types (0.7.0)
3.171   - Installing dnspython (2.6.1)
3.173   - Installing httpcore (1.0.5)
3.174   - Installing httptools (0.6.1)
3.176   - Installing markupsafe (2.1.5)
3.177   - Installing pydantic-core (2.18.4)
3.179   - Installing python-dotenv (1.0.1)
3.181   - Installing pyyaml (6.0.1)
3.183   - Installing typer (0.12.3)
3.184   - Installing uvloop (0.19.0)
3.188   - Installing watchfiles (0.22.0)
3.192   - Installing websockets (12.0)
3.860   - Installing email-validator (2.1.1)
3.860   - Installing fastapi-cli (0.0.4)
3.861   - Installing httpx (0.27.0)
3.863   - Installing jinja2 (3.1.4)
3.865   - Installing orjson (3.10.4)
3.866   - Installing pydantic (2.7.3)
3.869   - Installing python-multipart (0.0.9)
3.869   - Installing starlette (0.37.2)
3.871   - Installing ujson (5.10.0)
3.875   - Installing uvicorn (0.30.1)
4.149   - Installing fastapi (0.111.0)
4.181
4.181 Installing the current project: fastapi-app (0.1.0)
4.182
4.182 Error: The current project could not be installed: Readme path `/app/README.md` does not exist.
4.182 If you do not want to install the current project use --no-root.
4.182 If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
4.182 If you did intend to install the current project, you may need to set `packages` in your pyproject.toml file.
4.182
------
==> Building image
==> Building image with Depot
--> build:
[+] Building 5.7s (13/15)
 => [internal] load build definition from Dockerfile                                                                                                                                    0.1s
 => => transferring dockerfile: 380B                                                                                                                                                    0.1s
 => [internal] load metadata for docker.io/library/python:3.10-slim                                                                                                                     0.3s
 => [internal] load metadata for docker.io/library/python:3.10                                                                                                                          0.3s
 => [internal] load .dockerignore                                                                                                                                                       0.1s
 => => transferring context: 82B                                                                                                                                                        0.1s
 => [builder 1/6] FROM docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0cd8a                                                            0.0s
 => => resolve docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0cd8a                                                                    0.0s
 => [internal] load build context                                                                                                                                                       0.1s
 => => transferring context: 328B                                                                                                                                                       0.1s
 => [stage-1 1/4] FROM docker.io/library/python:3.10-slim@sha256:66aad90b231f011cb80e1966e03526a7175f0586724981969b23903abac19081                                                       0.0s
 => => resolve docker.io/library/python:3.10-slim@sha256:66aad90b231f011cb80e1966e03526a7175f0586724981969b23903abac19081                                                               0.0s
 => CACHED [stage-1 2/4] WORKDIR /app                                                                                                                                                   0.0s
 => CACHED [builder 2/6] WORKDIR /app                                                                                                                                                   0.0s
 => CACHED [builder 3/6] RUN pip install poetry                                                                                                                                         0.0s
 => CACHED [builder 4/6] RUN poetry config virtualenvs.in-project true                                                                                                                  0.0s
 => CACHED [builder 5/6] COPY pyproject.toml poetry.lock ./                                                                                                                             0.0s
 => ERROR [builder 6/6] RUN poetry install                                                                                                                                              5.0s
------
 > [builder 6/6] RUN poetry install:
1.982 Creating virtualenv fastapi-app in /app/.venv
2.586 Installing dependencies from lock file
2.943
2.943 Package operations: 36 installs, 0 updates, 0 removals
2.943
2.945   - Installing mdurl (0.1.2)
2.994   - Installing exceptiongroup (1.2.1)
2.995   - Installing idna (3.7)
2.997   - Installing markdown-it-py (3.0.0)
3.006   - Installing pygments (2.18.0)
3.006   - Installing sniffio (1.3.1)
3.006   - Installing typing-extensions (4.12.2)
3.295   - Installing anyio (4.4.0)
3.295   - Installing certifi (2024.6.2)
3.297   - Installing click (8.1.7)
3.297   - Installing h11 (0.14.0)
3.301   - Installing rich (13.7.1)
3.303   - Installing shellingham (1.5.4)
3.495   - Installing annotated-types (0.7.0)
3.495   - Installing dnspython (2.6.1)
3.497   - Installing httpcore (1.0.5)
3.498   - Installing httptools (0.6.1)
3.500   - Installing markupsafe (2.1.5)
3.502   - Installing pydantic-core (2.18.4)
3.503   - Installing python-dotenv (1.0.1)
3.504   - Installing pyyaml (6.0.1)
3.506   - Installing typer (0.12.3)
3.511   - Installing uvloop (0.19.0)
3.514   - Installing watchfiles (0.22.0)
3.517   - Installing websockets (12.0)
4.215   - Installing email-validator (2.1.1)
4.215   - Installing fastapi-cli (0.0.4)
4.216   - Installing httpx (0.27.0)
4.218   - Installing jinja2 (3.1.4)
4.219   - Installing orjson (3.10.4)
4.220   - Installing pydantic (2.7.3)
4.224   - Installing python-multipart (0.0.9)
4.224   - Installing starlette (0.37.2)
4.226   - Installing ujson (5.10.0)
4.230   - Installing uvicorn (0.30.1)
4.565   - Installing fastapi (0.111.0)
4.600
4.600 Installing the current project: fastapi-app (0.1.0)
4.602
4.602 Error: The current project could not be installed: Readme path `/app/README.md` does not exist.
4.602 If you do not want to install the current project use --no-root.
4.602 If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
4.602 If you did intend to install the current project, you may need to set `packages` in your pyproject.toml file.
4.602
------
Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c poetry install" did not complete successfully: exit code: 1

kirilligum avatar Feb 15 '25 22:02 kirilligum