Raspberry Pi service exited

Hello,

I’ve deployed the Balena wpe project to my Raspberry Pi zero via Balena Cloud. The update process runs successful, thereafter the service tries to start but regarding to the logs it will exited almost immediately and then tries to restart again. The last log say it is exiting but under services the status is running… On my connected HDMI touchscreen only the Balena logo is visible.

After a system reboot the service keeps exited and I can’t get it running.

Is my container corrupt or am I doing something wrong? I’ve flashed my device several times but each time getting the same results.

Thanks

Hey @maikelcoenen!

In my experience, this can sometimes be attributed to a power issue. Are you plugging the device into a dedicated power source, rather than a USB port on your laptop/other hardware?

Also, have you made sure to set the appropriate device environment/configuration variables as described in the README.md?

Hi,

Could I ask if you’re running on Windows or Mac/Linux for your development machine? We have seen some issues with line endings being mangled in scripts causing this kind of behaviour, and Windows is usually a prime candidate to do this.

Thanks,
Robert

@wwalker Thanks for the insights! The raspberry is powered from a 1.8A power supply and the display was first powered from the USB of the pi but now I’ve also tested it from a separate power supply without success.

I’ve set the HDMI configurations in the device variables if that is what you mean?

@zrzka I’m currently working on a Mac but I’ve also tested it from Linux. Windows is not yet tested!

Thanks,
Maikel

Hi @maikelcoenen, does the app ever log anything before exiting? Are you using the wpe repo without any modifications? (otherwise, could you share your Dockerfile?)

Could you start a web terminal session and check / share the output of dmesgand journalctl -n 200? It might help pinpoint if something’s failing on the host. Also, if you see that the container is running, and you’re able to run balena logs <container name>, that might help us see if there’s any logs that don’t get to be reported because the exit is too fast or something like that.

The output of dmesg:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.79 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 WedDec 19 20:06:54 UTC 2018
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 8 MiB at 0x17400000
[    0.000000] On node 0 totalpages: 98304
[    0.000000] free_area_init_node: node 0, pgdat c1246c70, node_mem_map d7c8a100
[    0.000000]   Normal zone: 864 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 98304 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x438 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 97440
[    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:E3:D5:22 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=f21bbc42-02 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 361552K/393216K available (7299K kernel code, 606K rwdata, 2168Krodata, 8048K init, 676K bss, 23472K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xd8800000 - 0xff800000   ( 624 MB)
                   lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0728eb0   (7300 kB)
                     .init : 0xc09de000 - 0xc11ba000   (8048 kB)
                     .data : 0xc11ba000 - 0xc1251978   ( 607 kB)
                      .bss : 0xc1257a5c - 0xc1300cb4   ( 677 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 26528 entries in 78 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000037] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000088] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000199] bcm2835: system timer (irq = 27)
