GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.67k stars 1.44k forks source link

slash-separated name components cannot have uppercase letters #4124

Closed lexang closed 1 year ago

lexang commented 1 year ago

Description of the issue:

[DEBUG] (f) allowInsecureRegistries = true [DEBUG] (f) mainClass = cn.iocoder.yudao.module.infra.InfraServerApplication [DEBUG] (f) environment = {spring.profiles.active=fenlan} [DEBUG] (f) jvmFlags = [-Xms512m, -Xmx512m] [DEBUG] (f) volumes = [/root/logs] [DEBUG] (f) workingDirectory = /opt [DEBUG] (f) environment = {TZ=Asia/Shanghai} [DEBUG] (f) creationTime = USE_CURRENT_TIMESTAMP [DEBUG] (f) format = OCI

[DEBUG] (f) image = openjdk:8-jdk-alpine [DEBUG] (f) from = com.google.cloud.tools.jib.maven.JibPluginConfiguration$FromConfiguration@2c0b4c83 [DEBUG] (f) project = MavenProject: cn.iocoder.cloud:yudao-module-infra-biz:1.8.2-snapshot @ D:\workspace\dtb\yudao-module-infra\yudao-module-infra-biz\pom.xml [DEBUG] (f) session = org.apache.maven.execution.MavenSession@78525ef9 [DEBUG] (f) image = http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2 [DEBUG] (f) tags = [1.8.2] [DEBUG] (f) username = admin [DEBUG] (f) password = 123456 [DEBUG] (f) auth = com.google.cloud.tools.jib.maven.JibPluginConfiguration$ToAuthConfiguration@abff8b7 [DEBUG] (f) to = com.google.cloud.tools.jib.maven.JibPluginConfiguration$ToConfiguration@6d7cada5

Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.2:build (default-cli) on project yudao-module-infra-biz: Invalid image reference http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2, perhaps you should check that the reference is formatted correctly according to https://docs.docker.com/engine/reference/commandline/tag/#extended-description [ERROR] For example, slash-separated name components cannot have uppercase letters: Invalid image reference: http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2 [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.2:build (default-cli) on project yudao-module-infra-biz: Invalid image reference http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2, perhaps you should check that the reference is formatted correctly according to https://docs.docker.com/engine/reference/commandline/tag/#extended-description For example, slash-separated name components cannot have uppercase letters at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at org.codehaus.classworlds.Launcher.main (Launcher.java:47)

Expected behavior:

jib-maven-plugin Configuration:

<plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.3.2</version>
                <!-- 绑定到Maven的package生命周期 ,此处如果不使用https,会有问题,需要设置sendCredentialsOverHttp=true-->
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>build</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <!--允许非https-->
                    <allowInsecureRegistries>true</allowInsecureRegistries>
                    <!-- 相当于Docerkfile中的FROM -->
                    <from>
                        <image>openjdk:8-jdk-alpine</image>
                    </from>
                    <to>
                        <image>${docker.repostory}/${docker.registry.name}/yudao-module-infra-biz:1.8.2</image>
                        <tags>
                            <tag>
                                1.8.2
                            </tag>
                        </tags>
                        <auth>
                            <username>admin</username>
                            <password>123456</password>
                        </auth>
                    </to>
                    <container>
                        <mainClass>cn.iocoder.yudao.module.infra.InfraServerApplication</mainClass>
                        <environment>
                            <spring.profiles.active>fenlan</spring.profiles.active>
                        </environment>
<!--                        jvm内存参数-->
                        <jvmFlags>
                            <jvmFlag>-Xms512m</jvmFlag>
                            <jvmFlag>-Xmx512m</jvmFlag>
                        </jvmFlags>
                        <volumes>/root/logs</volumes>
                        <workingDirectory>/opt</workingDirectory>
                        <environment>
                            <TZ>Asia/Shanghai</TZ>
                        </environment>
                        <!--使用该参数保证镜像的创建时间与系统时间一致-->
                        <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
                        <format>OCI</format>
                    </container>
                </configuration>
            </plugin>

