Z
Zerops3w ago
Puub

Package upload failed (exit status 128)

I get this error when I try to zcli push to a project:
...@...:~/Projects/temp$ zcli push
Using config file: /home/.../.config/zerops/.zcli.yml
INFO Selected project: Temp
INFO Selected service: alpine
INFO Creating package
INFO File zerops.yml found. Path: /home/.../Projects/temp/zerops.yml.
Method Do error: Put "https://api.app-prg1.zerops.io/api/rest/public/app-version/.../upload": exit status 128
ERR Package upload failed
ERR exit status 128
...@...:~/Projects/temp$
...@...:~/Projects/temp$ zcli push
Using config file: /home/.../.config/zerops/.zcli.yml
INFO Selected project: Temp
INFO Selected service: alpine
INFO Creating package
INFO File zerops.yml found. Path: /home/.../Projects/temp/zerops.yml.
Method Do error: Put "https://api.app-prg1.zerops.io/api/rest/public/app-version/.../upload": exit status 128
ERR Package upload failed
ERR exit status 128
...@...:~/Projects/temp$
3 Replies
Aleš
Aleš3w ago
@Backend wait, is that the uncommited thing? @Puub do you have any commits at all? people keep bumping on this issue, me included, can't we have a fallback that will just upload everything when there are no commits @Michal ?
Puub
PuubOP3w ago
Aah! Yes indeed it was not initialized with Git yet. Thanks!
Michal Saloň
Michal Saloň7d ago
I forgot to mention it here, but we released v1.0.43 last week, which has checks if git is installed, repository is initialized, and has at least one commit. You should no longer get 128 in such cases. https://github.com/zeropsio/zcli/releases/tag/v1.0.43
GitHub
Release v1.0.43 · zeropsio/zcli
[v1.0.43] - 2025-04-18 Added --noGit flag to push command, which deploys contents of working dir as-is, without special git rules (.gitignore etc.) checks to push command whether git is installed ...

Did you find this page helpful?