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

Issues with deploying #460

Open
tbalochistan opened this issue Oct 14, 2024 · 0 comments
Open

Issues with deploying #460

tbalochistan opened this issue Oct 14, 2024 · 0 comments

Comments

@tbalochistan
Copy link

I am getting these errors when deploying my app: Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Running "python3 -m pip install --requirement /cnb/buildpacks/google.python.webserver/0.9.1/requirements.txt --upgrade --upgrade-strategy only-if-needed --no-warn-script-location --no-warn-conflicts --force-reinstall --no-compile --disable-pip-version-check --no-cache-dir --user"
Step #1: [builder] Collecting gunicorn==21.2.0 (from -r /cnb/buildpacks/google.python.webserver/0.9.1/requirements.txt (line 1))
Step #1: [builder] Downloading gunicorn-21.2.0-py3-none-any.whl.metadata (4.1 kB)
Step #1: [builder] Collecting packaging (from gunicorn==21.2.0->-r /cnb/buildpacks/google.python.webserver/0.9.1/requirements.txt (line 1))
Step #1: [builder] Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Step #1: [builder] Downloading gunicorn-21.2.0-py3-none-any.whl (80 kB)
Step #1: [builder] Downloading packaging-24.1-py3-none-any.whl (53 kB)
Step #1: [builder] Installing collected packages: packaging, gunicorn
Step #1: [builder] Successfully installed gunicorn-21.2.0 packaging-24.1
Step #1: [builder] Done "python3 -m pip install --requirement /cnb/buildpacks/google...." (2.695415149s)
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Running "python3 -m compileall --invalidation-mode unchecked-hash -qq /layers/google.python.pip/pip"
Step #1: [builder] Done "python3 -m compileall --invalidation-mode unchecked-hash -qq..." (191.719672ms)
Step #1: [builder] Checking for incompatible dependencies.
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Running "python3 -m pip check"
Step #1: [builder] No broken requirements found.
Step #1: [builder] Done "python3 -m pip check" (417.005928ms)
Step #1: [builder] === Python - Missing Entrypoint ([email protected]) ===
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] failed to build: for Python, provide a main.py file or set an entrypoint with "GOOGLE_ENTRYPOINT" env var or by creating a "Procfile" file
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Sorry your project couldn't be built.
Step #1: [builder] Our documentation explains ways to configure Buildpacks to better recognise your project:
Step #1: [builder] -> https://cloud.google.com/docs/buildpacks/overview
Step #1: [builder] If you think you've found an issue, please report it:
Step #1: [builder] -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Timer: Builder ran for 8.658506594s and ended at 2024-10-14T02:51:39Z
Step #1: [builder] ERROR: failed to build: exit status 1
Step #1: ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 51
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/k8s-skaffold/pack" failed: step exited with non-zero status: 1

My YAML:
env:

  • GOOGLE_ENTRYPOINT=gunicorn -b :$PORT wsgi:application

runtime: python312

entrypoint: gunicorn -b :$PORT app:app

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