Issues Pushing to Balena Master

I was trying to push the Balena Cam app to my Raspberry Pi and I got the following error,

Counting objects: 526, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (264/264), done.
Writing objects: 100% (526/526), 167.90 KiB | 83.95 MiB/s, done.
Total 526 (delta 255), reused 526 (delta 255)
remote: Resolving deltas: 100% (255/255), done.

[Info]        Starting build for guava, user gh_dmiltiades
[Info]        Dashboard link: https://dashboard.balena-cloud.com/apps/1461584/devices
[Info]        Building on arm03
[Info]        Pulling previous images for caching purposes...
[Success]     Successfully pulled cache images
[balena-cam]  Step 1/9 : FROM balenalib/raspberrypi3-64-debian:stretch
[balena-cam]   ---> cc2d2ddcb4f5
[balena-cam]  Step 2/9 : RUN apt-get update &&   apt-get install -yq     gstreamer-1.0     v4l-utils     libopus-dev     libvpx-dev     python3     python3-dev     python3-pip     python3-setuptools     libsrtp2-dev     libopencv-dev     libatlas3-base     libjasper-dev     libilmbase12     libopenexr22     libavformat-dev     libswscale-dev     libqtgui4     libqt4-test     libavdevice-dev     libavfilter-dev     libavcodec-dev   && apt-get clean && rm -rf /var/lib/apt/lists/*
[balena-cam]   ---> Running in 02233b4152b0
[balena-cam]  Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
[balena-cam]  Ign:2 http://deb.debian.org/debian stretch InRelease
[balena-cam]  Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
[balena-cam]  Get:4 http://deb.debian.org/debian stretch Release [118 kB]
[balena-cam]  Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
[balena-cam]  Get:6 http://security.debian.org/debian-security stretch/updates/main arm64 Packages [479 kB]
[balena-cam]  Get:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages [27.3 kB]
[balena-cam]  Get:8 http://deb.debian.org/debian stretch/main arm64 Packages [6924 kB]
[balena-cam]  Fetched 7737 kB in 1s (4255 kB/s)
[balena-cam]  Reading package lists...
[balena-cam]  Reading package lists...
[balena-cam]  Building dependency tree...
[balena-cam]  Reading state information...
[balena-cam]  E: Unable to locate package libjasper-dev
[balena-cam]  
[balena-cam]  Removing intermediate container 02233b4152b0
[Info]        Uploading images
[balena-cam]  The command '/bin/sh -c apt-get update &&   apt-get install -yq     gstreamer-1.0     v4l-utils     libopus-dev     libvpx-dev     python3     python3-dev     python3-pip     python3-setuptools     libsrtp2-dev     libopencv-dev     libatlas3-base     libjasper-dev     libilmbase12     libopenexr22     libavformat-dev     libswscale-dev     libqtgui4     libqt4-test     libavdevice-dev     libavfilter-dev     libavcodec-dev   && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
[Success]     Successfully uploaded images
[Error]       Some services failed to build:
[Error]         Service: balena-cam
[Error]           Error: The command '/bin/sh -c apt-get update &&   apt-get install -yq     gstreamer-1.0     v4l-utils     libopus-dev     libvpx-dev     python3     python3-dev     python3-pip     python3-setuptools     libsrtp2-dev     libopencv-dev     libatlas3-base     libjasper-dev     libilmbase12     libopenexr22     libavformat-dev     libswscale-dev     libqtgui4     libqt4-test     libavdevice-dev     libavfilter-dev     libavcodec-dev   && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
[Error]       Not deploying release.

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

any idea whats wrong?

The key error in the logs seems to be:

[balena-cam] E: Unable to locate package libjasper-dev

I can reproduce it on my laptop with standard docker:

$ docker run -it debian:stretch
$ apt-get update && apt-get install -yq libjasper-dev
...
E: Unable to locate package libjasper-dev

It sounds like the libjasper-dev is no longer available in the Debian repos.

Next: trying to find a solution…

Hello there,

The maintainer of the balenaCam project has looked into this and made changes to ensure this now works (the Jessie sources have been added as well, so the libjasper-dev package is now available).

You should be able to pull the changes from the repository and build correctly. Please let us know if you have any further issues.

Best regards, Heds