push problem
Hello I have a problem when i enter the upload works but at the end the push failed with this error:
last command has finished with error, identifier for communication with our support
36 Replies
I think a build command in your build runtime failed
Can you check on your service?
Also what are you trying to deploy?
you should see the error in the app.zerops.io GUI, the click notification icon and open pipeline detail
we really need to output link to log page when push fails + ideally show logs directly in cli..
cc @Backend
- zcli push should optionally (or alternatively --silent?) output build/prepare logs
- zcli push should support project (name) and service (hostname) parameters
- zcli push should display a link to the pipeline details in GUI at the start and on error (if the log output mode isn't enabled?)
- zcli push interactive mode - add a prompt for versionName (and maybe default to auto-increment? v1, v2, v3)
- offer to run Wireguard installation based on the OS
I've had this list for ages, maybe we should make public issues on github out of it @nermal, most are easy / reimplementing existing fcionality
does you package.json include
build
script?e.g.
{
"name": "test",
"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"
}
}
then you don't need build at all
your zerops.yml should look something like this
just use correct port
✗ ERR Push failed
✗ ERR last command has finished with error, identifier for communication with our support: (code)
send me the error from the pipeline again
does the name in
setup
match name of the service you have in Zerops?yes i changed don't worry
that looks like it's still using the old zerops.yml
do
cat zerops.yml
in your console / terminal / wsl / PowerShell
isn't it some old pipeline btw,
?
looking at the timei'm in windows
your code isn't for linux ?
hm yea, windows, doesn't have
cat
anyway, I think you've opened from pipeline detail
either that, or you have no saved the new zerops.yml somehowi copied that
yes, but your app does not even have
build
script in package.json, use the one I sent you here
https://discord.com/channels/735781031147208777/1306707311707947168/1306722854938873897ok i will retry
i have same error
nope, now it says
are you sure you copied the config I sent you?
https://discord.com/channels/735781031147208777/1306707311707947168/1306722854938873897
the problem now is that your zerops.yml includes
and you don't have any
dist
folder at allyes i swear
zerops:
- setup: autobump
build:
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- dist
- package.json
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: npm start
yea, exactly 🙂
the one I sent you has
I will check all that again
i failed again i don't undestand
your zerops.yml still contains the wrong
deployFiles
you can see when you click this button in pipeline detail
make you sure really saved the file with changes applied before running zcli push again
zcli doesn't cache anything, whatever is saved on your disk is used
yes, you still have it wrong
this part needs to have this
`
Like that
no
this part is wrong
it needs to be this
aaaa okay i understant im sorry
it's finally work thank you very much