google / google/cloud-android-orchestration
Cvdr cannot create CVD from local artifacts
- Dominant language
- Go
- Stars
- 74
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
I [installed cvdr](https://github.com/google/cloud-android-orchestration/blob/main/docs/cvdr.md#download-cvdr) and [set up cloud orchestrator](https://github.com/google/cloud-android-orchestration/blob/main/scripts/on-premises/single-server/README.md#try-cloud-orchestrator) as described in the docs.
I want to create a CVD based on local artifacts but cvdr seems to fail to upload them correctly.
Artifacts used (taken from ci.android.com):
- [zip image](https://ci.android.com/builds/submitted/13625421/aosp_cf_x86_64_only_phone-userdebug/latest/aosp_cf_x86_64_only_phone-img-13625421.zip)
- [cvd host package](https://ci.android.com/builds/submitted/13625421/aosp_cf_x86_64_only_phone-userdebug/latest/cvd-host_package.tar.gz)
Im uploading the artifacts using `--local_cvd_host_pkg_src` and `--local_images_zip_src` and I get following error:
```shell
$ cvdr create --host= \
--local_cvd_host_pkg_src=./cvd-host_package.tar.gz \
--local_images_zip_src=./aosp_cf_x86_64_only_phone-img-13625421.zip
Uploading "cvd-host_package.tar.gz".................. Failed
failed to create cvd: failed uploading file chunk with status code "400 Bad Request". File "cvd-host_package.tar.gz", chunk number: 6, chunk total: 49
```
Logs from [cuttlefish_orchestration:latest](europe-docker.pkg.dev/android-cuttlefish-artifacts/cuttlefish-orchestration/cuttlefish-orchestration:latest) image during uploading:
```
2025/07/08 13:13:19 handling request(0xc0000ac300) started POST /userartifacts
2025/07/08 13:13:19 created new user artifact directory /var/lib/cuttlefish-common/user_artifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:19 handling request(0xc0000ac300) ended
2025/07/08 13:13:20 handling request(0xc0004c6400) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0004c6900) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0002b6100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0004c6c00) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0005b4200) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0005b4500) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0000ac600) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc000388100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc000440100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 request "PUT /userartifacts/tmp.xEIhgzpKAA" failed with error: Invalid chunk_number value: "": strconv.Atoi: parsing "": invalid syntax
2025/07/08 13:13:20 handling request(0xc0004c6400) ended
2025/07/08 13:13:20 handling request(0xc00026a100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc00026a500) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc000344100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 handling request(0xc0007c2100) started PUT /userartifacts/tmp.xEIhgzpKAA
2025/07/08 13:13:20 request "PUT /userartifacts/tmp.xEIhgzpKAA" failed with error: Invalid chunk_number value: "": strconv.Atoi: parsing "": invalid syntax
2025/07/08 13:13:20 handling request(0xc0004c6900) ended
2025/07/08 13:13:20 request "PUT /userartifacts/tmp.xEIhgzpKAA" failed with error: Invalid chunk_number value: "": strconv.Atoi: parsing "": invalid syntax
2025/07/08 13:13:20 handling request(0xc0005b4500) ended
[...]
```
Maybe it's important, but cuttlefish_orchestration:latest is using old version of cuttlefish. I tried to update to 1.13, but it does not work either.
```shell
$ apt search cuttlefish-
cuttlefish-base/bookworm,now 1.5.0.linaro137658 amd64 [installed]
Cuttlefish Android Virtual Device companion package
cuttlefish-common/bookworm 1.5.0.linaro137658 amd64
Cuttlefish Android Virtual Device companion package
cuttlefish-cvdremote/bookworm 0.2.0 amd64
CLI client for the Cloud Android Orchestration service.
cuttlefish-integration/bookworm 1.5.0.linaro137658 amd64
Utilities for Android cuttlefish devices in the cloud
cuttlefish-orchestration/bookworm,now 1.5.0.linaro137658 amd64 [installed]
Cuttlefish Android Virtual Device companion package
cuttlefish-user/bookworm,now 1.5.0.linaro137658 amd64 [installed]
Cuttlefish Android Virtual Device companion package
```
Its also worth noting that it used to work with cvdr `0.2.0`. Maybe a new package was pushed to apt repo without version update ? Let me know if the provided info was helpful and you can reproduce the issue.
Contributor guide
Assessment
This issue has not been assessed yet.