Hey there!
For about three days now I’ve been trying to solve this issue I’ve been getting with installing Screenly OSE onto my Raspberry Pi 3 using Balena Cloud (latest build).
i gave looked at almost every forum that exists with no luck. I’ve tried different versions of balena cloud and it still doesn’t work. These are the errors I’ve been getting:
Some services failed to build:
[Error] Service: screenly-server
[Error] Error: The command ‘/bin/sh -c rm /etc/nginx/sites-enabled/default’ returned a non-zero code: 1
[Error] Service: screenly-viewer
[Error] Error: The command ‘/bin/sh -c pip install -U -r /tmp/requirements.txt’ returned a non-zero code: 1
[Error] Service: screenly-websocket
[Error] Error: The command ‘/bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt’ returned a non-zero code: 1
[Error] Service: screenly-celery
[Error] Error: The command ‘/bin/sh -c pip install -U -r /tmp/requirements.txt’ returned a non-zero code: 1
[Info] Built on arm02
[Error] Not deploying release.
Looks like it is an issue while building your compose file as I can see there are many errors here: The command '/bin/sh -c rm /etc/nginx/sites-enabled/default' returned a non-zero code, The command '/bin/sh -c pip install -U -r /tmp/requirements.txt' returned a non-zero code: 1 or [Error] Service: screenly-celery [Error] Error: The command '/bin/sh -c pip install -U -r /tmp/requirements.txt' returned a non-zero code: 1. Do you have this issue while building it locally?
Some light googling later - this feels like an issue with python/pip. Can you add RUN pip install -U setuptools to your dockerfile. This will update setuptools to the latest version.
Also what version of the docker-compose are you using from Screenly? I see a demo and a dev version of the .yml in the screenly repo. Have you tried the others?
Hey guys - Viktor from Screenly here. Basically, we’re midst a major refactoring of OSE. It’s long overdue and will add support for Pi 4, along with major changes to the build flow. You can check out the experimental branch right now, but note that it is under active development and may break.
Sorry but im SUPER new to all this and might need small steps explained haha.
Which dockerfile am i adding the RUN to? and also I think I’m using version two, and not sure how i would try the others.
Just as a heads-up, if anyone wants to help with this, we’re tracking the work here.
There are some sexy stuff going on in #1429 that will likely help a lot of other people who are using QT on Balena in the future. The goal is to generate QT tarballs for all supported Raspberry Pi where hardware acceleration is supported (and working inside Docker containers).
I can confirm I have just tested this on a balenaFin using CM3 and it builds and runs successfully. For some reason the “deploy with balena” button is not working but I am looking into that now.
Ok so it was an issue with my balena.yml file with passing the dtparam as a string…
Failed to fetch application configuration: bad indentation of a sequence entry at line 14, column 46:
... OST_CONFIG_dtparam: "i2c_arm=on","spi=on","audio=on","vc4-kms-v3d"
Have submitted a PR to @vpetersson and once fixed deploy with balena button should work in that repo.