Hello !
I’m trying to host Debian packages on my gitlab without success.
I tried with gitlab 15.4.1-ee & 15.4.2 with the same results : upload seems ok but package isn’t present. The same behaviour and issue described here : Debian repository - #5 by pmhahn
I’ve created a distribution (called “stable”) and uploaded the package :
Package stays in status incoming. Here’ what I did :
$ curl "http://localhost/api/v4/projects/2/debian_distributions?codename=stable" --request POST --header "PRIVATE-TOKEN: <TOKEN>" -I
HTTP/1.1 201 Created
$ curl "http://localhost/api/v4/projects/2/debian_distributions/stable" --request GET --header "PRIVATE-TOKEN: <TOKEN>" | jq .
{
"id": 3,
"codename": "stable",
"suite": null,
"origin": null,
"label": null,
"version": null,
"description": null,
"valid_time_duration_seconds": null,
"components": [
"main"
],
"architectures": [
"all",
"amd64"
]
}
$ file varnish.deb
varnish.deb: Debian binary package (format 2.0), with control.tar.zs, data compression zst
$ curl --request PUT \
--upload-file ./varnish.deb \
--header "PRIVATE-TOKEN: <TOKEN>" \
"http://<USER_TOKEN>:<TOKEN>@localhost/api/v4/projects/2/packages/debian/" -I
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
No packages listed :
$ curl http://localhost/api/v4/projects/2/packages --request GET --header "PRIVATE-TOKEN: <TOKEN>"
[]
But if I try with an id :
$ curl http://localhost/api/v4/projects/2/packages/1 --request GET --header "PRIVATE-TOKEN: <TOKEN>" | jq .
{
"id": 1,
"name": "incoming",
"version": null,
"package_type": "debian",
"status": "default",
"_links": {
"web_path": "/gitlab-instance-377ddb81/debian_repo/-/packages/1",
"delete_api_path": "http://my.fqdn/api/v4/projects/2/packages/1"
},
"created_at": "2022-10-17T12:27:38.824Z",
"last_downloaded_at": null,
"tags": [],
"versions": []
}
I tried with dput too, with no more success :
$ dput --config=dput.cf --unchecked --no-upload-log gitlab ./varnish.changes
Uploading varnish using http to gitlab (host: debian_repo:<TOKEN>@localhost; directory: /api/v4/projects/2/packages/debian)
running allowed-distribution: check whether a local profile permits uploads to the target distribution
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
Not checking GPG signature due to allow_unsigned_uploads being set.
Not writing upload log upon request
Uploading varnish_6.0.10.3.dsc
Uploading varnish_6.0.10.3.tar.gz
Uploading varnish.changes
Did some of you already meet this issue ?