jpmeijers / ttn-resin-gateway-rpi

81 stars 41 forks source link

git push fails to Balena #32

Open pe1mew opened 4 years ago

pe1mew commented 4 years ago

When running an update to Balena the following error occurred:

[main]     Step 4/15 : COPY dev dev
[main]      ---> 4397f0fe7985
[main]     Step 5/15 : RUN ./dev/build.sh
[main]      ---> Running in a89bb880d823
[main]     Cloning into 'lora_gateway'...
[main]
[main]     fatal: unable to access 'https://github.com/kersing/lora_gateway.git/': gnutls_handshake() failed: Error in the pull function.
[main]
[main]     Cloning lora_gateway failed.
[main]     Removing intermediate container a89bb880d823
[main]     The command '/bin/sh -c ./dev/build.sh' returned a non-zero code: 1
[Info]     Uploading images
[Success]  Successfully uploaded images
[Error]    Some services failed to build:
[Error]      Service: main
[Error]        Error: The command '/bin/sh -c ./dev/build.sh' returned a non-zero code: 1
[Info]     Built on arm03
[Error]    Not deploying release.

After another push this appears:

[main]     Step 10/15 : COPY --from=buildstep /opt/ttn-gateway/mp_pkt_fwd .
[main]     COPY failed: stat /var/lib/balenav6l/overlay2/8e06aaa8618addf653c5877eedca8afd23010d620baec35814550133d6af9817/merged/opt/ttn-gateway/mp_pkt_fwd: no such file or directory
[Info]     Uploading images
[Success]  Successfully uploaded images
[Error]    Some services failed to build:
[Error]      Service: main
[Error]        Error: COPY failed: stat /var/lib/balenav6l/overlay2/8e06aaa8618addf653c5877eedca8afd23010d620baec35814550133d6af9817/merged/opt/ttn-gateway/mp_pkt_fwd: no such file or directory
[Info]     Built on arm03
[Error]    Not deploying release.

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:remko/rpi1.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'remko@git.balena-cloud.com:remko/rpi1.git'