zcli push problem

Hello i need help about my problem, when i enter "zcli push" i have this error "last command has finished with error, identifier for communication with our support: [a token i deleted in discord]"
38 Replies
Aleš
Aleš3d ago
What cli version you have? zcli version and is there any pipeline log in the app?
Gojitada
GojitadaOP3d ago
v1.0.26
Aleš
Aleš3d ago
try updating to latest (v1.0.42), which output pipeline logs directly into your terminal.. otherwise look at notifications in the app to find out what actually failed
Gojitada
GojitadaOP3d ago
with this command ? irm https://zerops.io/zcli/install.ps1 | iex
Michal Saloň
Michal Saloň3d ago
Depends how you had it installed before and what is your platform (windows vs linux/mac). If you installed it manually before and placed it in some custom directory, first remove the old binary and then run our install script.
Gojitada
GojitadaOP3d ago
i'm in windows and i've installed
Michal Saloň
Michal Saloň3d ago
If you call where zcli in command line, what path do you see?
Gojitada
GojitadaOP3d ago
i have nothing lmao
Michal Saloň
Michal Saloň3d ago
but you can call zcli version and it returns the version?
Gojitada
GojitadaOP3d ago
yes v1.0.26
Michal Saloň
Michal Saloň3d ago
did you, perchance, install it using npm? Basically, if you installed it before using your install.ps1 or install.sh, you can just run those again and it will install a new version. If you installed it before manually and added it manually to PATH, our install script would install it, but windows could still use the manually installed version if its path is defined first in Path env variable.
No description
Aleš
Aleš3d ago
and if you installed it with npm just do it again sudo npm i -g @zerops/zcli
Gojitada
GojitadaOP3d ago
but im on windows not linux
Aleš
Aleš3d ago
without sudo then essentially just do the same thing you did the first time you installed the CLI
Michal Saloň
Michal Saloň3d ago
If you have NPM you can check %AppData%\npm dir if zcli binary is in there. If it is, then you installed it via NPM before.
Gojitada
GojitadaOP3d ago
That's it, it works, thank you
Aleš
Aleš3d ago
just confirm with zcli version that it has the latest version
Gojitada
GojitadaOP3d ago
zcli version v1.0.42
Aleš
Aleš3d ago
good, now it should output logs as the app builds
Gojitada
GojitadaOP3d ago
but i have another problem in application
✗ ERR Application deploy failed
✗ ERR last command has finished with error, identifier for communication with our support:
✗ ERR Application deploy failed
✗ ERR last command has finished with error, identifier for communication with our support:
when i push a new time
Aleš
Aleš3d ago
that likely means the app was built, but failed to start, again, you should see detailed logs in the actual Zerops app (app.zerops.io) if you can post a screenshot of the pipeline dialog it would be helpful
Michal Saloň
Michal Saloň3d ago
You need to look at the build logs in the app, your build commands have some problems.
No description
Gojitada
GojitadaOP3d ago
that ?
No description
Aleš
Aleš3d ago
yes, when you click "open build log" you can see what actually failed
Gojitada
GojitadaOP3d ago
so i have npm's problem right ?
Aleš
Aleš3d ago
if it's the same thing @Michal Saloň posted then it means your package.json doesn't even have build script
Michal Saloň
Michal Saloň3d ago
Yes, I posted the screen of the latest failed build pipeline for his stack.
Aleš
Aleš3d ago
alright, then it has nothing to do with Zerops or CLI @nermal feel free to help, looks like another autobumper thing
Gojitada
GojitadaOP3d ago
okay it's in my code ?
Aleš
Aleš3d ago
yes you are running npm run build command, but you package.json doesn't have build script defined at all how would you build and run the app locally? just do the same in zerops.yml buildCommands and start
Gojitada
GojitadaOP3d ago
i enter buildsCommands data manually or i add in pach=kage .json ?
Aleš
Aleš3d ago
buildCommands are what Zerops executes to build your code, package.json's scripts are just aliases to normal commands, eg. you could do
buildCommands:
- touch foobar.txt
buildCommands:
- touch foobar.txt
or you could do
// package.json
{
"scripts": {
"foobar": "touch foobar.txt"
}
}

// zerops.yml
buildCommands:
- npm run foobar
// package.json
{
"scripts": {
"foobar": "touch foobar.txt"
}
}

// zerops.yml
buildCommands:
- npm run foobar
Gojitada
GojitadaOP3d ago
// package.json

{
"name": "discordautobump",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"discord.js-selfbot-v13": "^3.1.4",
"dotenv": "^10.0.0",
"node": "^18.20.5"
}
}


// zerops.yml

buildCommands:
- npm i
- npm run build
// package.json

{
"name": "discordautobump",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"discord.js-selfbot-v13": "^3.1.4",
"dotenv": "^10.0.0",
"node": "^18.20.5"
}
}


// zerops.yml

buildCommands:
- npm i
- npm run build
like that ?
Aleš
Aleš3d ago
in your case it seems like there's no need for build at all, so just remove npm run build from buildCommands altogether
Gojitada
GojitadaOP3d ago
okay thats work thank you very much now im going to fix my code
nermal
nermal2d ago
hmmmm alright
Aleš
Aleš2d ago
we figured it out the tutorial probably has unncesary npm run build
nermal
nermal2d ago
oh sorry for the late reply 😓

Did you find this page helpful?