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š2w ago
What cli version you have? zcli version and is there any pipeline log in the app?
Gojitada
GojitadaOP2w ago
v1.0.26
Aleš
Aleš2w 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
GojitadaOP2w ago
with this command ? irm https://zerops.io/zcli/install.ps1 | iex
Michal Saloň
Michal Saloň2w 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
GojitadaOP2w ago
i'm in windows and i've installed
Michal Saloň
Michal Saloň2w ago
If you call where zcli in command line, what path do you see?
Gojitada
GojitadaOP2w ago
i have nothing lmao
Michal Saloň
Michal Saloň2w ago
but you can call zcli version and it returns the version?
Gojitada
GojitadaOP2w ago
yes v1.0.26
Michal Saloň
Michal Saloň2w 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š2w ago
and if you installed it with npm just do it again sudo npm i -g @zerops/zcli
Gojitada
GojitadaOP2w ago
but im on windows not linux
Aleš
Aleš2w ago
without sudo then essentially just do the same thing you did the first time you installed the CLI
Michal Saloň
Michal Saloň2w 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
GojitadaOP2w ago
That's it, it works, thank you
Aleš
Aleš2w ago
just confirm with zcli version that it has the latest version
Gojitada
GojitadaOP2w ago
zcli version v1.0.42
Aleš
Aleš2w ago
good, now it should output logs as the app builds
Gojitada
GojitadaOP2w 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š2w 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ň2w ago
You need to look at the build logs in the app, your build commands have some problems.
No description
Gojitada
GojitadaOP2w ago
that ?
No description
Aleš
Aleš2w ago
yes, when you click "open build log" you can see what actually failed
Gojitada
GojitadaOP2w ago
so i have npm's problem right ?
Aleš
Aleš2w 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ň2w ago
Yes, I posted the screen of the latest failed build pipeline for his stack.
Aleš
Aleš2w ago
alright, then it has nothing to do with Zerops or CLI @nermal feel free to help, looks like another autobumper thing
Gojitada
GojitadaOP2w ago
okay it's in my code ?
Aleš
Aleš2w 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
GojitadaOP2w ago
i enter buildsCommands data manually or i add in pach=kage .json ?
Aleš
Aleš2w 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
GojitadaOP2w 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š2w 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
GojitadaOP2w ago
okay thats work thank you very much now im going to fix my code
nermal
nermal2w ago
hmmmm alright
Aleš
Aleš2w ago
we figured it out the tutorial probably has unncesary npm run build
nermal
nermal2w ago
oh sorry for the late reply 😓

Did you find this page helpful?