Skip to content

weewx user not member of dialout group, cannot read from /dev/ttyUSB0Β #442

@freeowl-agent

Description

@freeowl-agent

πŸ› Summary

Running the docker image with portainer using docked compose.

Usb device is connected to host and specified in the compose file.
Seems weewx user is not a member of dialout and has no permissions to read from /dev/ttyUSB0

Adding the weewx user to dialout from docker root fixes the issue, but only temporarily.

To reproduce

Steps to reproduce the behavior:

  1. Run on a host using usb connection to a weather station
  2. Deploy the container using
    devices:
    • /dev/ttyUSB0:/dev/ttyUSB0

Expected behavior

weewx should be able to read from /dev/ttyUSB0

Any helpful log output or screenshots

Paste the results here:

Add any screenshots of the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions