| 24 Aug 2021 |
Church | Hmm wonder if there's a debug log flag somewhere.... | 10:45:02 |
Church | Hmm not seeing anything with debug logs turned on. | 10:49:31 |
@hexa:lossy.network | can you try /dev/ttyACM0? | 10:50:59 |
Church | Ah there we go... here's something | 10:51:28 |
Church | Download hass.logs | 10:54:10 |
Church | Getting a permission denied error | 10:54:23 |
Church | * Getting a permission denied error trying to probe the /dev/ path | 10:55:32 |
@hexa:lossy.network | right, can you test https://github.com/NixOS/nixpkgs/pull/135540? | 11:05:36 |
@hexa:lossy.network | In reply to @hexa:lossy.network can you try /dev/ttyACM0? or that :) | 11:06:23 |
Church | Yeah sure | 11:12:46 |
Church | Same issue | 11:13:40 |
Church | Let me try adding rw | 11:13:53 |
Church | Still seeing serial.serialutil.SerialException: [Errno 13] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00: [Errno 13] Permission denied: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00' | 11:15:59 |
@hexa:lossy.network | who owns that serial device? | 11:16:38 |
Church | Hmm, possibly root. | 11:42:29 |
Church | Guess I can chown it | 11:42:46 |
Church | Yeah that did it heh | 11:44:43 |
@etu:semi.social | No group like dialout? | 11:46:38 |
@etu:semi.social | Dialout is common for serial devices | 11:46:45 |
Church | Yeah I'd have to see who owns it exactly when I plug back in.
I'm assuming root. | 11:48:55 |
@hexa:lossy.network | needs less assumptions, more facts 😀 | 12:05:50 |
@andi:kack.it | just run everything as root ;) | 12:07:20 |
@etu:semi.social | I've added my home assistant user to the dialout group at some point: https://github.com/etu/nixconfig/blob/main/hosts/fenchurch/services/hass.nix#L411 | 12:11:07 |
@hexa:lossy.network | the service is automatically part of the dialout group if your config mentions the correct components. https://github.com/NixOS/nixpkgs/blob/df2f45b347d57bdc99aaa96ee227a37f5201c9dc/nixos/modules/services/misc/home-assistant.nix#L370-L372 | 12:20:37 |
@etu:semi.social | hexa: Then I should remove that line, it was probably years ago I've added it. | 12:30:57 |
@hexa:lossy.network | https://github.com/etu/nixconfig/blob/main/hosts/fenchurch/services/hass.nix#L19-L24 pretty sure these are covered by the recommended proxy settings option | 12:32:43 |
@hexa:lossy.network | https://github.com/NixOS/nixpkgs/blob/df2f45b347d57bdc99aaa96ee227a37f5201c9dc/nixos/modules/services/web-servers/nginx/default.nix#L59-L66 | 12:33:21 |
@hexa:lossy.network | setting package like you are doing it probably means you run the tests when deploying? | 12:34:15 |
@hexa:lossy.network | see https://github.com/NixOS/nixpkgs/blob/df2f45b347d57bdc99aaa96ee227a37f5201c9dc/nixos/modules/services/misc/home-assistant.nix#L187-L209 | 12:35:01 |
Church | Yeah was out and about, ssh from the phone is annoying. :P | 12:40:15 |