Re: [cf-push] Deploying spring-music twice will throw lots of warnings


Daniel Mikusa <dmikusa@...>
 

This has happened to me in the past when Maven/Gradle fails to download a JAR dependency and it gets stuck in the local cache on my laptop's filesystem. The actual file is some error, not a JAR file, which is why you get messages about invalid JAR files.

For Maven, you just have to wipe out the offending files under ~/.m2/repository (or delete everything under that folder). I'm not as familiar with Gradle, but SO says it stores them under ~/.gradle/caches/modules-2/files-2.1, https://stackoverflow.com/a/33196481. The solution should be the same. Delete the offending files or just delete everything. Then run `gradle clean` and `gradle assemble` again. You should see it download the files again. Make sure you're on the network & able to access the files it's trying to download.

Hope that helps!


On Mon, Apr 13, 2020 at 11:08 PM "何贵民(箫竹) <guimin.hgm@...> wrote:
Dear Cloud Foundry Community,

I am Alibaba Cloud developer and I am working on integrating Alibaba Cloud with CloudFoundry. Now, I happened an issue when I deploy app spring-music: https://github.com/cloudfoundry-samples/spring-music, and I need your help.

The issue as following:
when I run command cf push to deploy spring-music firstly, it can be deployed successfully;
when I run command cf push again, it throw many warnings, as following:
Staging app and tracing logs...
Downloading binary_buildpack...
Downloading staticfile_buildpack...
Downloading java_buildpack...
Downloading ruby_buildpack...
Downloaded ruby_buildpack
Downloading dotnet_core_buildpack...
Downloaded staticfile_buildpack
Downloading nodejs_buildpack...
Downloaded java_buildpack
Downloading go_buildpack...
Downloaded binary_buildpack
Downloading python_buildpack...
Downloaded nodejs_buildpack
Downloading php_buildpack...
Downloaded dotnet_core_buildpack
Downloading nginx_buildpack...
Downloaded go_buildpack
Downloading r_buildpack...
Downloaded python_buildpack
Downloaded r_buildpack
Downloaded nginx_buildpack
Downloaded php_buildpack
Cell ae633763-c016-4a05-90c3-89494ac040e7 creating container for instance 700500a8-5455-4bba-b438-116f09231b82
Cell ae633763-c016-4a05-90c3-89494ac040e7 successfully created container for instance 700500a8-5455-4bba-b438-116f09231b82
Downloading app package...
Downloading build artifacts cache...
Downloaded build artifacts cache (42.1M)
Downloaded app package (62.4M)
warning [/tmp/app/BOOT-INF/lib/spring-web-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/hibernate-core-5.2.16.Final.jar]: 6291456 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/jackson-databind-2.9.5.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-commons-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-mongodb-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-boot-autoconfigure-2.0.1.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/lettuce-core-5.0.3.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/aspectjweaver-1.8.13.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-core-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-context-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/h2-1.4.197.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-cloud-cloudfoundry-connector-2.0.1.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/hibernate-validator-6.0.9.Final.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/tomcat-embed-core-8.5.29.jar]: 2097152 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-redis-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/reactor-core-3.1.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/mongodb-driver-core-3.6.3.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-web-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/hibernate-core-5.2.16.Final.jar]: 6291456 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/jackson-databind-2.9.5.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-commons-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-mongodb-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-boot-autoconfigure-2.0.1.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/lettuce-core-5.0.3.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/aspectjweaver-1.8.13.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-core-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-context-5.0.5.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/h2-1.4.197.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-cloud-cloudfoundry-connector-2.0.1.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/hibernate-validator-6.0.9.Final.jar]: 1048576 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/tomcat-embed-core-8.5.29.jar]: 2097152 extra bytes at beginning or within zipfile
(attempting to process anyway)
warning [/tmp/app/BOOT-INF/lib/spring-data-redis-2.0.6.RELEASE.jar]: 1048576 extra bytes at beginning or within zipfile

My cf cli version is  6.51.0+2acd15650.2020-04-07.

In addition, about this issue, I have asked help in several days ago by slack cf-deployment channel: https://cloudfoundry.slack.com/archives/C2U7KA7M4/p1586335015016800 and capi channel: https://cloudfoundry.slack.com/archives/C07C04W4Q/p1586480456093000 , but there are no any reply.

Looking forward to your help.

Thanks and warm regards
Guimin, He

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.