OpenFunction / OpenFunction

Cloud Native Function-as-a-Service Platform (CNCF Sandbox Project)
https://openfunction.dev
Apache License 2.0
1.48k stars 161 forks source link

Function builder error image error [python buildpacks failed] #422

Open CaoYunzhou opened 1 year ago

CaoYunzhou commented 1 year ago

Description Compile Python code from https://github.com/OpenFunction/samples/tree/main/functions/knative/hello-world-python

Environmental

Actual behavior Tell us what happens instead. Provide a log message if relevant.

1. '..'
2. '...'
3. '....'
4. See error

**Screenshots**

===> RESTORING ===> BUILDING === Python - Runtime (google.python.runtime@0.9.1) === Python version not specified, using the test available version. 2023/03/06 19:03:51 [DEBUG] GET https://dl.google.com/runtimes/python/version.json Installing Python v3.10.5. 2023/03/06 19:03:52 [DEBUG] GET https://dl.google.com/runtimes/python/python-3.10.5.tar.gz Upgrading pip to the latest version and installing build tools

Running "/layers/google.python.runtime/python/bin/python3 -m pip install --upgrade pip setuptools wheel" Requirement already satisfied: pip in /layers/google.python.runtime/python/lib/python3.10/site-packages (22.0.4) Collecting pip Downloading pip-23.0.1-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 384.1 kB/s eta 0:00:00 Installing collected packages: Werkzeug, watchdog, setuptools, markupsafe, itsdangerous, click, Jinja2, gunicorn, flask, functions-framework Successfully installed Jinja2-2.11.3 Werkzeug-1.0.1 click-7.1.2 flask-1.1.4 functions-framework-1.4.3 gunicorn-20.1.0 itsdangerous-1.1.0 markupsafe-2.0.1 setuptools-67.5.1 watchdog-2.3.1 Done "python3 -m pip install --requirement requirements.txt --upgr..." (16.189722661s)

Running "python3 -m compileall --invalidation-mode unchecked-hash -qq /layers/google.python.pip/pip" Done "python3 -m compileall --invalidation-mode unchecked-hash -qq..." (1.16230784s) Checking for incompatible dependencies.

Running "python3 -m pip check" No broken requirements found. Done "python3 -m pip check" (651.430376ms) === Utils - Label Image (google.utils.label@0.0.2) === ===> EXPORTING ERROR: failed to create new app image: connect to repo store "gcr.io/buildpacks/gcp/run:v1": Get "https://gcr.io/v2/": dial tcp 108.177.125.82:443: i/o timeout

**Additional context**
```docker image ls|grep gcp```

[root@k8s-master sample]# docker image ls|grep gcp gcr.io/buildpacks/gcp/run v1 7cf2d6475978 4 days ago 178MB gcr.lank8s.cn/buildpacks/gcp/run v1 7cf2d6475978 4 days ago 178MB



- all nodes image is exists
- why connect remote registry ?
CaoYunzhou commented 1 year ago

let's https://github.com/OpenFunction/builder/blob/main/tools/cloudbuild/create_builder.yaml

benjaminhuo commented 1 year ago

@CaoYunzhou Currently, we lack maintainers for Python functions-framework and builder. Are you interested in getting involved? You're welcome to get in the discord https://discord.gg/hG3yc6uAyC and WeChat group: join the OpenFunction user group by following the kubesphere WeChat subscription and then reply openfunction

benjaminhuo commented 1 year ago

We now have mature go/java/nodejs functions-frameworks and builders