You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Hannah Jiang (Jira)" <ji...@apache.org> on 2020/04/15 20:33:00 UTC
[jira] [Comment Edited] (BEAM-9764)
:sdks:java:container:generateThirdPartyLicenses failing
[ https://issues.apache.org/jira/browse/BEAM-9764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084338#comment-17084338 ]
Hannah Jiang edited comment on BEAM-9764 at 4/15/20, 8:32 PM:
--------------------------------------------------------------
Log:
{code:java}
05:19:17 Invalid url: https://git.tukaani.org/?p=xz-java.git;a=blob_plain;f=COPYING;h=c1d404dc7a6f06a0437bf1055fedaa4a4c89d728;hb=HEAD
05:19:17 Invalid url: https://git.tukaani.org/?p=xz-java.git;a=blob_plain;f=COPYING;h=c1d404dc7a6f06a0437bf1055fedaa4a4c89d728;hb=HEAD
{code}
Error:
{code:java}
05:19:21 Traceback (most recent call last):
05:19:21 File "sdks/java/container/license_scripts/pull_licenses_java.py", line 225, in <module>
05:19:21 error_msg)
05:19:21 RuntimeError: ('1 error(s) occurred.', ['**************************************** Licenses were not able to be pulled automatically for some dependencies. Please search source code of the dependencies on the internet and add "license" and "notice" (if available) field to sdks/java/container/license_scripts/dep_urls_java.yaml for each missing license. Dependency List: [xz-1.5,xz-1.8]'])
{code}
The URLs are valid and they worked fine several times. Need to see why they are invalid with this run.
was (Author: hannahjiang):
Log:
{code:java}
05:19:17 Invalid url: https://git.tukaani.org/?p=xz-java.git;a=blob_plain;f=COPYING;h=c1d404dc7a6f06a0437bf1055fedaa4a4c89d728;hb=HEAD
05:19:17 Invalid url: https://git.tukaani.org/?p=xz-java.git;a=blob_plain;f=COPYING;h=c1d404dc7a6f06a0437bf1055fedaa4a4c89d728;hb=HEAD
{code}
```
Error:
{code:java}
05:19:21 Traceback (most recent call last):
05:19:21 File "sdks/java/container/license_scripts/pull_licenses_java.py", line 225, in <module>
05:19:21 error_msg)
05:19:21 RuntimeError: ('1 error(s) occurred.', ['**************************************** Licenses were not able to be pulled automatically for some dependencies. Please search source code of the dependencies on the internet and add "license" and "notice" (if available) field to sdks/java/container/license_scripts/dep_urls_java.yaml for each missing license. Dependency List: [xz-1.5,xz-1.8]'])
{code}
The URLs are valid and they worked fine several times. Need to see why they are invalid with this run.
> :sdks:java:container:generateThirdPartyLicenses failing
> -------------------------------------------------------
>
> Key: BEAM-9764
> URL: https://issues.apache.org/jira/browse/BEAM-9764
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core, test-failures
> Reporter: Udi Meiri
> Assignee: Hannah Jiang
> Priority: Major
> Fix For: 2.21.0
>
>
> https://builds.apache.org/job/beam_PreCommit_Python2_PVR_Flink_Cron/774/console
> The traceback is interspersed with other logs:
> {code}
> Traceback (most recent call last):
> Successfully pulled java_third_party_licenses/protobuf-java-util-3.11.1.jar/LICENSE from https://opensource.org/licenses/BSD-3-Clause
> Successfully pulled java_third_party_licenses/protoc-3.11.0.jar/LICENSE from http://www.apache.org/licenses/LICENSE-2.0.txt
> File "sdks/java/container/license_scripts/pull_licenses_java.py", line 138, in <module>
> Successfully pulled java_third_party_licenses/protoc-3.11.1.jar/LICENSE from http://www.apache.org/licenses/LICENSE-2.0.txt
> license_url = dep['moduleLicenseUrl']
> Successfully pulled java_third_party_licenses/zetasketch-0.1.0.jar/LICENSE from http://www.apache.org/licenses/LICENSE-2.0.txt
> KeyError: 'moduleLicenseUrl'
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)