Some services failed to build

Same problem here. I try to change “FROM resin/%%RESIN_MACHINE_NAME%%-debian” to “FROM balenalib/%%RESIN_MACHINE_NAME%%-debian” in Dockerfile.template and it run the container in balena but doesn’t work

Replying to my own thread - I have looked at this again and all is working great.

I’m not sure if it was the screenly OSE update or the balnea.io updates or both but it’s all good now.

There’s a blog post on balnea.io website which works if you step through it:
https://www.balena.io/blog/deploy-free-digital-signage-software-screenly-ose/

I am running into a similar thing on a Raspberry Pi 3 Model 3+. I have been trying different things for two days with not luck.

Any help would be appreciated.

@welias14
Which Dockerfile are you using to build your image?

I am having the same issue on a pi 3+ and I’m a noob. I am using the Dockerfile.celery.template within the docker folder. I’ve copied it (and renamed) as Dockerfile.template in the main repository folder. Is that the correct way to do it? This is the error I get.

[screenly-celery]     Package python-imaging is not available, but is referred to by another package.
[screenly-celery]     This may mean that the package is missing, has been obsoleted, or
[screenly-celery]     is only available from another source
[screenly-celery]     However the following packages replace it:
[screenly-celery]       python-pil
[screenly-celery]     E: Package 'python-imaging' has no installation candidate
[screenly-celery]
[screenly-celery]     Removing intermediate container 0799b6d6ed42
[screenly-celery]     The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         net-tools         omxplayer         psmisc         python-dev         python-gobject         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3 &&     apt-get clean' returned a non-zero code: 100
[screenly-viewer]     Fetched 8744 kB in 7s (1136 kB/s)
[screenly-viewer]     Reading package lists...
[screenly-server]     Fetched 8744 kB in 10s (869 kB/s)
[screenly-server]     Reading package lists...
[screenly-viewer]     Reading package lists...
[screenly-server]     Reading package lists...
[screenly-viewer]     Building dependency tree...
[screenly-viewer]     Reading state information...
[screenly-viewer]     E: Unable to locate package omxplayer
[screenly-viewer]     E: Unable to locate package libraspberrypi0
[screenly-viewer]
[screenly-viewer]     Removing intermediate container 48232d4dc9d0
[screenly-viewer]     The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         matchbox         net-tools         omxplayer         psmisc         python-dev         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3         uzbl         x11-xserver-utils         xserver-xorg &&     apt-get clean' returned a non-zero code: 100
[screenly-server]     Building dependency tree...
[screenly-server]     Reading state information...
[screenly-server]     E: Unable to locate package omxplayer
[screenly-server]     E: Unable to locate package libraspberrypi0
[screenly-server]
[screenly-server]     Removing intermediate container 3103a637dfd4
[screenly-server]     The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         lsb-release         net-tools         nginx-light         omxplayer         psmisc         python-dev         python-gobject         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3 &&     apt-get clean' returned a non-zero code: 100
[Info]                Uploading images
[Success]             Successfully uploaded images
[Error]               Some services failed to build:
[Error]                 Service: screenly-server
[Error]                   Error: The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         lsb-release         net-tools         nginx-light         omxplayer         psmisc         python-dev         python-gobject         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3 &&     apt-get clean' returned a non-zero code: 100
[Error]                 Service: screenly-viewer
[Error]                   Error: The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         matchbox         net-tools         omxplayer         psmisc         python-dev         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3         uzbl         x11-xserver-utils         xserver-xorg &&     apt-get clean' returned a non-zero code: 100
[Error]                 Service: screenly-celery
[Error]                   Error: The command '/bin/sh -c apt-get update &&     apt-get -y install         build-essential         curl         git-core         libffi-dev         libssl-dev         net-tools         omxplayer         psmisc         python-dev         python-gobject         python-imaging         python-netifaces         python-simplejson         libraspberrypi0         ifupdown         sqlite3 &&     apt-get clean' returned a non-zero code: 100
[Info]                Built on arm03
[Error]               Not deploying release.

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

@fpinto
why are you renaming the dockerfile celery template?
did you follow these instructions?