Z
Zerops2mo ago
Gojitada

push problem

Hello I have a problem when i enter
zcli push
zcli push
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
nermal
nermal2mo ago
I think a build command in your build runtime failed Can you check on your service? Also what are you trying to deploy?
Aleš
Aleš2mo ago
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
Gojitada
GojitadaOP2mo ago
No description
Aleš
Aleš2mo ago
does you package.json include build script?
Aleš
Aleš2mo ago
e.g.
No description
Gojitada
GojitadaOP2mo ago
{ "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" } }
Aleš
Aleš2mo ago
then you don't need build at all your zerops.yml should look something like this
zerops:
- setup: api
build:
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- ./
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: npm start
zerops:
- setup: api
build:
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- ./
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: npm start
just use correct port
Gojitada
GojitadaOP2mo ago
✗ ERR Push failed ✗ ERR last command has finished with error, identifier for communication with our support: (code)
Aleš
Aleš2mo ago
send me the error from the pipeline again
Aleš
Aleš2mo ago
does the name in setup match name of the service you have in Zerops?
No description
Gojitada
GojitadaOP2mo ago
yes i changed don't worry
Gojitada
GojitadaOP2mo ago
No description
No description
Aleš
Aleš2mo ago
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 time
Gojitada
GojitadaOP2mo ago
i'm in windows your code isn't for linux ?
Aleš
Aleš2mo ago
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 somehow
Gojitada
GojitadaOP2mo ago
i copied that
No description
Aleš
Aleš2mo ago
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/1306722854938873897
Gojitada
GojitadaOP2mo ago
ok i will retry i have same error
Aleš
Aleš2mo ago
nope, now it says
[BUILD ERROR] target 'dist' specified in deployFiles field is missing
[BUILD ERROR] target 'dist' specified in deployFiles field is missing
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
deployFiles:
- dist
- package.json
deployFiles:
- dist
- package.json
and you don't have any dist folder at all
Gojitada
GojitadaOP2mo ago
yes 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
Aleš
Aleš2mo ago
yea, exactly 🙂
Aleš
Aleš2mo ago
the one I sent you has
deployFiles:
- ./
deployFiles:
- ./
No description
Gojitada
GojitadaOP2mo ago
I will check all that again i failed again i don't undestand
Aleš
Aleš2mo ago
your zerops.yml still contains the wrong deployFiles
Aleš
Aleš2mo ago
you can see when you click this button in pipeline detail
No description
Aleš
Aleš2mo ago
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
Gojitada
GojitadaOP2mo ago
build:
os: alpine
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- dist
- package.json
run:
os: alpine
base: nodejs@20
start: npm start
ports:
- port: 3000
httpSupport: true
build:
os: alpine
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- dist
- package.json
run:
os: alpine
base: nodejs@20
start: npm start
ports:
- port: 3000
httpSupport: true
Aleš
Aleš2mo ago
yes, you still have it wrong
Aleš
Aleš2mo ago
No description
Aleš
Aleš2mo ago
this part needs to have this
No description
Gojitada
GojitadaOP2mo ago
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
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
` Like that
Aleš
Aleš2mo ago
no
zerops:
- setup: autobump
build:
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- ./
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: npm start
zerops:
- setup: autobump
build:
base: nodejs@20
buildCommands:
- npm i
deployFiles:
- ./
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: npm start
Aleš
Aleš2mo ago
No description
Aleš
Aleš2mo ago
this part is wrong
Aleš
Aleš2mo ago
it needs to be this
No description
Gojitada
GojitadaOP2mo ago
aaaa okay i understant im sorry it's finally work thank you very much

Did you find this page helpful?