# Some services failed to build

**URL:** <https://forums.screenly.io/t/some-services-failed-to-build/55>\
**Category:** Balena\
**Created:** [March 28, 2019, 7:33pm UTC](https://forums.screenly.io/t/some-services-failed-to-build/55 "2019-03-28T19:33:17Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![cegomez](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/cegomez/32/56_2.png) [@cegomez](https://forums.screenly.io/u/cegomez)\
**Post date:** [April 22, 2019, 3:54pm UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/21 "2019-04-22T15:54:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Paul](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/paul/32/70_2.png) [@Paul](https://forums.screenly.io/u/Paul)\
**Post date:** [June 28, 2019, 8:41am UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/22 "2019-06-28T08:41:58Z")

</div>

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](http://balnea.io) updates or both but it’s all good now.

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

---

<div class="post-metadata">

**Author:** ![welias14](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@welias14](https://forums.screenly.io/u/welias14)\
**Post date:** [February 7, 2020, 2:32am UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/23 "2020-02-07T02:32:13Z")

</div>

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.

 ![Screen Shot 2020-02-06 at 9.30.10 PM](https://canada1.discourse-cdn.com/flex029/uploads/screenly/original/1X/bcd8ff7fa1a918b5a2bfdd40d70311b9edb7a77e.png)

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![ealmonte32](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/ealmonte32/32/228_2.png) [@ealmonte32](https://forums.screenly.io/u/ealmonte32)\
**Post date:** [February 9, 2020, 6:41am UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/24 "2020-02-09T06:41:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fpinto](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@fpinto](https://forums.screenly.io/u/fpinto)\
**Post date:** [February 11, 2020, 4:39pm UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/25 "2020-02-11T16:39:26Z")

</div>

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'
```

---

<div class="post-metadata">

**Author:** ![ealmonte32](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/ealmonte32/32/228_2.png) [@ealmonte32](https://forums.screenly.io/u/ealmonte32)\
**Post date:** [February 24, 2020, 1:38am UTC](https://forums.screenly.io/t/some-services-failed-to-build/55/26 "2020-02-24T01:38:37Z")

</div>

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

> **[It's a sign: build a remote controlled digital display with Screenly OSE and...](https://www.balena.io/blog/deploy-free-digital-signage-software-screenly-ose/)**
>
> Try this project to get up and running with a display you can control remotely to display photos, videos, dashboards, web pages, and digital signage. This tutorial was put together by the friendly folks at Screenly. They've recently updated their...

[Previous page](https://forums.screenly.io/t/some-services-failed-to-build/55.md?page=1)
