# Cannot get Balena to show \*any\* usb devices - trying to get usb printer with CUPS on balenaCloud

**URL:** <https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373>\
**Category:** Product support\
**Tags:** docker, raspberrypi4\
**Created:** [September 22, 2021, 1:44am UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373 "2021-09-22T01:44:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asdf10489](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@asdf10489](https://forums.balena.io/u/asdf10489)\
**Post date:** [September 22, 2021, 1:44am UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/1 "2021-09-22T01:44:58Z")

</div>

Hi, I’m trying to get an Epson TM-T20 series USB thermal printer working via Docker container with balenaCloud on Raspberry Pi 4.

Unfortunately, I’m having a strange experience where balenaOS and the containers are not seeing any USB devices. Currently for testing purposes, I have the printer, a keyboard, a mouse, and a USB drive plugged in (and have tried in various combinations) and none of them are recognized. I’ve poured over the documentation, tried every “docker cups” I can find on GitHub including the semi-official one (willswire/balenaPrint), and I cannot get CUPS, the container, or balenaOS itself to see any USB devices.

I have confirmed that everything works just fine with Raspbian - a brand new unconfigured installation correctly has all devices listed with `lsusb` and the printer appears sym linked at `/dev/usb/lp0` and under `/dev/bus/usb/002/...`. It is only when used via container with balenaOS that no USB devices work. Network printers appear fine in CUPS, as expected.

balenaOS:

```auto
balena ssh <UUID>.local
root@UUID:~# lsusb
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 001: ID 1d6b:0002

```

Container:

```auto
balena ssh <UUID>.local main
root@UUID:/# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

```

Things that I have tried singularly and in combination:

1. Variations of `ENV UDEV=1`, `ENV UDEV=on`, `ENV UDEV 1`
2. Overriding ENTRYPOINT and manually copying and pasting the default `entry.sh` file to ensure udevd is set up
3. Setting `privileged: true` and/or `devices: <many forms>` in `docker-compose.yml`
4. Setting `balena push ... --env UDEV=on` and variants
5. Deriving `FROM` various `balenalib` base containers - `buster`, `ubuntu`, `alpine`, etc.
6. Pushing to a “local mode” device
7. deploying to a cloud-managed device
8. All of the docker cups example I can find on GitHub: [didrip/cups-docker](https://github.com/didrip/cups-docker), [unixorn/docker-cupsd](https://github.com/unixorn/docker-cupsd), [olbat/dockerfiles](https://github.com/olbat/dockerfiles/blob/master/cupsd/Dockerfile), [willswire/balenaPrint](https://github.com/willswire/balenaPrint), [jacobalberty/cups-docker](https://github.com/jacobalberty/cups-docker), and maybe some others.
9. Lots of different ideas from threads on this forum

For example, pushing this minimal Dockerfile does not appear have any USB devices attached:

```auto
# Dockerfile.template
FROM balenalib/%%BALENA_MACHINE_NAME%%:build

ENV UDEV=on

CMD ["sleep", "7d"]

```

I’m banging my head against this for quite some time now, and nothing seems to be working. Any ideas or support would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [September 22, 2021, 5:51am UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/2 "2021-09-22T05:51:14Z")

</div>

Dear @asdf10489 - I am sorry, its not you - its us.  
If you’re having an RPi 4 B, Rev. 1.4 - thats probably your problem (RPi changed how the USB controller gets intialized):

> [@USB problem with RPi4 (balenaOS 2.82.10+rev1)](https://forums.balena.io/t/usb-problem-with-rpi4-balenaos-2-82-10-rev1/343721/17):
>
> @dtischler Hi! I have a similar problem- I have a few Raspberry Pi 4 B in the field that have lost all USB functionality after upgrading to balenaOS 2.83.10+rev1. Notably the VLI hub interface does not appear with lsusb. A few observations: This issue seems specific to Rev 1.4 versions of the Raspberry Pi 4 B, identical balenaOS 2.83.10+rev1 images on Rev 1.1 boards work fine. Stock Raspberry Pi OS images on Rev 1.4 boards work as well balenaOS 2.75.0+rev1 on Rev 1.4 boards works Any ideas …

I guess the guys are working on a fix - however, the most easy way for you would be to downgrade to balenaOS 2.75.0+rev1 - this is reported to be working.

Sorry for the inconvenience!

---

<div class="post-metadata">

**Author:** ![asdf10489](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@asdf10489](https://forums.balena.io/u/asdf10489)\
**Post date:** [September 22, 2021, 3:45pm UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/3 "2021-09-22T15:45:13Z")

</div>

@nmaas87 thank you for the prompt response. I spent so much time thinking I was doing something wrong! 🤦🏻

According to [this recent thread](https://forums.balena.io/t/downgrade-balenaos/205364) the OS can’t be downgraded without physically accessing the device - is this still correct? Presumably we’d need to use etcher again with the new image?

If anyone else finds this in the future, you can download the old OS with:

```bash
balena os download raspberrypi4-64 --version 2.75.0+rev1 -o balena_raspberrypi4-64_2.75.0+rev1.img

```

And the GitHub tracking issue for Pi 4 USB is [https://github.com/balena-os/balena-raspberrypi/issues/710](https://github.com/balena-os/balena-raspberrypi/issues/710)

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [September 22, 2021, 3:54pm UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/4 "2021-09-22T15:54:03Z")

</div>

Sorry @asdf10489 - my gut feeling would be that no downgrade is supported.  
I guess you got two options right now, depending on your schedule:  
Either physically reflash your OS with the old one, or wait until the next release comes and upgrade - which would be without having to reflash.

Its always a bit tricky, you said you do you it with balenaCloud - so “online” in a fleet, is that correct? Because this would simplify your upgrade. (instead of using it offline with just flashing balenaOS and using it on local network without balenaCloud).

Maybe @chrisys or @floion (who made the changes / fix) could tell us when the next RPi4 release is coming out with the USB fix 🙂

Cheers!

---

<div class="post-metadata">

**Author:** ![asdf10489](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@asdf10489](https://forums.balena.io/u/asdf10489)\
**Post date:** [October 1, 2021, 4:20pm UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/5 "2021-10-01T16:20:13Z")

</div>

This issue was resolved with version [v2.85.2+rev2](https://github.com/balena-os/balena-raspberrypi/blob/master/CHANGELOG.md#v2852rev2)! Thank you for the help.

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [October 6, 2021, 4:00pm UTC](https://forums.balena.io/t/cannot-get-balena-to-show-any-usb-devices-trying-to-get-usb-printer-with-cups-on-balenacloud/349373/6 "2021-10-06T16:00:57Z")

</div>

Sorry I missed this thread @asdf10489 – glad to hear it worked out with v2.85 though! 🙂
