balena-os / balenaos-in-container

Run balenaOS as a docker container
https://www.balena.io/os/
Apache License 2.0
49 stars 14 forks source link

balenaos container starts but with a few lingering errors #30

Open saket424 opened 4 years ago

saket424 commented 4 years ago
         Starting Resin init service...
[  OK  ] Started OS configuration update service.
         Starting Hostname Service...
[  OK  ] Started DNS forwarder and DHCP server.
         Starting Balena Application Container Engine...
         Starting Resin proxy configuration service...
[FAILED] Failed to start Resin init service.
See 'systemctl status resin-init.service' for details.
[  OK  ] Started Hostname Service.
[  OK  ] Started Resin proxy configuration service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Balena Application Container Engine.
         Starting Balena supervisor...
[  OK  ] Started Balena supervisor.
[  OK  ] Started Balena supervisor updater.

[ TIME ] Timed out waiting for device /dev/ttyS0.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
bash-4.4# systemctl status resin-init.service
● resin-init.service - Resin init service
   Loaded: loaded (/lib/systemd/system/resin-init.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-05-15 13:13:43 UTC; 2min 39s ago
  Process: 258 ExecStart=/bin/bash /usr/bin/resin-init (code=exited, status=123)
 Main PID: 258 (code=exited, status=123)

May 15 13:13:43 6fca902 bash[258]: Board specific initialization...
May 15 13:13:43 6fca902 bash[258]: lsblk: /dev/sda3[/var/snap/docker/common/var-lib-docker/volumes/balena-boot-devalien15/_data]: not a block device
May 15 13:13:43 6fca902 systemd[1]: resin-init.service: Main process exited, code=exited, status=123/n/a
May 15 13:13:43 6fca902 systemd[1]: resin-init.service: Failed with result 'exit-code'.
May 15 13:13:43 6fca902 systemd[1]: Failed to start Resin init service.
bash-4.4# 

This is the first time I am attempting to run this on my linux laptop -- are these critical errors?

roman-mazur commented 4 years ago

Hi @saket424 Thanks for opening the issue. Would you also give an example of how you start the container (the command line)? Information on what OS version you use on your laptop will also be helpful.

saket424 commented 4 years ago

Hi @roman-mazur

I saw the above output when i started the container in this manner anand@Alienware15:~/balena-stuff/balenaos-in-container$ ./balenaos-in-container.sh --image resin/resinos:2.48.0_rev3.dev-intel-nuc --id devalien15 -c conf/FirstNUCapp.config.json

I got similar serial port errors even when i tried on a raspberry pi4

./balenaos-in-container.sh --image resin/resinos:2.47.0_rev1.dev-raspberrypi3 --id devrack9 -c conf/Firstarmv7app.config.json

TIME ] Timed out waiting for device /dev/serial1. [DEPEND] Dependency failed for Conf…ooth Modems connected by UART. [ TIME ] Timed out waiting for device /dev/serial0. [DEPEND] Dependency failed for Serial Getty on serial0.

What exactly is it trying to open the serial device for?