Questions tagged [balena]

Questions related to Balena.io (formerly Resin) IOT fleet management software.

19 questions
3
votes
2 answers

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xtrlkujj/pyaudio/

I am trying to balena push a Dockerfile. After several adjustments of my code, it still comes with error and unable to be pushed. My code is shown: FROM balenalib/fincm3-debian-python:latest # RUN install_packages git RUN apt-get update RUN…
夏思阳
  • 57
  • 1
  • 4
  • 10
1
vote
3 answers

Balena-Enginer (docker) error while copying file to container

I have created a balena-engine container. ID of the container is fa2c14de228d. When I am copying a file, say some text file from host to a container with id fa2c14de228d, I am having the following error. root@axcf2152:/opt# balena-engine cp test.txt…
1
vote
1 answer

Issues with installing librealsense with Balena. Unable to locate file after make install?

I've been trying to setup librealsense on my Raspberry Pi4 using Balena. My docker file looks like: FROM balenalib/raspberrypi3-ubuntu:xenial-build RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y RUN sudo apt-get…
ddiddi
  • 11
  • 1
1
vote
0 answers

Populating and versioning docker named volume, used as persistent storage with balena.io

I have a collection of binary files, which need to be shared by 2 services specified in docker-compose. I need the data to persist on the host OS, but I also need to update it once in a while with new version. Using named volumes I can achieve this…
alexm
  • 460
  • 5
  • 14
0
votes
0 answers

balena does it automatically restart the service

I trying to compile grpcio inside the container. However I have noticed occasionally the container will restart itself. Therefore I loose all the progress I have made. I was wondering is it normal for the service to be periodically restarted? Also…
Ageis
  • 2,221
  • 4
  • 22
  • 34
0
votes
1 answer

dd is writing my image wrong resulting in kernel panic

I'm using dd to flash my buildroot image to an eMMC of my SBC. eMMC is connected as mass storage. The image is created with genimage and have some 'holes' in it. genimage.cfg image sdcard.img { hdimage { } partition u-boot { …
0
votes
0 answers

Is it possible to use Avahi that is running on Host and run a service that is in a container?

I have multi-app containers, one is responsible for creating the xml service file while the Avahi-daemon itself is in thee Host. I need the container (which is in C# but it is possible to use python too) to be the one to create the xml since there…
s_s123
  • 1
0
votes
1 answer

Balena API device registration returns "API key must be used for registering"

When attempting to register a new device via the /device/register endpoint the error message "API key must be used for registering" is returned.
Jon Wood
  • 2,589
  • 1
  • 20
  • 17
0
votes
0 answers

Can balena pull images from https://hub.docker.com?

I am trying to create a balena service as: docker-compose.yml: version: "2.1" services: otbr-chip: image: connectedhomeip/otbr:sve2 restart: always network_mode: host privileged: true devices: -…
maverick
  • 31
  • 4
0
votes
0 answers

Curl container command into c#

I'm trying to pass the following restart command that will run in a container, into a C# command, but I'm not sure how to do it, help please: curl --header "Content-Type:application/json"…
Yuki1112
  • 365
  • 2
  • 12
0
votes
0 answers

Grpc server and client work locally but not on different containers python - StatusCode.UNAVAILABLE

I have a client grpc and a server grpc that when I run them with python on my laptop, work and comminute, however whenever I upload the code into balena (linux cloud), I get an error: verStatus failed: <_InactiveRpcError of RPC that terminated…
Yuki1112
  • 365
  • 2
  • 12
0
votes
1 answer

BalenaOS use Raspberry Pi Compute Module 4 IO board's Real-Time Clock inside container

I'm trying to use the CM4 IO board's Real-Time Clock (RTC) to persist datetime changes from within a docker container, so whenever the device reboots, it remembers the newly set datetime. (By default it syncs via chrony.) I can update the system's…
Nico V
  • 107
  • 1
  • 9
0
votes
0 answers

Is HTTPS secure if I always send the same message?

I set up a Raspberry Pi to communicate with balena.io. In the Balena dashboard, I activated the public URL for my device. The Raspberry Pi is running nodejs and listens on port 80 for a post request. The Raspberry's only job is to open a door. Now,…
Moritz
  • 41
  • 1
  • 5
0
votes
1 answer

Python ctypes can not locat existing lib in Docker on Balena

I am trying to bind a compiled C-library to my python code with ctypes. I have compiled my library and it works well on my desktop. However, when I try to run the same code on the Balena platform in a Docker container, it can not locate my library,…
gedemagt
  • 657
  • 1
  • 9
  • 22
0
votes
1 answer

Building with balena-cli (balena build) on travis-ci

I’ve been trying to setup a CI environment on travis for my balena builds. I’ve managed to install balena-cli in travis’ environment, but cannot seem to build with a qemu environment. I’m getting this log with the --debug flag [debug] new…
MGassend
  • 83
  • 2
  • 9
1
2