[    0.000854] Console: colour dummy device 80x30
[    0.001498] console [tty1] enabled
[    0.001569] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.050397] pid_max: default: 32768 minimum: 301
[    0.050985] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051048] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052467] CPU: Testing write buffer coherency: ok
[    0.053977] Setting up static identity map for 0x8200 - 0x8238
[    0.055399] devtmpfs: initialized
[    0.067613] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.068132] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.068216] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.069895] pinctrl core: initialized pinctrl subsystem
[    0.071526] NET: Registered protocol family 16
[    0.075060] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.082436] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.082517] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.082689] Serial: AMBA PL011 UART driver
[    0.086262] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.087193] uart-pl011 20201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.134489] bcm2835-dma 20007000.dma: DMA legacy API manager at d880d000, dmachans=0x1
[    0.137155] SCSI subsystem initialized
[    0.137471] usbcore: registered new interface driver usbfs
[    0.137604] usbcore: registered new interface driver hub
[    0.137851] usbcore: registered new device driver usb
[    0.141065] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-09-21 15:43
[    0.143476] clocksource: Switched to clocksource timer
[    0.236902] VFS: Disk quotas dquot_6.6.0
[    0.237126] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.237483] FS-Cache: Loaded
[    0.237847] CacheFiles: Loaded
[    0.258099] NET: Registered protocol family 2
[    0.259537] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259690] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259830] TCP: Hash tables configured (established 4096 bind 4096)
[    0.260042] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260108] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260560] NET: Registered protocol family 1
[    0.261489] RPC: Registered named UNIX socket transport module.
[    0.261552] RPC: Registered udp transport module.
[    0.261584] RPC: Registered tcp transport module.
[    0.261612] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.420716] hw perfevents: no irqs for PMU, sampling events not supported
[    0.420867] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.425427] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.439000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.439580] FS-Cache: Netfs 'nfs' registered for caching
[    0.441143] NFS: Registering the id_resolver key type
[    0.441252] Key type id_resolver registered
[    0.441289] Key type id_legacy registered
[    0.441346] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.444357] aufs 4.14.56+-20181001
[    0.448330] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.448913] io scheduler noop registered
[    0.448965] io scheduler deadline registered
[    0.449608] io scheduler cfq registered (default)
[    0.449660] io scheduler mq-deadline registered
[    0.449694] io scheduler kyber registered
[    0.452528] BCM2708FB: allocated DMA memory 57500000
[    0.452655] BCM2708FB: allocated DMA channel 0 @ d880d000
[    0.493514] Console: switching to colour frame buffer device 240x67
[    0.533440] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.536977] bcm2835-rng 20104000.rng: hwrng registered
[    0.537485] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512MiB)
[    0.538946] vc-sm: Videocore shared memory driver
[    0.539950] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    0.561944] brd: module loaded
[    0.575950] loop: module loaded
[    0.576145] Loading iSCSI transport class v2.0-870.
[    0.577196] tun: Universal TUN/TAP device driver, 1.6
[    0.577885] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.578728] dwc_otg 20980000.usb: base=0xf0980000
[    0.779434] Core Release: 2.80a
[    0.779605] Setting default values for core params
[    0.779813] Finished setting default values for core params
[    0.980493] Using Buffer DMA mode
[    0.980666] Periodic Transfer Interrupt Enhancement - disabled
[    0.980874] Multiprocessor Interrupt Enhancement - disabled
[    0.981072] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.981331] Dedicated Tx FIFOs mode
[    0.982538] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xd7514000 dma = 0x57514000 len=9024
[    0.982922] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.983732] dwc_otg: Microframe scheduler enabled
[    0.983984] WARN::hcd_init_fiq:459: FIQ on core 0 at 0xc04fb99c
[    0.984224] WARN::hcd_init_fiq:460: FIQ ASM at 0xc04fbc6c length 36
[    0.984460] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[    0.984775] dwc_otg 20980000.usb: DWC OTG Controller
[    0.985034] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.985374] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.985631] Init: Port Power? op_state=1
[    0.985783] Init: Power Port (0)
[    0.986385] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.986647] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.986900] usb usb1: Product: DWC OTG Controller
[    0.987076] usb usb1: Manufacturer: Linux 4.14.79 dwc_otg_hcd
[    0.997141] usb usb1: SerialNumber: 20980000.usb
[    1.008350] hub 1-0:1.0: USB hub found
[    1.018597] hub 1-0:1.0: 1 port detected
[    1.029558] dwc_otg: FIQ enabled
[    1.029572] dwc_otg: NAK holdoff enabled
[    1.029581] dwc_otg: FIQ split-transaction FSM enabled
[    1.029600] Module dwc_common_port init
[    1.030236] usbcore: registered new interface driver usb-storage
[    1.040802] mousedev: PS/2 mouse device common for all mice
[    1.050938] IR NEC protocol handler initialized
[    1.060758] IR RC5(x/sz) protocol handler initialized
[    1.070738] IR RC6 protocol handler initialized
[    1.080603] IR JVC protocol handler initialized
[    1.090427] IR Sony protocol handler initialized
[    1.100270] IR SANYO protocol handler initialized
[    1.109895] IR Sharp protocol handler initialized
[    1.119462] IR MCE Keyboard/mouse protocol handler initialized
[    1.128930] IR XMP protocol handler initialized
[    1.140249] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[    1.150811] bcm2835-cpufreq: min=700000 max=1000000
[    1.161432] sdhci: Secure Digital Host Controller Interface driver
[    1.171275] sdhci: Copyright(c) Pierre Ossman
[    1.181991] mmc-bcm2835 20300000.mmc: could not get clk, deferring probe
[    1.189971] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[    1.197411] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.205093] ledtrig-cpu: registered to indicate activity on CPUs
[    1.212286] hidraw: raw HID events driver (C) Jiri Kosina
[    1.219616] usbcore: registered new interface driver usbhid
[    1.226687] usbhid: USB HID core driver
[    1.234827] vchiq: vchiq_init_state: slot_zero = d7580000, is_master = 0
[    1.244209] [vc_sm_connected_init]: start
[    1.257699] [vc_sm_connected_init]: end - returning 0
[    1.266324] nf_conntrack version 0.5.0 (6144 buckets, 24576 max)
[    1.274484] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.281912] Initializing XFRM netlink socket
[    1.289909] NET: Registered protocol family 10
[    1.299068] Segment Routing with IPv6
[    1.306398] NET: Registered protocol family 17
[    1.313443] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.320846] Key type dns_resolver registered
[    1.329755] registered taskstats version 1
[    1.344693] uart-pl011 20201000.serial: cts_event_workaround enabled
[    1.352303] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) isa PL011 rev2
[    1.362193] console [ttyS0] disabled
[    1.369887] 20215040.serial: ttyS0 at MMIO 0x0 (irq = 160, base_baud = 31250000) is a 16550
[    2.317718] random: fast init done
[    2.370534] console [ttyS0] enabled
[    2.383362] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[    2.397119] mmc-bcm2835 20300000.mmc: DMA channel allocated
[    2.465331] sdhost: log_buf @ d7513000 (57513000)
[    2.515313] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.530195] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.544897] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.560875] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.573743] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.587836] of_cfs_init
[    2.618152] of_cfs_init: OK
[    2.654672] Freeing unused kernel memory: 8048K
[    2.666665] This architecture does not have kernel memory protection.
[    2.795842] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.824755] mmc1: new high speed SDIO card at address 0001
[    2.850661] mmc0: new high speed SDHC card at address aaaa
[    2.883784] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    2.915578]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    7.247317] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    7.433832] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    9.030536] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.081668] aufs au_opts_verify:1609:init[1]: dirperm1 breaks the protection by the permission bits on the lower branch
[    9.491337] systemd[1]: System time before build time, advancing clock.
[    9.561975] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    9.607679] systemd[1]: Detected architecture arm.
[    9.664457] systemd[1]: No hostname configured.
[    9.677591] systemd[1]: Set hostname to <localhost>.
[    9.709395] systemd[1]: Hardware watchdog 'Broadcom BCM2835 Watchdog timer', version0
[    9.726200] systemd[1]: Set hardware watchdog to 10s.
[   10.110939] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroupbased firewalling.
[   10.137079] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[   10.955710] systemd[1]: Unnecessary job for /dev/disk/by-partuuid/f21bbc42-02 was removed.
[   10.973272] systemd[1]: Unnecessary job for /dev/disk/by-label/resin-state was removed.
[   11.000081] random: systemd: uninitialized urandom read (16 bytes read)
[   11.044168] random: systemd: uninitialized urandom read (16 bytes read)
[   11.094178] random: systemd: uninitialized urandom read (16 bytes read)
[   18.660434] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[   20.949757] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   21.333892] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   21.633430] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   21.653996] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[   21.694017] usbcore: registered new interface driver brcmfmac
[   22.070647] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   22.158483] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14
[   24.386317] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[   27.838054] uart-pl011 20201000.serial: no DMA platform data
[   29.017671] random: crng init done
[   29.030854] random: 7 urandom warning(s) missed due to ratelimiting
[   32.976554] Bluetooth: Core ver 2.22
[   33.083878] NET: Registered protocol family 31
[   33.098320] Bluetooth: HCI device and connection manager initialized
[   33.413921] i2c /dev entries driver
[   33.443714] Bluetooth: HCI socket layer initialized
[   33.443739] Bluetooth: L2CAP socket layer initialized
[   33.443850] Bluetooth: SCO socket layer initialized
[   33.521623] Bluetooth: HCI UART driver ver 2.3
[   33.521636] Bluetooth: HCI UART protocol H4 registered
[   33.521640] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   33.522525] Bluetooth: HCI UART protocol Broadcom registered
[   33.573622] brcmfmac: power management disabled
[   35.309732] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   35.315432] Bluetooth: BNEP filters: protocol multicast
[   35.363876] Bluetooth: BNEP socket layer initialized
[   38.094826] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   38.190997] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   38.215956] brcmfmac: power management disabled
[   38.836953] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   38.871198] brcmfmac: power management disabled
[   41.062830] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   42.953766] Netfilter messages via NETLINK v0.30.
[   42.988727] ctnetlink v0.93: registering with nfnetlink.
[   43.164709] IPv6: ADDRCONF(NETDEV_UP): balena0: link is not ready
[   44.345325] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   44.391978] brcmfmac: power management disabled
[   46.084120] Bridge firewalling registered
[   48.553879] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   51.487463] IPv6: ADDRCONF(NETDEV_UP): br-311ef93d9c05: link is not ready
[   53.389795] IPv6: ADDRCONF(NETDEV_UP): supervisor0: link is not ready