jib:build -DsendCredentialsOverHttp=true -e -X -f pom.xml

chanseokoh commented 1 year ago
Invalid image reference http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2, perhaps you should check that the reference is formatted correctly
                       <image>${docker.repostory}/${docker.registry.name}/yudao-module-infra-biz:1.8.2</image>

I see your <image> value is expanded to http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2. The image reference should not start with http://. Get rid of http://, and I bet it'll work.

BTW, I see the typo in ${docker.repostory}. It should be repository (mind the missing "i").

lexang commented 1 year ago
Invalid image reference http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2, perhaps you should check that the reference is formatted correctly
                       <image>${docker.repostory}/${docker.registry.name}/yudao-module-infra-biz:1.8.2</image>

I see your <image> value is expanded to http://127.0.0.1:6030/dtb/yudao-module-infra-biz:1.8.2. The image reference should not start with http://. Get rid of http://, and I bet it'll work.

BTW, I see the typo in ${docker.repostory}. It should be repository (mind the missing "i").

thanks,it worked

lexang commented 1 year ago

It worked yesterday, but today I got this error again: ] Executing tasks: [INFO] [=============== ] 50.0% complete [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.739 s [INFO] Finished at: 2023-10-17T11:52:31+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.2:build (default-cli) on project yudao-module-infra-biz: 502 Bad Gateway [ERROR] POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.2:build (default-cli) on project yudao-module-infra-biz: 502 Bad Gateway POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at org.codehaus.classworlds.Launcher.main (Launcher.java:47)

Harbor can be accessed normally, What's going on?

chanseokoh commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502

You probably have a proxy talking to Harbor on behalf of you, and the error usually means that the proxy got a bad response from Harbor (unless the proxy is buggy). Most likely it's an issue in either the proxy or Harbor.

lexang commented 1 year ago

There is no proxy and Harbor is normal. I really don’t know what to do 。。。。

lexang commented 1 year ago

There is no proxy and Harbor is normal. I really don’t know what to do 。。。。

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502

You probably have a proxy talking to Harbor on behalf of you, and the error usually means that the proxy got a bad response from Harbor (unless the proxy is buggy). Most likely it's an issue in either the proxy or Harbor.

There is no proxy and Harbor is normal. I really don’t know what to do 。。。。

can you help me

lexang commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502

You probably have a proxy talking to Harbor on behalf of you, and the error usually means that the proxy got a bad response from Harbor (unless the proxy is buggy). Most likely it's an issue in either the proxy or Harbor.

[WARNING] [WARNING] Failed to connect to https://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ over HTTPS. Attempting again with HTTP. [INFO] Executing tasks: [INFO] [======= ] 24.0% complete [INFO] > pushing blob sha256:0004eebe56af3354f72bdb85c... [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [WARNING] [WARNING] Failed to connect to https://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ over HTTPS. Attempting again with HTTP. [INFO] Executing tasks: [INFO] [======= ] 24.0% complete [INFO] > pushing blob sha256:0004eebe56af3354f72bdb85c... [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob POST sha256:0004eebe56af3354f72bdb85cf178fa699069972d041b5ff95c2914a86b81e83 : 996.0 ms [INFO] Executing tasks: [INFO] [======= ] 24.0% complete [INFO] > pushing blob sha256:0004eebe56af3354f72bdb85c... [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob : 996.0 ms [INFO] Executing tasks: [INFO] [======= ] 24.0% complete [INFO] > pushing blob sha256:0004eebe56af3354f72bdb85c... [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED Pushing BLOB digest: sha256:0004eebe56af3354f72bdb85cf178fa699069972d041b5ff95c2914a86b81e83, size: 162073067 : 2089.0 ms [INFO] Executing tasks: [INFO] [======= ] 24.0% complete [INFO] > pushing blob sha256:0004eebe56af3354f72bdb85c... [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [INFO] [INFO] Executing tasks: [INFO] [======== ] 26.0% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob POST sha256:3226c88499b663bc730c3300fae873288bb7b055153a1455df0f14b44c05b5ce : 997.0 ms [INFO] Executing tasks: [INFO] [======== ] 26.0% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob : 997.0 ms [INFO] Executing tasks: [INFO] [======== ] 26.0% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED Pushing BLOB digest: sha256:3226c88499b663bc730c3300fae873288bb7b055153a1455df0f14b44c05b5ce, size: 163415 : 2096.0 ms [INFO] Executing tasks: [INFO] [======== ] 26.0% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pushing blob sha256:3226c88499b663bc730c3300f... [INFO] > pulling platform-specific manifests and conta... [INFO] [INFO] [INFO] Executing tasks: [INFO] [======== ] 28.1% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob POST sha256:ce17bb702bd0a5b8bfa7ab1e8490e37350b0444f0da93a4cc2dee5b1e9e5acef : 1021.0 ms [INFO] Executing tasks: [INFO] [======== ] 28.1% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED pushBlob : 1021.0 ms [INFO] Executing tasks: [INFO] [======== ] 28.1% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pulling platform-specific manifests and conta... [INFO] [DEBUG] [DEBUG] TIMED Pushing BLOB digest: sha256:ce17bb702bd0a5b8bfa7ab1e8490e37350b0444f0da93a4cc2dee5b1e9e5acef, size: 43423 : 2166.0 ms [INFO] Executing tasks: [INFO] [======== ] 28.1% complete [INFO] > pushing blob sha256:ce17bb702bd0a5b8bfa7ab1e8... [INFO] > pulling platform-specific manifests and conta... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========= ] 30.2% complete [INFO] > pulling platform-specific manifests and conta... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========= ] 30.7% complete [INFO] > pulling platform-specific manifests and conta... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========= ] 30.7% complete [INFO] > pull container configuration sha256:a3562aa0b... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========= ] 31.2% complete [INFO] > pulling base image manifest [INFO] [DEBUG] [DEBUG] TIMED Pulling base image manifest : 6233.0 ms [INFO] Executing tasks: [INFO] [========= ] 31.2% complete [INFO] > pulling base image manifest [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > building images to registry [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > scheduling obtaining base images layers [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > launching base image layer pullers [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] [DEBUG] [DEBUG] TIMING Pulling base image layer sha256:f910a506b6cb1dbec766725d70356f695ae2bf2bea6224dbe8c7c6ad4f3664a2 [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] [DEBUG] [DEBUG] TIMING Pulling base image layer sha256:c2274a1a0e2786ee9101b08f76111f9ab8019e368dce1e325d3c284a0ca33397 [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] [DEBUG] [DEBUG] TIMING Pulling base image layer sha256:e7c96db7181be991f19a9fb6975cdbbd73c65f4a2681348e63a141a2192a5f10 [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] > scheduling building manifests [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] > scheduling building manifests [INFO] [DEBUG] [DEBUG] TIMING Preparing layer pushers [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling pushing base images layers [INFO] > scheduling building manifests [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] [DEBUG] [DEBUG] TIMED Preparing layer pushers : 1.0 ms [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing manifests [INFO] > scheduling pushing container configurations [INFO] [INFO] [INFO] Executing tasks: [INFO] [========== ] 33.3% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing manifests [INFO] > scheduling pushing container configurations [INFO] [INFO] [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [DEBUG] [DEBUG] TIMED Building and pushing image : 6250.0 ms [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] I/O error for image [217.160.242.120:6030/dtb/yudao-module-infra-biz]: [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] I/O error for image [217.160.242.120:6030/dtb/yudao-module-infra-biz]: [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] java.net.SocketException [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] I/O error for image [217.160.242.120:6030/dtb/yudao-module-infra-biz]: [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] java.net.SocketException [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] Socket operation on nonsocket: configureBlocking [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] Socket operation on nonsocket: configureBlocking [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] java.net.SocketException [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [ERROR] [ERROR] Socket operation on nonsocket: configureBlocking [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [DEBUG] [DEBUG] TIMED Pulling base image layer sha256:c2274a1a0e2786ee9101b08f76111f9ab8019e368dce1e325d3c284a0ca33397 : 6.0 ms [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [DEBUG] [DEBUG] TIMED Pulling base image layer sha256:f910a506b6cb1dbec766725d70356f695ae2bf2bea6224dbe8c7c6ad4f3664a2 : 6.0 ms [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [DEBUG] [DEBUG] TIMED Pulling base image layer sha256:e7c96db7181be991f19a9fb6975cdbbd73c65f4a2681348e63a141a2192a5f10 : 6.0 ms [INFO] Executing tasks: [INFO] [============ ] 41.7% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > checking base image layer sha256:f910a506b6cb... [INFO] > checking base image layer sha256:c2274a1a0e27... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [INFO] [INFO] Executing tasks: [INFO] [============== ] 47.2% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [INFO] [INFO] Executing tasks: [INFO] [============== ] 47.2% complete [INFO] > checking base image layer sha256:e7c96db7181b... [INFO] > scheduling building manifests [INFO] > launching layer pushers [INFO] > scheduling pushing container configurations [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.412 s [INFO] Finished at: 2023-10-17T16:32:11+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build (default-cli) on project yudao-module-infra-biz: 502 Bad Gateway [ERROR] POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build (default-cli) on project yudao-module-infra-biz: 502 Bad Gateway POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at org.codehaus.classworlds.Launcher.main (Launcher.java:47) Caused by: org.apache.maven.plugin.MojoExecutionException: 502 Bad Gateway POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:181) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at org.codehaus.classworlds.Launcher.main (Launcher.java:47) Caused by: com.google.cloud.tools.jib.http.ResponseException: 502 Bad Gateway POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ at com.google.cloud.tools.jib.http.FailoverHttpClient.call (FailoverHttpClient.java:355) at com.google.cloud.tools.jib.http.FailoverHttpClient.call (FailoverHttpClient.java:281) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:138) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:114) at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint (RegistryClient.java:623) at com.google.cloud.tools.jib.registry.RegistryClient.pushBlob (RegistryClient.java:549) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call (PushBlobStep.java:89) at com.google.cloud.tools.jib.builder.steps.PushLayerStep.call (PushLayerStep.java:92) at com.google.cloud.tools.jib.builder.steps.PushLayerStep.call (PushLayerStep.java:33) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly (TrustedListenableFutureTask.java:131) at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:74) at com.google.common.util.concurrent.TrustedListenableFutureTask.run (TrustedListenableFutureTask.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:748) Caused by: com.google.api.client.http.HttpResponseException: 502 Bad Gateway POST http://217.160.242.120:6030/v2/dtb/yudao-module-infra-biz/blobs/uploads/ at com.google.api.client.http.HttpResponseException$Builder.build (HttpResponseException.java:293) at com.google.api.client.http.HttpRequest.execute (HttpRequest.java:1118) at com.google.cloud.tools.jib.http.FailoverHttpClient.call (FailoverHttpClient.java:349) at com.google.cloud.tools.jib.http.FailoverHttpClient.call (FailoverHttpClient.java:281) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:138) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:114) at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint (RegistryClient.java:623) at com.google.cloud.tools.jib.registry.RegistryClient.pushBlob (RegistryClient.java:549) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call (PushBlobStep.java:89) at com.google.cloud.tools.jib.builder.steps.PushLayerStep.call (PushLayerStep.java:92) at com.google.cloud.tools.jib.builder.steps.PushLayerStep.call (PushLayerStep.java:33) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly (TrustedListenableFutureTask.java:131) at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:74) at com.google.common.util.concurrent.TrustedListenableFutureTask.run (TrustedListenableFutureTask.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:748)

lexang commented 1 year ago

It succeeded, because I restarted docker before, and then harbor started automatically, but some services may be missing. I re-executed sh install.sh and the build was successful. Thank you.