Multi-container with Unifi Controller

I’ve been banging my head against the wall for a few days now trying to sort out an issue I’m having getting a Unifi Controller container to run successfully. So I finally bit the bullet and created an account here so I could ask for help.

My setup is a Pi3B+, and the multicontainer is based loosely on balena-io-projects/multicontainer-getting-started and balena-io-playground/balena-ubnt. I’ve stripped out UNMS, replaced UniFi Controller with ryansch/docker-unifi-rpi, and added in klutchell/balena-pihole.

I’ve got everything up and running reliably except for unifi-rpi, which continuously installs, starts, is killed, and reinstalls until the host gets fed up with retrying. It runs just fine as a single-container application, so it must be a noob mistake I’m making with converting it over into my docker-compose. Speaking of which, here it is:

volumes:
  pihole_config:
  dnsmasq_config:
  nginx-data:
  letsencrypt:
  unifi-config:
    driver: local
  unifi-log:
    driver: local
  unifi-log2:
    driver: local
  unifi-run:
    driver: local
  unifi-run2:
    driver: local
  unifi-work:
    driver: local
services:
  pihole:
    build: ./pihole
    privileged: true
    volumes:
      - 'pihole_config:/etc/pihole'
      - 'dnsmasq_config:/etc/dnsmasq.d'
    cap_add:
      - 'NET_ADMIN'
    dns:
      - '127.0.0.1'
      - '1.1.1.1'
    restart: unless-stopped
    network_mode: host
    ports:
      - "80:80"
  dohnut:
    image: klutchell/dohnut:v4.4.1-arm
    ports:
      - '3053:53/tcp'
      - '3053:53/udp'
    command: --listen 0.0.0.0:53 --doh quad9 cloudflare commonshost
  ddclient:
      build: ./ddclient-cloudflare
      privileged: true
  nginx:
    build: ./nginx
    privileged: true
    ports:
      - "443:443"
    volumes:
      - "nginx-data:/app/data"
      - "letsencrypt:/etc/letsencrypt"
    links:
      - "unifi"
  unifi:
    image: ryansch/unifi-rpi:5.10.19-arm32v7
    ports:
      - "3478:3478/udp"
      - "6789:6789"
      - "8080:8080"
      - "8081:8081"
      - "8443:8443"
      - "8843:8843"
      - "8880:8880"
      - "10001:10001/udp"
    volumes:
      - unifi-config:/var/lib/unifi
      - unifi-log:/usr/lib/unifi/logs
      - unifi-log2:/var/log/unifi
      - unifi-run:/usr/lib/unifi/run
      - unifi-run2:/run/unifi
      - unifi-work:/usr/lib/unifi/work
    restart: unless-stopped

To be clear on where I’ve been, I did have an issue with balena recognizing that the platform needed to be armhf/arm32v7, which was causing exec issues. As you can see, I’ve manually specified that now and that is no longer the source of the endless loop.

I’m at a loss for where to go now. I’m used to being able to dive really deep on logs and figure things out myself, but I get nothing but the brief “Installing, Installed, Starting, Started, Killing, Killed, Installing” logs and I’m not clear on how to get more detail. Any help is appreciated!

/Edit: fix formatting of the compose file text/

@roinone The docker-compose file you posted has lost its formatting.

I would suggest that you try the different services one by one and see which one of those causes such an issue. This is to try to narrow down the source of the problem.

Sorry, actually you mentioned it is the unifi-rpi one. Can you please repost the docker-compose file with proper formatting?

I’ve just edited the post to correct it. I’ve made sure that there are no dangling newlines by turning on whitespace and control character view in Visual Studio Code, however it is currently set in CRLF mode and am not sure if that will affect it.

What errors do you see that cause the restart? Can you SSH into the host and run journalctl -fn100 during the restart loop?

A random idea is to remove driver: local from the volume declarations (local is the only driver we support anyway) – specifying it might trip the Supervisor, though it’s a really long shot.

Removing driver: local had no impact as you’d suspected, but journalctl was the logging command I needed. Now I just need to figure out why all this port mess is happening.