And journalctl:

-- Logs begin at Wed 2018-12-19 20:04:47 UTC, end at Mon 2019-01-21 22:17:00 UTC. --
Jan 21 22:03:29 3efcda8 balenad[704]: [2019-01-21T22:03:29.774Z] Apply success!
Jan 21 22:03:29 3efcda8 resin-supervisor[1077]: [2019-01-21T22:03:29.774Z] Apply success!
Jan 21 22:03:31 3efcda8 balenad[704]: time="2019-01-21T22:03:31Z" level=info msg="shim reaped" id=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e5fc75 module=containerd/ta>
Jan 21 22:03:31 3efcda8 balenad[704]: time="2019-01-21T22:03:31.745972441Z" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby topic=/tasks/delete type="*even>
Jan 21 22:03:31 3efcda8 balenad[704]: time="2019-01-21T22:03:31.752061315Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskD>
Jan 21 22:03:31 3efcda8 balenad[704]: time="2019-01-21T22:03:31.998982179Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/delete type="*events.>
Jan 21 22:03:32 3efcda8 balenad[704]: [2019-01-21T22:03:32.226Z] Event: Service exit {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":753238}}
Jan 21 22:03:32 3efcda8 resin-supervisor[1077]: [2019-01-21T22:03:32.226Z] Event: Service exit {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":753238}}
Jan 21 22:03:44 3efcda8 balenad[704]: time="2019-01-21T22:03:44.889982058Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.>
Jan 21 22:03:45 3efcda8 balenad[704]: time="2019-01-21T22:03:45Z" level=info msg="shim balena-engine-containerd-shim started" address=/containerd-shim/moby/a120458bf71f5604689c80d7ca4>
Jan 21 22:03:47 3efcda8 balenad[704]: time="2019-01-21T22:03:47.191009198Z" level=warning msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:03:48 3efcda8 balenad[704]: time="2019-01-21T22:03:48.426143509Z" level=warning msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:03:50 3efcda8 balenad[704]: time="2019-01-21T22:03:50.114631389Z" level=warning msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:03:52 3efcda8 balenad[704]: time="2019-01-21T22:03:52Z" level=info msg="shim reaped" id=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e5fc75 module=containerd/ta>
Jan 21 22:03:52 3efcda8 balenad[704]: time="2019-01-21T22:03:52.275018455Z" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby topic=/tasks/delete type="*even>
Jan 21 22:03:52 3efcda8 balenad[704]: time="2019-01-21T22:03:52.281145328Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskD>
Jan 21 22:03:52 3efcda8 balenad[704]: time="2019-01-21T22:03:52.523215293Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/delete type="*events.>
Jan 21 22:03:52 3efcda8 balenad[704]: [2019-01-21T22:03:52.630Z] Event: Service restart {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":753238}}
Jan 21 22:03:52 3efcda8 resin-supervisor[1077]: [2019-01-21T22:03:52.630Z] Event: Service restart {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":75323>
Jan 21 22:03:52 3efcda8 balenad[704]: [2019-01-21T22:03:52.807Z] Event: Service exit {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":753238}}
Jan 21 22:03:52 3efcda8 resin-supervisor[1077]: [2019-01-21T22:03:52.807Z] Event: Service exit {"service":{"appId":1312373,"serviceId":136794,"serviceName":"main","releaseId":753238}}
Jan 21 22:04:18 3efcda8 balenad[704]: time="2019-01-21T22:04:18.257026053Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.>
Jan 21 22:04:18 3efcda8 balenad[704]: time="2019-01-21T22:04:18Z" level=info msg="shim balena-engine-containerd-shim started" address=/containerd-shim/moby/a120458bf71f5604689c80d7ca4>
Jan 21 22:04:20 3efcda8 balenad[704]: time="2019-01-21T22:04:20.608824137Z" level=warning msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:04:21 3efcda8 balenad[704]: time="2019-01-21T22:04:21.959741039Z" level=warning     msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:04:23 3efcda8 balenad[704]: time="2019-01-21T22:04:23.709107654Z" level=warning msg="unknown container" container=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e>
Jan 21 22:04:25 3efcda8 balenad[704]: time="2019-01-21T22:04:25Z" level=info msg="shim reaped" id=a120458bf71f5604689c80d7ca4953a100e75e84920c4359d276038d79e5fc75 module=containerd/ta>

I am able to establish a terminal connection but the not with the container. I see some warnings about an unknown container so will try to push a fresh build again just to be sure.

Thanks!

Thanks!

I can’t see anything wrong with those logs. The unknown container messages are something I’ve seen before and afaik can be safely ignored.

I think the best next forward would be to modify the wpe-init script in the root of the repo to add some logging and keep the container alive, so that you can start a web terminal and debug manually. You could change it to something like this:

#!/bin/sh

echo "Starting udevd"
udevd &
echo "Triggering udevadm"
udevadm trigger

echo "Starting fbcp"
fbcp &

echo "WPELauncher located at $(which WPELauncher)"
echo "Starting WPELauncher"
WPE_BCMRPI_TOUCH=1 WPELauncher $WPE_URL
echo "WPELauncher exited with code $?"

while true; do
  echo "WPELauncher exited but container is still running..."
  sleep 60
done

Hi all,

Thanks for the support! I’ve found the problem. It is a bit lame but the docker was built for the raspberry pi 3 and I tried to run it on the Zero. I’ve changed the Dockerfile to build it for the Zero and now the container is running properly.

If anyone else is having this issue, change the first line from the Dockerfiles to:

FROM petrosagg/resin-wpe:raspberrypi0-669edb1-dirty

Nevertheless, thanks you all!