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

Long period of unresponsiveness while doing analyzing phase #141

Open
ToviHe opened this issue Oct 23, 2023 · 1 comment
Open

Long period of unresponsiveness while doing analyzing phase #141

ToviHe opened this issue Oct 23, 2023 · 1 comment

Comments

@ToviHe
Copy link

ToviHe commented Oct 23, 2023

When I ran the python sample command again, when it reached the analyzing stage, I found that it seemed to be stuck, and there was no response after waiting for a long time.

command:
pack build python-sample --builder openfunction/gcp-builder:v1 --env GOOGLE_FUNCTION_TARGET=hello_world --verbose

output:
(base) ➜ hello-world-python git:(main) pack build python-sample --builder openfunction/gcp-builder:v1 --env GOOGLE_FUNCTION_TARGET=hello_world --verbose
Builder openfunction/gcp-builder:v1 is untrusted
As a result, the phases of the lifecycle which require root access will be run in separate trusted ephemeral containers.
For more information, see https://medium.com/buildpacks/faster-more-secure-builds-with-pack-0-11-0-4d0c633ca619
Pulling image index.docker.io/openfunction/gcp-builder:v1
v1: Pulling from openfunction/gcp-builder
Digest: sha256:3d296221b2af792419753e04bee81e1b3a11531c31a75d731556c7d444ce43bc
Status: Image is up to date for openfunction/gcp-builder:v1
Selected run image openfunction/buildpacks-gcp-run:v1
Pulling image openfunction/buildpacks-gcp-run:v1
v1: Pulling from openfunction/buildpacks-gcp-run
Digest: sha256:17ef6b471598da30c935a7a1be861ca2b2d66e10b378f99ed546bc4a8d429a96
Status: Image is up to date for openfunction/buildpacks-gcp-run:v1
Pulling image buildpacksio/lifecycle:0.11.1
0.11.1: Pulling from buildpacksio/lifecycle
Digest: sha256:2ca9870d9472400792bdc2d43ded8df2642ffcf937e8cd01685836678c28780b
Status: Image is up to date for buildpacksio/lifecycle:0.11.1
Creating builder with the following buildpacks:
-> google.config.entrypoint@0.9.0
-> google.cpp.clear_source@0.1.0
-> google.cpp.functions-framework@0.1.0
-> google.go.clear_source@0.9.0
-> google.dotnet.runtime@0.9.1
-> google.dotnet.publish@0.9.0
-> google.dotnet.functions-framework@0.0.1
-> google.go.runtime@0.9.1
-> google.go.build@0.9.0
-> google.go.gopath@0.9.0
-> google.go.functions-framework@0.9.4
-> google.java.entrypoint@0.9.0
-> google.java.exploded-jar@0.9.0
-> google.java.functions-framework@1.0.1
-> google.java.gradle@0.9.0
-> google.java.maven@0.9.0
-> google.java.runtime@0.9.1
-> google.java.clear_source@0.9.0
-> google.nodejs.runtime@0.9.2
-> google.nodejs.npm@0.9.0
-> google.nodejs.yarn@0.9.0
-> google.nodejs.functions-framework@0.9.1
-> google.python.runtime@0.9.1
-> google.python.pip@0.9.2
-> google.python.functions-framework@0.9.4
-> google.python.missing-entrypoint@0.9.0
-> google.utils.label@0.0.1
Provided Environment Variables
GOOGLE_FUNCTION_TARGET=hello_world
Using build cache volume pack-cache-library_python-sample_latest-a1e7d2840988.build
===> DETECTING
Running the detector on OS linux with:
Container Settings:
Args: /cnb/lifecycle/detector -app /workspace -log-level debug
System Envs: CNB_PLATFORM_API=0.6
Image: pack.local/builder/6b6e6f757a6567717967:latest
User:
Labels: map[author:pack]
Host Settings:
Binds: pack-layers-omuitrkdzg:/layers pack-app-ubbrfopbsb:/workspace
Network Mode:
[detector] ======== Output: google.dotnet.functions-framework@0.0.1 ========
[detector] Opting in: GOOGLE_FUNCTION_TARGET set to "hello_world"
[detector] ======== Output: google.dotnet.runtime@0.9.1 ========
[detector] Opting out: no project files or .dll files found
[detector] ======== Output: google.dotnet.publish@0.9.0 ========
[detector] Opting out: no project files found and GOOGLE_BUILDABLE not set
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] pass: google.dotnet.functions-framework@0.0.1
[detector] fail: google.dotnet.runtime@0.9.1
[detector] fail: google.dotnet.publish@0.9.0
[detector] skip: google.config.entrypoint@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.dotnet.runtime@0.9.1 ========
[detector] Opting out: no project files or .dll files found
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.dotnet.runtime@0.9.1
[detector] fail: google.config.entrypoint@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.go.runtime@0.9.1 ========
[detector] Opting out: no .go files found
[detector] ======== Output: google.go.functions-framework@0.9.4 ========
[detector] Opting in: GOOGLE_FUNCTION_TARGET set to "hello_world"
[detector] ======== Output: google.go.build@0.9.0 ========
[detector] Opting out: no .go files found
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.go.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.go.runtime@0.9.1
[detector] pass: google.go.functions-framework@0.9.4
[detector] fail: google.go.build@0.9.0
[detector] skip: google.config.entrypoint@0.9.0
[detector] skip: google.go.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.go.runtime@0.9.1 ========
[detector] Opting out: no .go files found
[detector] ======== Output: google.go.gopath@0.9.0 ========
[detector] Opting in: go.mod file not found, assuming GOPATH build
[detector] ======== Output: google.go.build@0.9.0 ========
[detector] Opting out: no .go files found
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.go.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.go.runtime@0.9.1
[detector] pass: google.go.gopath@0.9.0
[detector] fail: google.go.build@0.9.0
[detector] skip: google.config.entrypoint@0.9.0
[detector] skip: google.go.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.maven@0.9.0 ========
[detector] Opting out: none of the following found: pom.xml or .mvn/extensions.xml.
[detector] ======== Output: google.java.functions-framework@1.0.1 ========
[detector] Opting in: GOOGLE_FUNCTION_TARGET set to "hello_world"
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] fail: google.java.maven@0.9.0
[detector] pass: google.java.functions-framework@1.0.1
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.gradle@0.9.0 ========
[detector] Opting out: neither build.gradle nor build.gradle.kts found
[detector] ======== Output: google.java.functions-framework@1.0.1 ========
[detector] Opting in: GOOGLE_FUNCTION_TARGET set to "hello_world"
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] skip: google.java.gradle@0.9.0
[detector] pass: google.java.functions-framework@1.0.1
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.exploded-jar@0.9.0 ========
[detector] Opting out: META-INF/MANIFEST.MF not found
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] fail: google.java.exploded-jar@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.maven@0.9.0 ========
[detector] Opting out: none of the following found: pom.xml or .mvn/extensions.xml.
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] fail: google.java.maven@0.9.0
[detector] fail: google.config.entrypoint@0.9.0
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.maven@0.9.0 ========
[detector] Opting out: none of the following found: pom.xml or .mvn/extensions.xml.
[detector] ======== Output: google.java.entrypoint@0.9.0 ========
[detector] Opting in: always enabled
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] fail: google.java.maven@0.9.0
[detector] pass: google.java.entrypoint@0.9.0
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.gradle@0.9.0 ========
[detector] Opting out: neither build.gradle nor build.gradle.kts found
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] skip: google.java.gradle@0.9.0
[detector] fail: google.config.entrypoint@0.9.0
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.java.runtime@0.9.1 ========
[detector] Opting out: none of the following found: pom.xml, .mvn/extensions.xml, build.gradle, build.gradle.kts, META-INF/MANIFEST.MF, *.java, *.jar
[detector] ======== Output: google.java.gradle@0.9.0 ========
[detector] Opting out: neither build.gradle nor build.gradle.kts found
[detector] ======== Output: google.java.entrypoint@0.9.0 ========
[detector] Opting in: always enabled
[detector] ======== Output: google.java.clear_source@0.9.0 ========
[detector] Opting out: GOOGLE_CLEAR_SOURCE not set
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] fail: google.java.runtime@0.9.1
[detector] skip: google.java.gradle@0.9.0
[detector] pass: google.java.entrypoint@0.9.0
[detector] skip: google.java.clear_source@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] ======== Output: google.python.runtime@0.9.1 ========
[detector] Opting in: found .py files
[detector] ======== Output: google.python.functions-framework@0.9.4 ========
[detector] Opting in: GOOGLE_FUNCTION_TARGET set to "hello_world"
[detector] ======== Output: google.python.pip@0.9.2 ========
[detector] Opting in: always enabled
[detector] ======== Output: google.config.entrypoint@0.9.0 ========
[detector] Opting out: GOOGLE_ENTRYPOINT not set and Procfile not found
[detector] ======== Output: google.utils.label@0.0.1 ========
[detector] Opting in: always enabled
[detector] ======== Results ========
[detector] pass: google.python.runtime@0.9.1
[detector] pass: google.python.functions-framework@0.9.4
[detector] pass: google.python.pip@0.9.2
[detector] skip: google.config.entrypoint@0.9.0
[detector] pass: google.utils.label@0.0.1
[detector] Resolving plan... (try #1)
[detector] 4 of 5 buildpacks participating
[detector] google.python.runtime 0.9.1
[detector] google.python.functions-framework 0.9.4
[detector] google.python.pip 0.9.2
[detector] google.utils.label 0.0.1
===> ANALYZING
Running the analyzer on OS linux with:
Container Settings:
Args: /cnb/lifecycle/analyzer -log-level debug -daemon -cache-dir /cache python-sample
System Envs: CNB_USER_ID=1000 CNB_GROUP_ID=1000 CNB_PLATFORM_API=0.6
Image: buildpacksio/lifecycle:0.11.1
User: root
Labels: map[author:pack]
Host Settings:
Binds: /var/run/docker.sock:/var/run/docker.sock pack-cache-library_python-sample_latest-a1e7d2840988.build:/cache pack-layers-omuitrkdzg:/layers pack-app-ubbrfopbsb:/workspace
Network Mode:

@ToviHe
Copy link
Author

ToviHe commented Oct 23, 2023

When ANALYZING, there is no response for a long time. Has anyone encountered similar problems?

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