Mar 12 02:18:17 43e523d balenad[853]: [2019-03-12T02:18:17.966Z] Event: Service installed {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:17 43e523d resin-supervisor[15955]: [2019-03-12T02:18:17.966Z] Event: Service installed {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:17 43e523d resin-supervisor[15955]: [2019-03-12T02:18:17.974Z] Event: Service start {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:17 43e523d balenad[853]: [2019-03-12T02:18:17.974Z] Event: Service start {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:17 43e523d systemd-udevd[31378]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 12 02:18:17 43e523d systemd-udevd[31378]: Could not generate persistent MAC address for veth761d045: No such file or directory
Mar 12 02:18:17 43e523d NetworkManager[686]: <info>  [1552357097.9968] manager: (veth761d045): new Veth device (/org/freedesktop/NetworkManager/Devices/3834)
Mar 12 02:18:18 43e523d kernel: br-a058b6849b1e: port 2(veth65def01) entered blocking state
Mar 12 02:18:18 43e523d kernel: br-a058b6849b1e: port 2(veth65def01) entered disabled state
Mar 12 02:18:18 43e523d kernel: device veth65def01 entered promiscuous mode
Mar 12 02:18:18 43e523d kernel: IPv6: ADDRCONF(NETDEV_UP): veth65def01: link is not ready
Mar 12 02:18:18 43e523d systemd-udevd[31379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 12 02:18:18 43e523d systemd-udevd[31379]: Could not generate persistent MAC address for veth65def01: No such file or directory
Mar 12 02:18:18 43e523d NetworkManager[686]: <info>  [1552357098.0045] manager: (veth65def01): new Veth device (/org/freedesktop/NetworkManager/Devices/3835)
Mar 12 02:18:21 43e523d balenad[853]: time="2019-03-12T02:18:21.503412744Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.ContainerCreate"
Mar 12 02:18:21 43e523d balenad[853]: time="2019-03-12T02:18:21Z" level=info msg="shim balena-engine-containerd-shim started" address=/containerd-shim/moby/c5d4980071252038f09838c1b8decfa3fdb6e10137251bddad78dc0743438ea6/shim.sock debug=false module=containerd/tasks pid=31481
Mar 12 02:18:22 43e523d kernel: eth0: renamed from veth761d045
Mar 12 02:18:23 43e523d NetworkManager[686]: <info>  [1552357103.0484] device (veth65def01): carrier: link connected
Mar 12 02:18:23 43e523d kernel: IPv6: ADDRCONF(NETDEV_CHANGE): veth65def01: link becomes ready
Mar 12 02:18:23 43e523d kernel: br-a058b6849b1e: port 2(veth65def01) entered blocking state
Mar 12 02:18:23 43e523d kernel: br-a058b6849b1e: port 2(veth65def01) entered forwarding state
Mar 12 02:18:23 43e523d balenad[853]: time="2019-03-12T02:18:23.336771087Z" level=warning msg="unknown container" container=c5d4980071252038f09838c1b8decfa3fdb6e10137251bddad78dc0743438ea6 module=libcontainerd namespace=plugins.moby
Mar 12 02:18:23 43e523d balenad[853]: time="2019-03-12T02:18:23.489116112Z" level=warning msg="unknown container" container=c5d4980071252038f09838c1b8decfa3fdb6e10137251bddad78dc0743438ea6 module=libcontainerd namespace=plugins.moby
Mar 12 02:18:24 43e523d avahi-daemon[694]: Joining mDNS multicast group on interface veth65def01.IPv6 with address fe80::80a0:13ff:fe7d:cf1c.
Mar 12 02:18:24 43e523d avahi-daemon[694]: New relevant interface veth65def01.IPv6 for mDNS.
Mar 12 02:18:24 43e523d avahi-daemon[694]: Registering new address record for fe80::80a0:13ff:fe7d:cf1c on veth65def01.*.
Mar 12 02:18:24 43e523d balenad[853]: [2019-03-12T02:18:24.976Z] Event: Service started {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:24 43e523d resin-supervisor[15955]: [2019-03-12T02:18:24.976Z] Event: Service started {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.486Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.486Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.537Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.537Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.541Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.541Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.544Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.544Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.546Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.546Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.549Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.549Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.552Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.552Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:25 43e523d balenad[853]: [2019-03-12T02:18:25.569Z] Event: Service kill {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:25 43e523d resin-supervisor[15955]: [2019-03-12T02:18:25.569Z] Event: Service kill {"service":{"appId":1395739,"serviceId":216432,"serviceName":"unifi","releaseId":825502}}
Mar 12 02:18:26 43e523d balenad[853]: [2019-03-12T02:18:26.087Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:26 43e523d resin-supervisor[15955]: [2019-03-12T02:18:26.087Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:26 43e523d resin-supervisor[15955]: [2019-03-12T02:18:26.152Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:26 43e523d balenad[853]: [2019-03-12T02:18:26.152Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:26 43e523d balenad[853]: [2019-03-12T02:18:26.160Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:26 43e523d resin-supervisor[15955]: [2019-03-12T02:18:26.160Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:26 43e523d resin-supervisor[15955]: [2019-03-12T02:18:26.162Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:26 43e523d balenad[853]: [2019-03-12T02:18:26.162Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:26 43e523d resin-supervisor[15955]: [2019-03-12T02:18:26.164Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:26 43e523d balenad[853]: [2019-03-12T02:18:26.164Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:27 43e523d balenad[853]: [2019-03-12T02:18:27.572Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:27 43e523d resin-supervisor[15955]: [2019-03-12T02:18:27.572Z] Warning: Ignoring unsupported or unknown compose fields: links
Mar 12 02:18:27 43e523d balenad[853]: [2019-03-12T02:18:27.631Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:27 43e523d resin-supervisor[15955]: [2019-03-12T02:18:27.631Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:27 43e523d balenad[853]: [2019-03-12T02:18:27.633Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:27 43e523d resin-supervisor[15955]: [2019-03-12T02:18:27.633Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:27 43e523d resin-supervisor[15955]: [2019-03-12T02:18:27.635Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:27 43e523d balenad[853]: [2019-03-12T02:18:27.635Z] Replacing container for service unifi because of config changes:
Mar 12 02:18:27 43e523d resin-supervisor[15955]: [2019-03-12T02:18:27.638Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:27 43e523d balenad[853]: [2019-03-12T02:18:27.638Z]   Non-array fields:  {"added":{"portMaps":{"7":{"ports":{"internalStart":10001,"internalEnd":10001,"externalStart":10001,"externalEnd":10001,"host":"","protocol":"udp"}}}},"deleted":{},"updated":{"portMaps":{"2":{"ports":{"internalEnd":8080,"externalEnd":8080}},"3":{"ports":{"internalStart":8081,"internalEnd":8081,"externalStart":8081,"externalEnd":8081}},"4":{"ports":{"internalStart":8443,"internalEnd":8443,"externalStart":8443,"externalEnd":8443}},"5":{"ports":{"internalStart":8843,"internalEnd":8843,"externalStart":8843,"externalEnd":8843}},"6":{"ports":{"internalStart":8880,"internalEnd":8880,"externalStart":8880,"externalEnd":8880,"protocol":"tcp"}}}}}
Mar 12 02:18:27 43e523d balenad[853]: time="2019-03-12T02:18:27.660165042Z" level=info msg="Container failed to stop after sending signal 37 to the process, force killing"```

Hey @roinone I believe you’re hitting a known bug in the supervisor, which was fixed in version v9.7.2. Which supervisor version are you using?

If it less that the above, could you trying upgrading your OS and let us know if this continues please?

1 Like

I’ll give it a shot, however I’m running the latest OS (balenaOS 2.29.2+rev2) and don’t see an obvious way to update the supervisor from 9.0.1. I’ll keep looking, but pointers are would be appreciated.

By the way, I commented out the ports: block in the unifi: section of my compose file and the install was successful. Of course, now I can’t access the controller…

@roinone you’re right, an OS with supervisor higher than 9.0.1 hasn’t come out yet, it should soon.

In the meantime, you can work around it by changing how ports are defined in your compose yml. The underlying issue is this: https://github.com/balena-io/balena-supervisor/issues/897

So the problem is with adjacent ports, so changing:

      - "8080:8080"
      - "8081:8081"

to:

      - "8080-8081:8080-8081"

should do the trick.

1 Like

Ahh. I’ll give that a try this evening and report back.

That fixed it; thanks!

1 Like