LorenzoBettini/p2composite-bintray-example

{"message":"Failed to resolve package name"} during push-p2-repo-to-bintray

kwin opened this issue · 2 comments

kwin commented

I get the following log messages during the upload (executed curl with an addition --verbose argument):

push-p2-repo-to-bintray:
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 75.126.118.184...* Connected to api.bintray.com (75.126.118.184) port 443 (#0)
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256* Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./artifacts.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 845
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [845 bytes data]
[apply] * We are completely uploaded and fine
[apply] 
[apply] 100   845    0     0  100   845      0    458  0:00:01  0:00:01 --:--:--   458
[apply] < HTTP/1.1 201 Created< Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:03 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1429
[apply] < 
[apply] { [32 bytes data]
[apply] 
[apply] 100   866    0    21  100   845     10    438  0:00:01  0:00:01 --:--:--   438* Connection #0 to host api.bintray.com left intact
[apply] {"message":"success"}
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 108.168.194.93...* Connected to api.bintray.com (108.168.194.93) port 443 (#0)
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256* Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./content.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 7146
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [7146 bytes data]
[apply] * We are completely uploaded and fine
[apply] < HTTP/1.1 201 Created
[apply] < Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:05 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1428
[apply] < 
[apply] { [32 bytes data]
[apply] 
[apply] 100  7167    0    21  100  7146     14   4799  0:00:01  0:00:01 --:--:--  4799100  7167    0    21  100  7146     14   4799  0:00:01  0:00:01 --:--:--  4799* Connection #0 to host api.bintray.com left intact
[apply] {"message":"success"}
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 75.126.118.184...* Connected to api.bintray.com (75.126.118.184) port 443 (#0)
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256* Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./features/com.googlecode.cppcheclipse.feature_1.1.0.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 5328
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [5328 bytes data]
[apply] * We are completely uploaded and fine
[apply] {"message":"Failed to resolve package name"}< HTTP/1.1 400 Bad Request
[apply] < Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:07 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1427
[apply] < 
[apply] { [55 bytes data]
[apply] 
[apply] 100  5372    0    44  100  5328     36   4393  0:00:01  0:00:01 --:--:--  4392100  5372    0    44  100  5328     36   4393  0:00:01  0:00:01 --:--:--  4392* Connection #0 to host api.bintray.com left intact
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 75.126.118.184...* Connected to api.bintray.com (75.126.118.184) port 443 (#0)
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256* Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./plugins/com.google.guava_12.0.0.v201212092141.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 1897789
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [16384 bytes data]
[apply] 
[apply]   7 1853k    0     0    7  144k      0   101k  0:00:18  0:00:01  0:00:17  101k 16 1853k    0     0   16  304k      0   125k  0:00:14  0:00:02  0:00:12  125k 25 1853k    0     0   25  480k      0   140k  0:00:13  0:00:03  0:00:10  140k 29 1853k    0     0   29  544k      0   116k  0:00:15  0:00:04  0:00:11  116k 30 1853k    0     0   30  560k      0   101k  0:00:18  0:00:05  0:00:13  110k 37 1853k    0     0   37  704k      0   109k  0:00:16  0:00:06  0:00:10  112k 48 1853k    0     0   48  896k      0   120k  0:00:15  0:00:07  0:00:08  118k 53 1853k    0     0   53  992k      0   114k  0:00:16  0:00:08  0:00:08   97k 65 1853k    0     0   65 1216k      0   128k  0:00:14  0:00:09  0:00:05  141k 70 1853k    0     0   70 1312k      0   122k  0:00:15  0:00:10  0:00:05  145k 81 1853k    0     0   81 1504k      0   131k  0:00:14  0:00:11  0:00:03  159k 90 1853k    0     0   90 1680k      0   135k  0:00:13  0:00:12  0:00:01  156k* We are completely uploaded and fine
[apply] 100 1853k    0     0  100 1853k      0   128k  0:00:14  0:00:14 --:--:--  150k
[apply] < HTTP/1.1 400 Bad Request< Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:22 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1426
[apply] < 
[apply] { [55 bytes data]
[apply] 
[apply] 100 1853k    0    44  100 1853k      2   125k  0:00:14  0:00:14 --:--:--  118k100 1853k    0    44  100 1853k      2   125k  0:00:14  0:00:14 --:--:--  131k* Connection #0 to host api.bintray.com left intact
[apply] {"message":"Failed to resolve package name"}
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 75.126.118.184...
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to api.bintray.com (75.126.118.184) port 443 (#0)* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[apply] * Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./plugins/com.googlecode.cppcheclipse.core_1.1.0.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 62848
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [16384 bytes data]
[apply] * We are completely uploaded and fine
[apply] < HTTP/1.1 400 Bad Request
[apply] < Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:24 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1425
[apply] < 
[apply] { [55 bytes data]
[apply] 
[apply] 100 62892    0    44  100 62848     25  36154  0:00:01  0:00:01 --:--:-- 36140100 62892    0    44  100 62848     25  36151  0:00:01  0:00:01 --:--:-- 36140* Connection #0 to host api.bintray.com left intact
[apply] {"message":"Failed to resolve package name"}
[apply]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[apply]                                  Dload  Upload   Total   Spent    Left  Speed
[apply] 
[apply]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 75.126.118.184...* Connected to api.bintray.com (75.126.118.184) port 443 (#0)
[apply] * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[apply] * Server certificate: *.bintray.com
[apply] * Server certificate: GeoTrust SSL CA - G3
[apply] * Server certificate: GeoTrust Global CA
[apply] * Server auth using Basic with user 'kwin'
[apply] > PUT /content/cppcheclipse/releases/releases/1.1.0./plugins/com.googlecode.cppcheclipse.ui_1.1.0.jar;bt_package=releases;bt_version=1.1.0.;publish=1 HTTP/1.1
[apply] > Host: api.bintray.com
[apply] > Authorization: Basic <removed>
[apply] > User-Agent: curl/7.43.0
[apply] > Accept: */*
[apply] > Content-Length: 131363
[apply] > Expect: 100-continue
[apply] > 
[apply] < HTTP/1.1 100 Continue
[apply] } [16384 bytes data]
[apply] * We are completely uploaded and fine
[apply] 
[apply] 100  128k    0     0  100  128k      0   127k  0:00:01  0:00:01 --:--:--  127k
[apply] {"message":"Failed to resolve package name"}< HTTP/1.1 400 Bad Request< Server: nginx
[apply] < Date: Sun, 29 May 2016 17:55:27 GMT
[apply] < Content-Type: application/json
[apply] < Transfer-Encoding: chunked
[apply] < Connection: keep-alive
[apply] < X-RateLimit-Limit: 1440
[apply] < X-RateLimit-Remaining: 1424
[apply] < 
[apply] { [55 bytes data]

The repository at https://bintray.com/cppcheclipse/releases is already created though (of type generic). Is any more setup work necessary at bintray to make this succeed?

"releases" is the package name which is part of a bintray repository. In your case you need to create the repository "cppcheclipse" and in that repository create the package "releases"

kwin commented

Thanks a lot for that. This was not obvious to me when reading http://www.lorenzobettini.it/2016/02/publish-an-eclipse-p2-composite-repository-on-bintray (section "Directory Structure"). Maybe you can add a hint there.